diff options
author | Alex Auvolat <alex@adnab.me> | 2021-04-08 20:06:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-08 20:06:48 +0200 |
commit | 6e28ea6bdc00b313b62198be4417a9ff56cb1189 (patch) | |
tree | addceceab4fca556c38afa36dfb54e5f46bdfdb5 /script | |
parent | 7ba80b610815fed863de312f70038291dc8a4585 (diff) | |
download | garage-6e28ea6bdc00b313b62198be4417a9ff56cb1189.tar.gz garage-6e28ea6bdc00b313b62198be4417a9ff56cb1189.zip |
Use pre-prepared Docker image in CI to speed things up
Diffstat (limited to 'script')
-rw-r--r-- | script/builder_image/Dockerfile | 6 | ||||
-rw-r--r-- | script/builder_image/Makefile | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/script/builder_image/Dockerfile b/script/builder_image/Dockerfile new file mode 100644 index 00000000..292d551d --- /dev/null +++ b/script/builder_image/Dockerfile @@ -0,0 +1,6 @@ +FROM rust:buster +RUN apt-get update && \ + apt-get install --yes libsodium-dev awscli python-pip && \ + rm -rf /var/lib/apt/lists/* +RUN rustup component add rustfmt +RUN pip install s3cmd diff --git a/script/builder_image/Makefile b/script/builder_image/Makefile new file mode 100644 index 00000000..00b0f6c7 --- /dev/null +++ b/script/builder_image/Makefile @@ -0,0 +1,8 @@ +DOCKER=lxpz/garage_builder_amd64 + +docker: + docker build -t $(DOCKER):$(TAG) . + docker push $(DOCKER):$(TAG) + docker tag $(DOCKER):$(TAG) $(DOCKER):latest + docker push $(DOCKER):latest + |