aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-04-08 20:06:48 +0200
committerAlex Auvolat <alex@adnab.me>2021-04-08 20:06:48 +0200
commit6e28ea6bdc00b313b62198be4417a9ff56cb1189 (patch)
treeaddceceab4fca556c38afa36dfb54e5f46bdfdb5 /script
parent7ba80b610815fed863de312f70038291dc8a4585 (diff)
downloadgarage-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/Dockerfile6
-rw-r--r--script/builder_image/Makefile8
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
+