-
Notifications
You must be signed in to change notification settings - Fork 1k
Improve Docker Support #1145
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
Improve Docker Support #1145
Conversation
2b8070f
to
ffa4c94
Compare
Dockerfile
Outdated
COPY . . | ||
|
||
RUN pip3 install -r requirements.txt && pip3 install -e . | ||
RUN pip install -r requirements.txt && pip install -e . |
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.
in the container there is no other python version so no need to keep the references to pip3
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 keep pip3, that way we do not get side effects if python2 is installed.
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.
Sure I'll update. However, the scenario you are talking about it's not something that would happen accidentally.
Requires modify the dockerfile. However, I don't mind to revert the change
Dockerfile
Outdated
COPY . . | ||
|
||
RUN pip3 install -r requirements.txt && pip3 install -e . | ||
RUN pip install -r requirements.txt && pip install -e . |
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 keep pip3, that way we do not get side effects if python2 is installed.
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.
LGTM.
What?
Improve docker support by adding a default working CMD instruction.
By default tries to run the modbus server in a headless mode.
Additionally, adding a bit more details to the documentation
Why?
This makes the container more useful and friendly. It becomes ready to use with no much more to do.
Proof it's working