-
Notifications
You must be signed in to change notification settings - Fork 9
container backend: container.lifetime schema, setup_script provisioning, and persistent mode #195
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
33286f5
orchestrators/factory: collapse container enabled+launch into contain…
atnair-amd b31b343
runtimes: drop launch short-circuit, add image_sha_status
atnair-amd fa6ec07
orchestrators/container: branch setup/teardown on container.lifetime
atnair-amd c14b914
input/cluster_file: use container.lifetime in cluster_container.json …
atnair-amd ab74309
core/unittests: cover container.lifetime resolution and per-lifetime …
atnair-amd 7c8be5c
docs: document container.lifetime schema (replace enabled/launch)
atnair-amd 0ddd336
orchestrators/scripts: add default container provisioning script
atnair-amd 778b39b
orchestrators/factory: resolve and validate container.setup_script
atnair-amd f3d2b66
orchestrators/container: provision launched containers via setup_script
atnair-amd 11218e3
orchestrators/container: fix setup_sshd pgrep precheck matching its p…
atnair-amd dadc82b
input/cluster_file: document and sample container.setup_script
atnair-amd 8fcfec9
docs: document container.setup_script in cluster-file references
atnair-amd 87b9065
orchestrators/unittests: cover container.setup_script resolution
atnair-amd aed4df1
orchestrators/unittests: cover container provisioning and sshd pgrep …
atnair-amd 6d182a3
orchestrators/runtimes: harden container persistent lifetime
atnair-amd f950082
orchestrators: apply ruff format to satisfy the fmt-check gate
atnair-amd fa4ca32
orchestrators: rename container lifetime 'external' to 'no_launch'
atnair-amd ec87e4f
orchestrators: replace container enabled/launch with container.lifetime
atnair-amd cd23180
address review: trim normalize comment, carry lifetime in runtime tes…
atnair-amd a643858
tests: drop redundant persistent-idempotent test, strip dead warning …
atnair-amd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #!/usr/bin/env bash | ||
| # Default CVS container provisioning script. | ||
| # | ||
| # Run inside each freshly-launched container (via `docker exec`) before | ||
| # setup_sshd. CVS's container exec model needs an in-container sshd on port | ||
| # 2224; many base images do not ship one. This installs only the sshd binary | ||
| # (openssh-server) so the existing setup_sshd can start `/usr/sbin/sshd -p2224`. | ||
| # | ||
| # Override with container.setup_script in the cluster file to install other | ||
| # packages (or to support non-apt base images -- this default is apt-only). | ||
| set -euo pipefail | ||
|
|
||
| if command -v sshd >/dev/null 2>&1 || [ -x /usr/sbin/sshd ]; then | ||
| echo "default_container_setup: sshd already present, nothing to install" | ||
| exit 0 | ||
| fi | ||
|
|
||
| export DEBIAN_FRONTEND=noninteractive | ||
| apt-get update | ||
| apt-get install -y --no-install-recommends openssh-server |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Do we need this comment?
Uh oh!
There was an error while loading. Please reload this page.
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.
removed