aboutsummaryrefslogtreecommitdiff
path: root/script/builder_image
diff options
context:
space:
mode:
Diffstat (limited to 'script/builder_image')
-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
+