From d1bf053a0e0727303fcaa8b4c332de6fe5522b6a Mon Sep 17 00:00:00 2001 From: f Date: Mon, 27 Jul 2020 16:41:02 -0300 Subject: [PATCH] repository builder (see sports) --- Dockerfile | 11 ++++++++++- build.sh | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile index 59c5898..992945c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,11 @@ -FROM sutty/monit:latest +FROM sutty/sdk:latest MAINTAINER "f " + +COPY ./build.sh /usr/local/bin/build +RUN chmod 755 /usr/local/bin/build +RUN echo 'https://alpine.sutty.nl/alpine/v3.12/sutty' >> /etc/apk/repositories +RUN wget https://alpine.sutty.nl/alpine/sutty.pub -O /etc/apk/keys/alpine@sutty.nl-5ea884cd.rsa.pub +RUN apk update || true + +USER builder +ENTRYPOINT /usr/local/bin/build diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..41f87b7 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +export PATH=/usr/lib/ccache/bin:$PATH + +cd /home/builder/package + +abuild checksum +abuild -r