lokinet/contrib/ci/docker/rebuild-docker-images.sh
Jason Rhinelander ca9d979361 Docker image updates
- split debian sid into base/sid/clang images
- similarly for debian stable
- add jsonnet to lint
- add `--pull` to docker build so that we always pull the latest images
  (otherwise we were building on whatever local cache we have for
  `debian:sid`, etc., which made the base image update layer much
  larger).
- don't install Recommends by default
- add libzmq3-dev
- split android into android (base) and flutter
- hard-code registry.oxen.rocks into the dockerfile stuff because that
  seems to be the only way to properly depend on other docker builds.
- update a few CI builds that should have been using our images but
  weren't.
- Update a few CI images to bullseye instead of buster

Add openssh-client (for sftp to upload builds)
2021-10-16 15:54:22 -03:00

20 lines
416 B
Bash
Executable File

#!/bin/bash
set -o errexit
registry=registry.oxen.rocks
if [[ $# -eq 0 ]]; then
files=(*.dockerfile)
else
files=("$@")
fi
for file in "${files[@]}"; do
name="${file#[0-9][0-9]-}" # s/^\d\d-//
name="${name%.dockerfile}" # s/\.dockerfile$//
echo -e "\e[32;1mrebuilding $name\e[0m"
docker build --pull -f $file -t $registry/lokinet-ci-$name .
docker push $registry/lokinet-ci-$name
done