This repository contains infrastructure for building docker images containing Cobalt binaries.
The docker image is based on alpine
image. cobalt
binary in the
image is statically linked with musl
.
Structure:
Makefile
- git submodule
cobalt.rs
Dockerfile
We use Makefile
for automating docker image build process. git
submodule cobalt.rs
contains Cobalt source code. Image version is
taken from submodule using git descrbie --tags
.
- make
- docker client (available without
sudo
)
Don't forget to checkout cobalt.rs
submodule:
git submodule init && git submodule update
Build docker images:
make
Publish docker image:
make push
Publish docker image as latest
:
make push-latest
Long story shot, in order to release a new version one needs to:
- update submodule so it points to a correct tag
- build image using
make
- push image using
make push
(and optionallymake push-latest
)