+ run.sh because I'm lazy

meow
Dominika Liberda 2022-04-10 12:28:49 +02:00
parent 58c74cdd1d
commit 6d5b98a695
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run --rm -it -v "$(pwd):/aports" -v "$(pwd)/out:/home/domi/packages" -w "/aports" meow