Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with using devcontainers tooling to create production Docker container images #651

Open
mscottford opened this issue Aug 29, 2023 · 0 comments
Labels
dev-ops Updates to the CI, build, etc.
Milestone

Comments

@mscottford
Copy link
Member

There are some current challenges with creating production Docker container images:

  • As the number of language agents grows, there become more container images that should be created
  • There is no standard mechanism to use chunks of instructions in a Dockerfile and compose Dockerfiles from these chunks

The devcontainers "features" could help solve this problem:

  • Each feature is a self-contained set of shell scripts and associated metadata
  • Features can be applied to a base container image in any order
  • Running devcontainer build creates a container image that can be published or run just like any other container

A "feature" has already been created that installs freshli-agent-java into a devcontainer. This "feature" could be used as a basis for building a production container image as well.

Using devcontainers "features" could also make the logic for building a production Docker container more maintainable.

  • Each "feature" has the ability to define other features that it depends on.
  • There are published "features" that already install some of the tools that we require in a production container, such as a JDK and Maven.
@mscottford mscottford added the dev-ops Updates to the CI, build, etc. label Aug 29, 2023
@mscottford mscottford added this to the v0.8.0 milestone Aug 29, 2023
@github-project-automation github-project-automation bot moved this to Backlog in Freshli Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-ops Updates to the CI, build, etc.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant