Repository navigation
feat: add OpenShell sandbox image variant - #113
Merged
Merged
Conversation
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
|
Caution Review failedThe pull request is closed. |
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
pavelanni
marked this pull request as ready for review
November 6, 2026 23:48
pavelanni
added a commit
that referenced
this pull request
Nov 16, 2026
The -openshell image entries and the combined docker_manifests have been in .goreleaser.yaml since #113; publication happens at the next tagged release and is verified by T7. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]>
6 of 8 tasks
pavelanni
added a commit
that referenced
this pull request
Nov 16, 2026
* fix(openshell): build the image for both architectures The base was pinned to a single-architecture arm64 digest, so an amd64 build failed at the first RUN step with "Exec format error" while still producing an image named -amd64. The image-openshell target also never passed --platform, so OPENARCH=amd64 cross-compiled the binary but reused the cached arm64 layers, yielding an arm64 image with an amd64 binary. Use the multi-arch ubi-minimal:10.1 index and pass the matching --platform. Create /sandbox next to /workspace because the Kubernetes driver mounts the workspace PVC there and the image rootfs is not writable on that driver. Closes #130 Closes #131 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]> * fix(openshell): derive the build arch from the builder and move to UBI 10.3 OPENARCH defaulted to the local `go env GOARCH`, so a PODMAN_CONNECTION build requested the client's architecture from a remote engine and failed with "Exec format error". Derive it from the engine that will build. The base tag now floats (pre-production), so build with --pull=newer to keep UBI's CVE rebuilds flowing, and move to ubi-minimal:10.3. Document /sandbox for the Kubernetes driver in deploy/README.md and record the no-digest-pin policy in the repo guides. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]> * fix(openshell): handle the Docker engine and exercise the binary in the arch check Docker's `build --pull` is a boolean and rejects `--pull=newer`, so select the pull flag from CONTAINER_ENGINE. Also run `docsclaw --version` in the arch regression row so a labelled-but-wrong-arch binary fails the check. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]> * chore(openspec): mark the GoReleaser openshell task done The -openshell image entries and the combined docker_manifests have been in .goreleaser.yaml since #113; publication happens at the next tagged release and is verified by T7. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Pavel Anni <[email protected]> --------- Signed-off-by: Pavel Anni <[email protected]>
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.
Summary
Containerfile.openshell: UBI 10 minimal (pinned digest), non-root1001:0, binary at/usr/local/bin/docsclawwith no symlink, writable/workspace,bashandsleep, defaultsleep infinity.make image-openshellfor local builds.ghcr.io/redhat-et/docsclaw:<version>-openshell(amd64 + arm64 manifest) from GoReleaser.Base choice: UBI 10 minimal, not micro.
sandbox execdefaults tobash -lcand micro ships nobash; minimal ships bothbashandsleep. Measured image size: 138 MB.Verification
make image-openshellbuilds;podman execchecks: uid1001,command -v docsclaw->/usr/local/bin/docsclaw,readlink -fsame path (no symlink),docsclaw --version->docsclaw version dev,/workspacewritable,sleep 1works.goreleaser release --snapshot --clean --skip=publishsucceeded and built both-openshell-amd64and-openshell-arm64.goreleaser checkexits 2 on pre-existing deprecated properties (dockers,docker_manifests,brews); the unmodified config fails identically.make lint0 issues;markdownlint-cli20 issues.docsclaw askdoes not exist yet (WP06), so the config-dir error path was verified withdocsclaw serve --config-dir /nonexistent(exit 1).🤖 Generated with Claude Code