[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![Crates.io][crate-shield]][crate-url]
[![Twitch][twitch-shield]][twitch-url]

# Dofigen
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, which is now the default Docker build engine, optimizations that speed-up the Docker image build by parallelizing the layer builds.
A french DevOps said about it:
> C'est une bouffée, Dofigen, dans ce monde de con...teneurs.
[Report Bug](https://github.com/lenra-io/dofigen/issues)
·
[Request Feature](https://github.com/lenra-io/dofigen/issues)
## Getting Started
### Prerequisites
Install Dofigen using one of the following options.
#### Use it with Docker
You can run Dofigen directly from its Docker image with the following command:
```bash
docker run --rm -it -v $(pwd):/app -u $UID lenra/dofigen --help
```
#### Arch Linux
[dofigen](https://aur.archlinux.org/packages/dofigen) is available as an AUR package.
You can install it using an AUR helper (e.g. `paru`):
```bash
paru -S dofigen
```
#### Cargo
First install Cargo, the Rust package manager: https://doc.rust-lang.org/cargo/getting-started/installation.html
Then use the following command to install dofigen:
```bash
cargo install dofigen
```
#### Homebrew
You can install Dofigen using Homebrew:
```bash
brew tap lenra-io/tools
brew install dofigen
```
Or:
```bash
brew install lenra-io/tools/dofigen
```
#### Download the binary
You can download the Dofigen binary from [the release page](https://github.com/lenra-io/dofigen/releases) and add it to your path environment variable.