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

Fixed double hyphen on docker set up script #9316

Open
wants to merge 1 commit into
base: syft-setup-script
Choose a base branch
from

Conversation

H4LL
Copy link
Member

@H4LL H4LL commented Sep 25, 2024

Currently the docker convenience script for mac is failing because in the docs it says to use a double hyphen before email and password but it was expecting a single hyphen in the file. I've updated the script so that both precedents work.

Description

I was running through the demo and the convenience script was failing. After a very quick debug I found an inconsistency between the command instruction in the documentation and the script flags. I added an option for each for the command as it is given in the documentaion.

Affected Dependencies

None

How has this been tested?

I have run it in my terminal (OSX):
Before (the issue):

`(base) adamhall@Adams-MacBook-Pro scripts % bash docker-setup.sh -v 0.8.2-beta.6 -n my_server_1 -s high -t datasite -p 8081 --password mypassword --email myemail'

Usage: docker-setup.sh -v|--version -n|--name <server_name> -t|--type <server_type> -p|--port [-s|--side <server_side_type>] [-email|--root-email <default_root_email>] [--password|--root-password <default_root_password>]
(base) adamhall@Adams-MacBook-Pro scripts % `

After the edits (and I updated the server version as the one in the docs is no longer available):

(base) Adams-MacBook-Pro:scripts adamhall$ bash docker-setup.sh -v 0.9.1-beta.11 -n my_server_1 -s high -t datasite -p 8081 --password mypassword --email myemail VERSION: 0.9.1-beta.11 SERVER_NAME: my_server_1 SERVER_SIDE_TYPE: high SERVER_TYPE: datasite PORT: 8081 DEFAULT_ROOT_EMAIL: myemail DEFAULT_ROOT_PASSWORD: mypassword Unable to find image 'openmined/syft-backend:0.9.1-beta.11' locally 0.9.1-beta.11: Pulling from openmined/syft-backend fc94bb2b60b6: Pull complete 17f8ee582a51: Pull complete 1483371d4790: Pull complete 68a809891839: Downloading 13.4MB/315.3MB fa13eea5e371: Waiting 6f448285cc53: Waiting ^C got 3 SIGTERM/SIGINTs, forcefully exiting

Checklist

Currently the convenience script for mac is failing because in the docs it says to use a double hyphen before email and password but it was expecting a single hyphen in the file. I've updated the script so that both precedents work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant