Repository navigation
v0.0.5
v0.0.5, December 28, 2023
New features
Docker image support
- In previous versions of Nomad, users could only run their code on the agent's runtime environment itself. In this version, users can run their code in a Docker image inside the agent. They can do so with the
imagekey:
my_agent_name:
infra:
- type: ec2
...
image:
type: docker
base: python:3.10.8-slim-bullseye
registry: dockerhub
registry_creds:
username: ...
password: ...
requirements: ...
...
The image key accepts the following nested keys:
type: this represents the image type. As of now, only typedockeris supportedbase: Nomad automatically builds your Dockerfile and Docker image for you based on your configuration file. This key specifies the base image upon which to build.context: this key is used to specify a pre-existing Dockerfile that you wish to run on your agent. Note that, if you specify this key, Nomad will not build a Dockerfile for you. In other words, this andbaseare mutually exclusive.registry: the registry to which to push the completed image. As of now, accepted values aredockerhubandecr. If this isn't specified, Nomad defaults toecr.registry_creds: a dictionary of the registry login credentials. This is optional — Nomad will prompt you if it needs login credentials to push your image to the desired registry.
Improvements
None.
Bug fixes
None.