-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
177 lines (137 loc) · 3.53 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# syntax=docker/dockerfile:experimental
# Apropos
ARG VERSION=latest
FROM archlinux:${VERSION}
RUN \
pacman -Syu --noconfirm \
bash \
bash-completion \
curl \
diffutils \
doxygen \
dkms \
emacs \
fakeroot \
gcc \
git \
libusb-compat \
linux-headers \
make \
nano \
ocaml \
openssh \
python3 \
python-numpy \
python-pillow \
rsync \
sudo \
unzip \
wget \
zip
RUN \
pacman -Syu --noconfirm \
qt5-base \
gdb \
sdl \
libcdio \
glu
RUN \
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /etc/sudoers
ARG USERNAME
ARG USERID
ARG GROUPNAME
ARG GROUPID
RUN \
groupadd --gid ${GROUPID} ${GROUPNAME} || \
groupmod --gid ${GROUPID} ${GROUPNAME}
RUN \
useradd \
--create-home \
--gid ${GROUPID} \
--uid ${USERID} \
--shell /bin/bash \
--groups wheel \
--password "$(openssl passwd -1 archlinux)" \
${USERNAME}
COPY 90-local.rules /etc/udev/rules.d/90-local.rules
COPY 98-buspirate.rules /etc/udev/rules.d/98-buspirate.rules
RUN gpasswd -a ${USERNAME} uucp
WORKDIR /home/${USERNAME}
USER ${USERNAME}
RUN mkdir pkg
WORKDIR /home/${USERNAME}/pkg
RUN \
git clone https://aur.archlinux.org/m68k-atari-mint-binutils.git && \
cd m68k-atari-mint-binutils && \
makepkg -f
USER root
RUN \
pacman -U --noconfirm m68k-atari-mint-binutils/m68k-atari-mint-binutils*.tar.zst
USER ${USERNAME}
RUN \
git clone https://aur.archlinux.org/m68k-atari-mint-gcc.git && \
cd m68k-atari-mint-gcc && \
makepkg -f
USER root
RUN \
pacman -U --noconfirm m68k-atari-mint-gcc/m68k-atari-mint-gcc*.tar.zst
USER ${USERNAME}
RUN \
git clone https://aur.archlinux.org/virtualjaguar-git.git && \
cd virtualjaguar-git && \
makepkg -f
USER root
RUN \
pacman -U --noconfirm virtualjaguar-git/virtualjaguar-git*.tar.zst
WORKDIR /home/${USERNAME}
USER ${USERNAME}
RUN mkdir -p bin
RUN mkdir -p -m 0700 .ssh && \
ssh-keyscan github.com > .ssh/known_hosts
COPY .bash.alias .
USER root
RUN chown ${USERNAME}:${GROUPNAME} .bash.alias
USER ${USERNAME}
RUN echo "if [ -f ${HOME}/.bash.alias ]; then . ${HOME}/.bash.alias; fi" >> .bashrc
RUN echo "export JAGPATH=${HOME}" >> .bashrc
RUN \
git clone https://github.com/theRemovers/jlinker.git && \
cd jlinker && \
make && \
ln -s /home/${USERNAME}/jlinker/jlinker.native /home/${USERNAME}/bin/aln
RUN \
git clone https://github.com/theRemovers/skunk_jcp && \
cd skunk_jcp/jcp && \
make && \
ln -s /home/${USERNAME}/skunk_jcp/jcp/jcp /home/${USERNAME}/bin/jcp
RUN \
git clone https://github.com/theRemovers/jconverter && \
ln -s /home/${USERNAME}/jconverter/converter.py /home/${USERNAME}/bin/converter
RUN \
git clone http://shamusworld.gotdns.org/git/rmac
COPY rmac-0001-Ignore-56k-only-keywords-in-non-56k-modes.patch rmac
RUN \
cd rmac && \
git apply rmac-0001-Ignore-56k-only-keywords-in-non-56k-modes.patch && \
make && \
ln -s /home/${USERNAME}/rmac/rmac /home/${USERNAME}/bin/mac
RUN \
git clone https://github.com/theRemovers/lz77 && \
cd lz77 && \
make && \
ln -s /home/${USERNAME}/lz77/lz77 /home/${USERNAME}/bin/lz77
RUN \
git clone https://github.com/theRemovers/3dsconv && \
cd 3dsconv && \
make && \
ln -s /home/${USERNAME}/3dsconv/3dsconv /home/${USERNAME}/bin/3dsconv
RUN \
mkdir -p lib
RUN \
git clone https://github.com/theRemovers/jlibc && \
git clone https://github.com/theRemovers/rmvlib
COPY setup.sh setup.sh
USER root
RUN chown ${USERNAME}:${GROUPNAME} setup.sh
USER ${USERNAME}
RUN echo "./setup.sh" >> .bashrc