-
Notifications
You must be signed in to change notification settings - Fork 3
Setup docker build on release #11
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
base: develop
Are you sure you want to change the base?
Conversation
D-Mantrid
left a comment
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.
To be added on pre-release stage.
| RUN mkdir /app | ||
| WORKDIR /app | ||
| ADD requirements.txt . | ||
| RUN pip install -r requirements.txt |
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.
AFAIR, it is recommended to write pip install ... command with --no-cache-dir option as a good Docker practice.
It's not essential by now as we have no requirements at the moment, but you can add this option in the future.
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.
AFAIR, it is recommended to write
pip install ...command with--no-cache-diroption as a good Docker practice.
It's not essential by now as we have no requirements at the moment, but you can add this option in the future.
Well, I think now it's a right time to do this.
D-Mantrid
left a comment
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.
Hi, @fuCtor!
I left some issues below that must be resolved before merging your improvements.
I will squash&merge when we deal with them.
| # Other | ||
| *pycache* | ||
|
|
||
| .vscode No newline at end of file |
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.
We have already updated .gitignore with possible options for IDE stuff so that we have no need in this update.
| RUN mkdir /app | ||
| WORKDIR /app | ||
| ADD requirements.txt . | ||
| RUN pip install -r requirements.txt |
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.
AFAIR, it is recommended to write
pip install ...command with--no-cache-diroption as a good Docker practice.
It's not essential by now as we have no requirements at the moment, but you can add this option in the future.
Well, I think now it's a right time to do this.
| ### Docker build & run | ||
| ```bash | ||
| docker build -t pyndemic --rm . | ||
| docker run --rm -ti pyndemic |
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.
Please check that this docker command will end successfully.
Running the game by simple python pyndemic.py requires proceeding with some user input.
No description provided.