Skip to content

Setup docker build on release#11

Open
fuCtor wants to merge 4 commits into
Discarded-Team:developfrom
fuCtor:feature/docker
Open

Setup docker build on release#11
fuCtor wants to merge 4 commits into
Discarded-Team:developfrom
fuCtor:feature/docker

Conversation

@fuCtor

@fuCtor fuCtor commented May 11, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@D-Mantrid D-Mantrid self-requested a review May 11, 2020 21:55

@D-Mantrid D-Mantrid left a comment

Copy link
Copy Markdown
Member

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.

Comment thread Dockerfile
RUN mkdir /app
WORKDIR /app
ADD requirements.txt .
RUN pip install -r requirements.txt

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

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.

Well, I think now it's a right time to do this.

@D-Mantrid D-Mantrid left a comment

Copy link
Copy Markdown
Member

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.

Comment thread .gitignore
# Other
*pycache*

.vscode No newline at end of file

Copy link
Copy Markdown
Member

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.

Comment thread Dockerfile
RUN mkdir /app
WORKDIR /app
ADD requirements.txt .
RUN pip install -r requirements.txt

Copy link
Copy Markdown
Member

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.

Well, I think now it's a right time to do this.

Comment thread README.md
### Docker build & run
```bash
docker build -t pyndemic --rm .
docker run --rm -ti pyndemic

Copy link
Copy Markdown
Member

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.

@D-Mantrid D-Mantrid added the enhancement New feature or request label Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants