Use non root image
continuous-integration/drone/push Build is failing Details

master
blallo 2021-02-21 00:39:44 +01:00
parent 55e276d75e
commit 25c8b1ec31
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
3 changed files with 7 additions and 26 deletions

View File

@ -13,7 +13,7 @@ workspace:
steps:
- name: build_electron-ozone
pull: if-not-exists
image: leophys/pikaur-root:0.1
image: leophys/pikaur:0.1
commands:
- /usr/bin/pikaur -Sy --noconfirm electron-ozone
volumes:
@ -80,7 +80,7 @@ workspace:
steps:
- name: build_electron-ozone
pull: if-not-exists
image: leophys/pikaur-root:0.1
image: leophys/pikaur:0.1
commands:
- /usr/bin/pikaur -Sy --noconfirm discord_arch_electron
volumes:
@ -168,6 +168,6 @@ depends_on:
---
kind: signature
hmac: 084acd02238136a8d843483c4c458d0d43d55e4b97327983930c5e9be8c276b0
hmac: f6ed83287f957c332c27c5095dcd458ae29e216f5b142792cd459c18832abcb7
...

View File

@ -1,10 +1,11 @@
FROM archlinux:latest
ARG uid=1000
ARG gid=1000
ARG gid=33
RUN groupadd -g ${gid} doer \
&& useradd -u ${uid} -g doer -m -d /doer doer \
RUN CHECK_GROUP=$(cat /etc/group|awk -F: '{print $3}'|egrep "^${gid}$"|wc -l) \
&& if [ $CHECK_GROUP -eq 0 ]; then groupadd -g ${gid} doer; fi \
&& useradd -u ${uid} -g ${gid} -m -d /doer doer \
&& pacman -Sy --noconfirm \
base-devel \
glibc \

View File

@ -1,20 +0,0 @@
FROM archlinux:latest
RUN pacman -Sy --noconfirm \
base-devel \
glibc \
git \
sudo \
python-commonmark \
pyalpm \
&& mkdir /build
VOLUME ["/var/lib/pacman", "/var/cache/pacman"]
WORKDIR /build
RUN git clone https://aur.archlinux.org/pikaur.git \
&& cd pikaur \
&& makepkg -fsri --noconfirm
ENTRYPOINT ["/usr/bin/pikaur"]
CMD []