Repository navigation
Ship a generic workstation setup script - #64
Merged
Merged
Conversation
scripts/spear-client-setup.sh prepares a workstation to run a SPEAR image from a private registry. It left the public tree because it named one site's host and carried its certificate; it comes back with neither. The site hands over its launcher configuration, workstation.conf, which already names the image and the inference host. The script derives the registry from the image name, trusts a registry-ca.crt found beside the file, logs in (SPEAR_REGISTRY_USER from the file, the password from SPEAR_REGISTRY_PASSWORD or asked), pulls the image, installs the launcher and copies the file to local.conf. A local.conf that was there before and differs is kept as local.conf.bak. A second argument overrides the image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
scripts/spear-client-setup.sh is back in the public tree without any site value: the site hands over its workstation.conf (and a registry-ca.crt beside it); the script derives the registry from the image, logs in, pulls, installs the launcher and writes local.conf. Documented in doc/source/start/container_run.rst. Tested with stub docker/sudo: env password, interactive login, image override, registry-less image, rerun idempotence, .bak only for a pre-existing file.