Skip to content

v0.0.5

Choose a tag to compare

@prism-admin prism-admin released this 29 Dec 04:48
· 76 commits to main since this release

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 image key:
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 type docker is supported
  • base: 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 and base are mutually exclusive.
  • registry: the registry to which to push the completed image. As of now, accepted values are dockerhub and ecr. If this isn't specified, Nomad defaults to ecr.
  • 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.