Skip to content

A tool to generate a Docker Bake file based on a folder

Notifications You must be signed in to change notification settings

matthieucx/autoDockerBake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Either install Go or run the provided binary. Go binaries are (mostly) self-contained. (A majore exception would be glibc). Binaries can be found in the current release.

Options: --username, Docker username --registry_prefix, Prefix appended to all images' name --modules_path, Path to explore for finding Docker Bake targets --log, Log level

Install Go

rm -rf /usr/local/go
wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz

# For bash
echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
source $HOME/.profile
# For fish
fish_add_path /usr/local/go/bin

go version

Developement

Managing Go dependencies

go get --upgrade <package>
# Import in your package
go mod tidy # will take care of adding it to go.mod and go.sum

To explore

  1. Matrices are integrated to buildx for bake target (added in v0.11.0-rc1). See: https://github.com/docker/buildx/releases/tag/v0.11.0-rc1
  2. Buildx supports multi-outputs (see moby/buildkit#1555); allows to generate a requirements.txt and an image using the same container building process, for example

About

A tool to generate a Docker Bake file based on a folder

Resources

Stars

Watchers

Forks

Packages

No packages published