Skip to content

Conversation

serroba
Copy link

@serroba serroba commented Oct 27, 2022

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

image

@serroba serroba force-pushed the improve-docker-support branch from 2b8070f to ffa4c94 Compare October 27, 2022 01:02
Dockerfile Outdated
COPY . .

RUN pip3 install -r requirements.txt && pip3 install -e .
RUN pip install -r requirements.txt && pip install -e .
Copy link
Author

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

Copy link
Collaborator

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.

Copy link
Author

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

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.

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

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

LGTM.

@janiversen janiversen merged commit d8c9cae into pymodbus-dev:dev Oct 30, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants