-
Notifications
You must be signed in to change notification settings - Fork 0
Replace Linux and Windows channel VMs with durable OCI containers #40
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 all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2d7960a
Replace Linux and Windows channel VMs with durable OCI containers
gitcommit90 5788001
Fix OCI candidate host packaging gates
gitcommit90 b46be89
Harden installed Linux OCI runtime paths
gitcommit90 cc5cdc8
Preserve OCI storage ownership on reinstall
gitcommit90 47fb75f
Document OCI reinstall ownership fix
gitcommit90 d2829c1
Create Linux OCI runtime roots across reboot
gitcommit90 d7c04a9
Use numeric OCI identities after host reboot
gitcommit90 f091325
Exclude dependency instructions from Windows builds
gitcommit90 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
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
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,39 @@ | ||
| FROM docker.io/library/ubuntu:24.04@sha256:4fbb8e6a8395de5a7550b33509421a2bafbc0aab6c06ba2cef9ebffbc7092d90 | ||
|
|
||
| ARG AGENT_UID=1000 | ||
| ARG AGENT_GID=1000 | ||
| ENV container=oci DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| RUN test "${AGENT_UID}" -ge 1 && test "${AGENT_GID}" -ge 1 \ | ||
| && apt-get update && apt-get install -y --no-install-recommends \ | ||
| bash build-essential ca-certificates coreutils cron curl dbus file findutils \ | ||
| git gzip iproute2 iputils-ping jq less locales man-db nano openssh-client \ | ||
| procps python3 python3-pip rsync sudo systemd systemd-sysv tar tzdata unzip \ | ||
| vim-tiny wget xz-utils zip \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && existing_group="$(getent group "${AGENT_GID}" | cut -d: -f1 || true)" \ | ||
| && existing_user="$(getent passwd "${AGENT_UID}" | cut -d: -f1 || true)" \ | ||
| && if test -z "${existing_group}"; then groupadd --gid "${AGENT_GID}" agent; elif test "${existing_group}" != agent; then groupmod --new-name agent "${existing_group}"; fi \ | ||
| && if test -z "${existing_user}"; then useradd --uid "${AGENT_UID}" --gid "${AGENT_GID}" --create-home --shell /bin/bash agent; elif test "${existing_user}" != agent; then usermod --login agent --home /home/agent --move-home --gid "${AGENT_GID}" --shell /bin/bash "${existing_user}"; else usermod --home /home/agent --move-home --gid "${AGENT_GID}" --shell /bin/bash agent; fi \ | ||
| && mkdir -p /workspace/files /var/lib/1helm /etc/sudoers.d \ | ||
| && chown -R "${AGENT_UID}:${AGENT_GID}" /workspace /home/agent \ | ||
| && printf 'agent ALL=(ALL) NOPASSWD:ALL\n' >/etc/sudoers.d/agent \ | ||
| && chmod 0440 /etc/sudoers.d/agent \ | ||
| && printf '%s\n' '1helm-channel-oci-v1' >/var/lib/1helm/image-contract \ | ||
| && : >/etc/machine-id \ | ||
| && mkdir -p /var/lib/dbus \ | ||
| && : >/var/lib/dbus/machine-id \ | ||
| && systemctl set-default multi-user.target \ | ||
| && systemctl mask \ | ||
| apt-daily.service apt-daily.timer apt-daily-upgrade.service apt-daily-upgrade.timer \ | ||
| console-getty.service dev-hugepages.mount getty@.service man-db.timer systemd-logind.service \ | ||
| dpkg-db-backup.timer e2scrub_all.timer e2scrub_reap.service fstrim.timer motd-news.timer \ | ||
| systemd-ask-password-console.path systemd-ask-password-wall.path systemd-pstore.service \ | ||
| systemd-sysext.service systemd-sysext.socket systemd-tmpfiles-clean.service \ | ||
| systemd-tmpfiles-clean.timer systemd-tmpfiles-setup.service systemd-update-utmp.service \ | ||
| sys-fs-fuse-connections.mount \ | ||
| && (systemctl disable cron.service || true) | ||
|
|
||
| STOPSIGNAL SIGRTMIN+3 | ||
| CMD ["/sbin/init"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ONEHELM_OCI_RUNTIME_VERSION="1helm-oci-runtime-v1" | ||
| ONEHELM_OCI_STATE_ROOT="/var/lib/1helm-oci-v1/runtime/oci" | ||
| ONEHELM_OCI_RUN_ROOT="/run/1helm-oci" | ||
| ONEHELM_OCI_CONTAINERFILE="/usr/lib/1helm-oci/Containerfile.oci" | ||
| ONEHELM_OCI_SERVICE_USER="1helm" | ||
| ONEHELM_OCI_AGENT_UID="1000" | ||
| ONEHELM_OCI_AGENT_GID="1000" |
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
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
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.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: gitcommit90/1Helm
Length of output: 3024
🏁 Script executed:
Repository: gitcommit90/1Helm
Length of output: 5074
🏁 Script executed:
Repository: gitcommit90/1Helm
Length of output: 13400
🏁 Script executed:
Repository: gitcommit90/1Helm
Length of output: 14683
Document the Windows state roots. Add
%APPDATA%\1Helm-OCI-v1and%LOCALAPPDATA%\1Helm-Runtimehere so the recovery guidance covers both durable Windows paths.🤖 Prompt for AI Agents