diff --git a/Dockerfile b/Dockerfile index 40178a3..fa6ce4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:edge 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 + && apk update && apk add micro abuild atools sudo && adduser -G abuild -D -u 1001 domi && echo "domi ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers VOLUME /aports diff --git a/README.md b/README.md index 2cde314..3fb267a 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ The recommended way for building the packages is Docker. Setup: - ensure that you have the private key in `.abuild/` -- build the image using `docker build -t builder .` +- build the image using `docker build -t meow .` - sync the current repo to a directory called `out` ```bash -docker run --rm -it -v "$(pwd):/aports" -v "$(pwd)/out:/home/domi/packages" -w "/aports" builder +./run.sh ``` diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..606b79f --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker run --rm -it -v "$(pwd):/aports" -v "$(pwd)/out:/home/domi/packages" -w "/aports" meow