go-dbyml

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: MIT Imports: 1 Imported by: 0

README

go-dbyml

License build Go Report Card

Go-dbyml is a CLI tool to build a docker image with build options loaded from yaml. Instead of running the docker build with many options, write options in config file, build your docker image with them. It helps you to manage build process more readable and flexible.

Go-dbyml is a substitute of git-ogawa/dbyml with golang.

This is a pre-alpha version now.

Install

Install with go install.

go install github.com/git-ogawa/go-dbyml@latest

You can also manually download the binary from release page. Put it the directory in the $PATH.

Usage

go-dbyml --init
go-dbyml

Notes

Compared to git-ogawa/dbyml, there are some differences regarding the fields in the configuration file and features.

Build section

The following fields are currently enabled.

build:
  target: ''
  no_cache: false
  verbose: true
Registry section

The host and port are merge in host field, so set the format as "hostname:port" in the field.

registry:
    enabled: true
-    host: "myregistry" # Registry hostname or ip address 
-    port: "5000" # Registry port
+    host: "myregistry:5000"
Buildx section

The multi-platform build using buildx does not support yet, so buildx section in config file does not work now.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Dbyml is a CLI tool to build a docker image with the arguments loaded from configs in yaml.
Dbyml is a CLI tool to build a docker image with the arguments loaded from configs in yaml.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL