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

Write a shell script to simplify the execution of a client's container #9

Open
eyp opened this issue Nov 10, 2020 · 0 comments
Open
Assignees
Labels
client enhancement New feature or request
Milestone

Comments

@eyp
Copy link
Owner

eyp commented Nov 10, 2020

Now, to execute several clients we have to run the same line with different port:

docker run --rm --name fl-client-5002 -p 5002:5002 -e CLIENT_URL='http://fl-client-5002:5002' -e SERVER_URL='http://fl-server:5000' -e FLASK_RUN_HOST=0.0.0.0 -e FLASK_RUN_PORT=5002 --network=fl-network fl-client:latest
docker run --rm --name fl-client-5003 -p 5003:5003 -e CLIENT_URL='http://fl-client-5003:5003' -e SERVER_URL='http://fl-server:5000' -e FLASK_RUN_HOST=0.0.0.0 -e FLASK_RUN_PORT=5003 --network=fl-network fl-client:latest
docker run --rm --name fl-client-5004 -p 5004:5004 -e CLIENT_URL='http://fl-client-5004:5004' -e SERVER_URL='http://fl-server:5000' -e FLASK_RUN_HOST=0.0.0.0 -e FLASK_RUN_PORT=5004 --network=fl-network fl-client:latest

The line for each container is a bit cumbersome, probably with a simple shell script that receives a port number is enough.

@eyp eyp added the enhancement New feature or request label Nov 10, 2020
@eyp eyp added this to the Version 1.0 milestone Nov 10, 2020
@eyp eyp self-assigned this Nov 10, 2020
@eyp eyp added the client label Nov 10, 2020
@eyp eyp modified the milestones: Version 1.0, Version 1.1 Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant