-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile updates #1937
Dockerfile updates #1937
Conversation
4f4fe83
to
d7bf935
Compare
Here is an overview of what got changed by this pull request: Issues
======
- Added 2
See the complete overview on Codacy |
docker/onadata-uwsgi/Dockerfile
Outdated
RUN ssh-keyscan github.com > /root/.ssh/known_hosts | ||
|
||
# Install optional requirements | ||
RUN if [ ! -z "$optional_packages" ]; then pip install ${optional_packages} ; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Pin versions in pip. Instead of pip install <package>
use pip install <package>==<version>
docker/onadata-uwsgi/Dockerfile
Outdated
RUN ssh-keyscan github.com > /root/.ssh/known_hosts | ||
|
||
# Install optional requirements | ||
RUN if [ ! -z "$optional_packages" ]; then pip install ${optional_packages} ; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Use -n instead of ! -z.
c1edd52
to
8a9cabf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but i'd say @ukanga should check it out as well
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
image: onadata:latest | ||
volumes: | ||
# For local development | ||
- ../../.:/srv/onadata | ||
image: onaio/onadata:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point about doing local builds was for development purposes. In my last years of writing code on this repositories this has been the primary way my dev environment worked, from within the container. Perhaps add a docker-compose.prod.yml file instead?
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-18.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we start using 20.04 yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we can. I'll modify the Dockerfile to use 20.04 as the base image and test it out
b1cc1e6
to
cb28754
Compare
de26c2b
to
996cab2
Compare
Changes / Features implemented
docker-image-build.yml
github workflowSteps taken to verify this change does what is intended