-
Notifications
You must be signed in to change notification settings - Fork 485
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
Add docker env for local development #471
Conversation
4 similar comments
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.
thanks for your contribution. waiting for the review comments
|
||
ENV PATH /home/app/venv/bin:${PATH} | ||
|
||
RUN python3 -m venv ~/venv && \ |
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.
do we really need to use virtualenv with docker?
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 prefer to have my Docker setup as close as possible to my production setups which use virtualenvs.
But can be removed if you don't like it.
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.
wondering why didn't we consider using FROM python:3.8-slim-buster?
@@ -0,0 +1,17 @@ | |||
version: "3.5" |
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.
is it python version?
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.
It's the Compose file format version, see https://docs.docker.com/compose/compose-file/
thanks! |
To simplify local development and reduce the need to have virtualenv and other libs installed, this PR adds a simple docker container to run tests in.