An open API service indexing awesome lists of open source software.

https://github.com/matsubara0507/dockwright

CLI for building Dockerfile
https://github.com/matsubara0507/dockwright

docker haskell haskell-application

Last synced: 2 months ago
JSON representation

CLI for building Dockerfile

Awesome Lists containing this project

README

          

# dockwright

[![Build Application](https://github.com/matsubara0507/dockwright/actions/workflows/build.yaml/badge.svg)](https://github.com/matsubara0507/dockwright/actions/workflows/build.yaml)

CLI for building Dockerfile from template and config yaml.

see [example](example)

```
$ dockwright --help
dockwright [options] [config-file]
-h --help Show this help text
-v --verbose Enable verbose mode
--version Show version
-d --default Dump default config
--echo[=ENV] Show fetched env after build
--tags Fetch docker image tags from DockerHub
--new-tags Fetch new tags from tags config
--with-name Append image name to display tag
```

## Development

build docker image

```
$ stack --docker build -j 1 Cabal # if out of memory in docker
$ stack --docker --local-bin-path=./bin install
$ docker build -t matsubara0507/dockwright . --build-arg local_bin_path=./bin
```

run

```
$ docker run --rm -v `pwd`/example:/work matsubara0507/dockwright dockwright .dockwright.yaml
```