Dofigen is a Dockerfile generator using a simplified description in YAML or JSON format. It defines default values and behaviors that simplify the creation of Dockerfiles.
Dofigen is also made to use the Buildkit optimizations that speed-up the Docker image build by parallelizing the layer builds.
It uses the --link
option when adding files and the --mount=type=cache
option when running scripts (when you define caches
attribute).
You can use Buildkit with the docker buildx build
subcommand like this:
docker buildx build --cache-to=type=local,dest=.dockercache --cache-from=type=local,src=.dockercache -t my-app:latest --load .
A french DevOps said about it:
C'est une bouffée, Dofigen, dans ce monde de con...teneurs.
Use it with Docker
You can run Dofigen directly from its Docker image with the following command:
docker run --rm -it -v $(pwd):/app lenra/dofigen
See the full documentation on the GitHub repository.