docker: publishable runtime image (ghcr.io/orlyatomics/orly) with in-container orlyc (#530) - #531
Merged
Merged
Conversation
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.
Closes #530. The last mile of "try Orly in five minutes" for the agent-shared-memory direction (#526/#528) — and the only way to run Orly on non-Linux hosts (the engine is hard-Linux-only: epoll, libaio, eventfd).
What
Dockerfile(multi-stage):make bootstrap+jhm -c releasefor justorlyiandorlyc, then the built orlyc pre-compiles the example packages (sample,graph,market) — each orlyc run stands up and tears down its embedded server, so the binaries get smoked during the image build itself;.soset, plusg++,uuid-dev, and the source tree (ORLY_SRC_ROOT=/opt/orly/src/) so user.orlypackages compile inside the container —docker exec <ctr> orlyc -o ... yourpkg.orlyyields a loadable.so.docker/entrypoint.sh: solo mem-simorlyi, WS on 8082, baked package dir, conservative sizing via env (ORLY_MEM_SIM_MB, ...); extradocker runargs pass through verbatim, so any orlyi flag can be overridden..github/workflows/docker.yml: PRs touching the docker files build the image and gate it twice — theclients/mcpsmoke pointed at the containerized server (full tool surface against the published artifact), and an in-container from-scratch package compile.workflow_dispatchor av*tag additionally pushesghcr.io/orlyatomics/orly(:latest+ the version tag)..dockerignore: notably excludes the host-builttools/jhm/tools/make_dep_file— if those leak into the context,make bootstrapskipsbootstrap.shand the.jhmtree-root marker it creates, and the build dies at jhm's "Unable to find .jhm".Verified locally (716MB image)
sample.1, pov, write/read, atomic 3-write batch, error surface).orlyccompile of a new package to a loadable.so(this check caught a missinguuid-dev— generated code includesbase/uuid.h→<uuid/uuid.h>, so the runtime lib alone is not enough; the gate now covers it in CI).mlockneeds no ulimit ceremony: failure already degrades silently (ENOMEM/EPERM path inbase/mlock.cc).Out of scope
Disk-mode persistence docs beyond the flag pass-through, multi-arch (amd64 only), Docker Hub mirroring. First publish to ghcr is a
workflow_dispatchaway once this merges.