new things

meow
Dominika Liberda 2022-04-09 16:51:42 +02:00
parent a7b7ccfa7d
commit 74be9c3c06
3 changed files with 7 additions and 10 deletions

View File

@ -1,2 +1 @@
PACKAGER_PRIVKEY="/home/ci/.abuild/ci-6061e1c0.rsa"
REPODEST="/mnt/alpine"

View File

@ -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"]

View File

@ -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
```