diff --git a/.abuild/abuild.conf b/.abuild/abuild.conf index fc52d90..1e7901f 100644 --- a/.abuild/abuild.conf +++ b/.abuild/abuild.conf @@ -1,2 +1 @@ PACKAGER_PRIVKEY="/home/ci/.abuild/ci-6061e1c0.rsa" -REPODEST="/mnt/alpine" diff --git a/Dockerfile b/Dockerfile index b56c553..20aaff4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,9 @@ -FROM alpine:latest +FROM alpine:edge -COPY ./build.sh /usr/local/bin/ +RUN echo -e "http://alpine.sakamoto.pl/alpine/edge/main\nhttp://alpine.sakamoto.pl/alpine/edge/community\nhttp://alpine.sakamoto.pl/alpine/edge/testing" > /etc/apk/repositories \ + && apk update && apk add micro abuild atools sudo && adduser -G abuild -D -u 1001 domi && echo "domi ALL=(ALL) ALL" > /etc/sudoers -RUN echo 'http://alpine.sakamoto.pl/alpine/edge/main/' > /etc/apk/repositories -RUN echo 'http://alpine.sakamoto.pl/alpine/edge/community/' >> /etc/apk/repositories -RUN echo 'http://alpine.sakamoto.pl/alpine/edge/testing/' >> /etc/apk/repositories -RUN apk add bash abuild build-base nano -RUN adduser -D ci -RUN addgroup ci abuild +VOLUME /aports USER ci COPY ./.abuild /home/ci/.abuild @@ -16,3 +12,5 @@ USER root RUN cp /home/ci/.abuild/ci-6061e1c0.rsa.pub /etc/apk/keys/ USER ci + +CMD ["ash"] diff --git a/README.md b/README.md index c172f2a..60d1f0d 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ Setup: - sync the current repo to a directory called `out` ```bash -docker run --rm -it -v "$(pwd):/pwd" -v "$(pwd)/out:/mnt/alpine" -w "/pwd" builder build.sh +docker run --rm -it -v "$(pwd):/aports" -v "$(pwd)/out:/home/ci/packages" -w "/pwd" builder ```