Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.42 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.42 KB

docker-base-images

Build Images

Official Bridge multi architecture docker base images

Available images:

How to build

  • [Optional] Log in to ghcr.io for build cache

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

    Login Succeeded

Note: without this step, you'll see messages like when building:

#9 importing cache manifest from ghcr.io/get-bridge/core:jammy-cache
#9 ERROR: failed to configure registry cache importer: failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
  • docker buildx bake -f core/jammy/docker-bake.hcl
  • or if you get an error PWD=$(pwd) docker buildx bake -f core/jammy/docker-bake.hcl

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