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

Assuming your current working directory contains your image.yaml file, any scripts your image.yaml references are in an adjacent subdirectory called scripts and you want the output written to an adjacent sub-directory named out:

docker run -it –rm -v $(pwd):/tmp:z dogen:latest –verbose /tmp/image.yaml /tmp/out

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.1.tar.gz (15.5 kB view details)

Uploaded Source

File details

Details for the file dogen-2.0.1.tar.gz.

File metadata

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

File hashes

Hashes for dogen-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4af2a6f6e6d4e4c51d562a85337df8c229a6169f588f9cd8c2387a68dd0883b4
MD5 7305ba122d6ed36f3133bd76ad9d8d2d
BLAKE2b-256 b5ce11a048c9bff18f776ff739a6a64e9759e7720a30ee11e168f12cc735feb9

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