Skip to main content

Dockerfile generator tool

Project description

This is a simple tool to generate Dockerfile files from YAML templates.

much_files.jpg

Usage

This tool is shipped as a Docker image registered as jboss/dogen. You can see the Dockerfile for this image in the main directory of the source distribution. This Docker image uses some conventions:

  1. The image template that should be converted into Dockerfile is expected to be available at /input/image.yaml.

  2. The output directory will be /output.

  3. The directory with (optional) scripts should be available at /scripts.

Considering above you need to remember to mount appropriate volumes at the container start. You are free to change the paths, but please remember to provide new locations as part of the container’s run command instruction.

Examples

For image without scripts to be added:

docker run -it --rm -v PATH_TO_IMAGE_YAML:/input/image.yaml:z -v PATH_TO_TARGET_DIR:/output:z jboss/dogen:1.0.0

For image with scripts to be added:

docker run -it --rm -v PATH_TO_SCRIPTS_DIR:/scripts:z -v PATH_TO_IMAGE_YAML:/input/image.yaml:z -v PATH_TO_TARGET_DIR:/output:z jboss/dogen:1.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dogen-2.0.0rc10.tar.gz (13.7 kB view details)

Uploaded Source

File details

Details for the file dogen-2.0.0rc10.tar.gz.

File metadata

  • Download URL: dogen-2.0.0rc10.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dogen-2.0.0rc10.tar.gz
Algorithm Hash digest
SHA256 3dc50f53a46370599eb0f45c71fb1d5b629e9dfe3b9663f8024b2da473a10be0
MD5 2689ccac9ec20b341206bd711fe23ff5
BLAKE2b-256 7c5d2bd496c5bfef6d5e9004cf6ea573b66bbe372c395972dfe231d737d8c54a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page