Skip to content
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

Merged
merged 1 commit into from
Jan 11, 2021
Merged

Add docker env for local development #471

merged 1 commit into from
Jan 11, 2021

Conversation

lociii
Copy link
Contributor

@lociii lociii commented Nov 29, 2020

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.187% when pulling 1330621 on lociii:docker-env into 35f9a0e on justquick:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.187% when pulling 1330621 on lociii:docker-env into 35f9a0e on justquick:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.187% when pulling 1330621 on lociii:docker-env into 35f9a0e on justquick:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.187% when pulling 1330621 on lociii:docker-env into 35f9a0e on justquick:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.187% when pulling 1330621 on lociii:docker-env into 35f9a0e on justquick:master.

Copy link
Collaborator

@auvipy auvipy left a 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 && \
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it python version?

Copy link
Contributor Author

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/

@auvipy auvipy merged commit 04db1ed into justquick:master Jan 11, 2021
@auvipy
Copy link
Collaborator

auvipy commented Jan 11, 2021

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants