-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
74 lines (64 loc) · 2.76 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM zalox/manjaro
MAINTAINER Felix Schindler <aut at felixschindler dot net>
ADD root_home.tgz /root/
RUN chown -R root:root /root
RUN [ -e /etc/ssl/certs/ca-certificates.crt ] || \
ln -s /etc/ca-certificates/extracted/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt
RUN mkdir -p /root/.gnupg/dirmngr-cache.d && \
chmod 700 /root/.gnupg && \
touch /root/.gnupg/dirmngr_ldapservers.conf && \
echo "keyserver pool.sks-keyservers.net:80" > /root/.gnupg/dirmngr.conf && \
gpg -k && \
dirmngr < /dev/null
# https://forum.manjaro.org/t/update-issue-after-install/120848
RUN cd /tmp && \
curl https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/pacman-static --output pacman-static && \
chmod +x pacman-static && \
./pacman-static -Rsc --noconfirm wayland llvm-libs ; \
pacman-mirrors -c Germany && \
pacman-key --init && \
pacman-key --populate archlinux && \
pacman-key --populate manjaro && \
pacman-key --refresh-keys && \
./pacman-static -Syy --noconfirm archlinux-keyring manjaro-keyring && \
pacman-key --populate archlinux && \
pacman-key --populate manjaro && \
pacman-key --refresh-keys && \
./pacman-static -Syuu --noconfirm && \
rm pacman-static
RUN pacman -S --noconfirm base-devel bash-completion glibc git lzop openssh python sed sudo vim wget && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen && \
echo "LANG=en_US.UTF-8" > /etc/locale.conf && \
echo "LC_COLLATE=C" > /etc/locale.conf && \
echo "LC_ALL=en_US.UTF-8" > /etc/locale.conf && \
echo "LC_TIME=de_DE.UTF-8" > /etc/locale.conf
RUN yes | pacman -S gcc-multilib
RUN useradd -r -s /bin/bash -m -d /var/aur aur && \
echo "aur ALL=(ALL) NOPASSWD: /usr/bin/pacman" >> /etc/sudoers
ADD aur_home.tgz /var/aur/
RUN chown -R aur:aur /var/aur
USER aur
RUN mkdir -p /var/aur/.gnupg/dirmngr-cache.d && \
touch /var/aur/.gnupg/dirmngr_ldapservers.conf && \
chmod 700 /var/aur/.gnupg && \
echo "keyserver-options auto-key-retrieve" > /var/aur/.gnupg/gpg.conf && \
gpg -k && \
dirmngr < /dev/null
RUN cd /tmp && \
wget --no-check-certificate https://aur.archlinux.org/cgit/aur.git/snapshot/suexec.tar.gz && \
tar -xzf suexec.tar.gz && \
cd suexec && \
makepkg -si --noconfirm && \
cd /tmp && rm -rf suexec*
RUN cd /tmp && \
wget --no-check-certificate https://aur.archlinux.org/cgit/aur.git/snapshot/auracle-git.tar.gz && \
tar -xzf auracle-git.tar.gz && \
cd auracle-git && \
makepkg -si --noconfirm && \
cd /tmp && rm -rf auracle*
USER root
RUN pacman -Rsc --noconfirm $(pacman -Qdt) || echo no orphans present; pacman -Sc --noconfirm
COPY build-aur-package.sh update-aur-repo.py /usr/local/bin/
CMD ["/bin/bash"]