Giter Club home page Giter Club logo

dustomize's Introduction

dustomize - Dockerfile templates

GitHub Actions CI GitHub repo size Bitbucket open issues GitHub all releases License

This project is used to create powerful templates within Dockerfiles

⏏️ Options

A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:

Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.

Usage:
  dustomize parse [flags]

Flags:
  -c, --config string   Values file to read from.
  -f, --file strings    Template files to parse.
  -k, --folder string   Your templates directory to parse.
  -h, --help            help for parse
  -o, --output string   Export parsing to target folder.

📋 Example

link

# dustomize.yaml
options:
  displayValues: false # true = display appended values when parsing

import:
  fromFile:
    - example/values.yaml
    - example/values2.yaml
    - example/values3.yaml
  fromUrl:
    - https://run.mocky.io/v3/897c32b8-bf7c-40b4-ace6-2b6d5f68f6ac
    - https://run.mocky.io/v3/7456b035-f644-4ed2-b6c4-e777a9871d7d
    - https://run.mocky.io/v3/18543c68-c50b-464e-a130-86c2bf4574c7
  fromText: |
    Base: alpine

    command:
      copy: cp
      delete: rm
      add: touch

    lines:
      one: this is line number one
      two: this is line number two
      three: this is line number three
      four: this is line number four

    Attended: true

export:
  - template: example/templates/dockerfiles/Dockerfile
    target: example/outputs/dockerfiles/Dockerfile
    description: first example..

  - template: example/templates/dockerfiles/app1.Dockerfile
    target: example/outputs/dockerfiles/app1.Dockerfile
    description: second example..

  - template: example/templates/dockerfiles/app2.Dockerfile
    target: example/outputs/dockerfiles/app2.Dockerfile

  - template: example/templates/texts/TEST.MD
    target: example/outputs/texts/TEST.MD
# Dockerfile - before
FROM {{ .Base }}
RUN apt install {{ .git.packageName }}={{ .git.packageVersion }}
RUN echo {{ randAlphaNum 20 }}
// Install the CLI
go install .

// Run the CLI
dustomize parse // reads local config
# Dockerfile - after
FROM alpine
RUN apt install git=1:2.9.3-1
RUN echo gN5mBamkiCzMTycytuwC

ℹ️️ Requirements

  • Go 1.20.x (to build the project)

💁🏻 Contributing

This is an open source project. Any contribution would be greatly appreciated!

🚩 Issues

If you have found an issue, please report it on the issue tracker

Made with ❤️ in develeap

dustomize's People

Contributors

looty avatar

Stargazers

Gilad Neiger avatar  avatar

Watchers

 avatar

dustomize's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.