Skip to content

djbender/docker-base-images

Repository files navigation

docker-base-images

Build Images

Multi architecture docker base images

Available images:

How to build

docker buildx bake -f ruby/4.0/docker-bake.hcl

To build only for your native architecture (faster, loads image locally):

docker buildx bake -f ruby/4.0/docker-bake.hcl \
  --set '*.platform=linux/arm64' \
  --set '*.cache-from=' \
  --set '*.cache-to=' \
  --load

Build cache (optional)

Log in to ghcr.io for faster builds:

echo $GHCR_PAT | docker login ghcr.io -u USERNAME --password-stdin

Without this, you'll see errors like:

#9 importing cache manifest from ghcr.io/djbender/core:jammy-cache
#9 ERROR: failed to configure registry cache importer: failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized

Development

We use ruby , and erb templates to generate our Dockerfile's

  • Install ruby, (chruby, or asdf)
  • bundle install
  • bundle exec rake -T to see rake tasks

You can install some useful git-hooks by install overcommit

  • gem install overcommit
  • cp .overcommit.sample.yml .overcommit.yml
  • overcommit --install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •