Docker Images¶
Runtime code is packaged as a Docker image.
from armnet_client import Image
image = Image.build(
dockerfile="Dockerfile",
context_dir=".",
name="my-runtime",
).push()
Dockerfile Requirements¶
Your image should install:
pip install armnet-core armnet-runtime
and use armnet-runtime as the entrypoint:
CMD ["armnet-runtime", "/app/main.py"]
Build Contexts¶
Image.build() supports named build contexts for local source trees:
Image.build(
dockerfile="Dockerfile",
context_dir=".",
name="my-runtime",
build_contexts={
"my_local_package": "../my_local_package",
},
)
The Dockerfile can then use:
COPY --from=my_local_package . /app/my_local_package
Platforms¶
Set ARMNET_DOCKER_PLATFORM or pass platform=... when building for a
different robot-cell architecture.