From 640e3921d8a2b341ff623e3fc3665f246083bb22 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 8 Apr 2021 20:06:48 +0200 Subject: Use pre-prepared Docker image in CI to speed things up --- script/builder_image/Dockerfile | 6 ++++++ script/builder_image/Makefile | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 script/builder_image/Dockerfile create mode 100644 script/builder_image/Makefile (limited to 'script/builder_image') 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 + -- cgit v1.2.3