Skip to content

Commit 0ee5389

Browse files
committed
Fixes, consistency, box86/box64 support
1 parent 9d529f4 commit 0ee5389

File tree

9 files changed

+67
-25
lines changed

9 files changed

+67
-25
lines changed

base/debian/Dockerfile

Lines changed: 53 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,71 @@ ENV LD_LIBRARY_PATH="./:/opt/cubecoders/amp/:/AMP/"
1212
ARG DEBIAN_FRONTEND=noninteractive
1313
ARG TARGETARCH
1414

15-
# Update base packages and install dependencies, including temp fix if libssl1.1 needed
15+
# Update base packages and install dependencies
1616
RUN set -eux; \
1717
mkdir -p /usr/share/man/man1; \
1818
apt-get update; \
1919
apt-get install -y --no-install-recommends \
20-
ca-certificates software-properties-common curl wget tar unzip xz-utils bzip2 \
21-
coreutils procps net-tools iproute2 iputils-ping socat jq git git-lfs gnupg lsof tmux sqlite3 gdb \
20+
ca-certificates curl wget tar unzip xz-utils bzip2 \
21+
coreutils procps iproute2 iputils-ping socat jq git git-lfs gnupg tmux sqlite3 dbus \
2222
tini tzdata locales \
23+
libssl3 libcurl4 libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2-compat \
24+
# Required for Core Keeper
2325
xvfb xauth libxi6 \
24-
libc6 libc++-dev libcurl4 libatomic1 libpulse-dev liblua5.3-0 libfontconfig1 libgdiplus libsqlite3-0 libzstd1 libsdl2-2.0-0 libsdl1.2-compat; \
25-
if [ "$TARGETARCH" = "amd64" ]; then \
26-
dpkg --add-architecture i386; \
27-
apt-get update; \
28-
apt-get install -y --no-install-recommends \
29-
libc6:i386 libstdc++6:i386 libgcc-s1:i386 zlib1g:i386 libbz2-1.0:i386 libzstd1:i386 libcurl4:i386 libcurl3-gnutls:i386 libcurl4-gnutls-dev:i386 \
30-
libtinfo6:i386 libncurses6:i386 libncurses5:i386 libtinfo5:i386 libsdl2-2.0-0:i386 libsdl1.2-compat:i386 libssl-dev:i386; \
31-
fi; \
26+
# Required for Valheim crossplay (and variously some others)
27+
libc6 libatomic1 libpulse-dev \
28+
# Required for BeamMP
29+
liblua5.3-0 \
30+
# Required for Eco
31+
libgdiplus \
32+
# Required for Pavlov VR (and variously some others)
33+
gdb libc++-dev; \
3234
case "$TARGETARCH" in \
33-
amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb ;; \
34-
arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb ;; \
35+
amd64) \
36+
dpkg --add-architecture i386; \
37+
apt-get update; \
38+
apt-get install -y --no-install-recommends \
39+
# Required for steamcmd
40+
libgcc-s1:i386 \
41+
# Others
42+
libstdc++6:i386 zlib1g:i386 libbz2-1.0:i386 libcurl4:i386 libcurl3-gnutls:i386 libcurl4-gnutls-dev:i386 \
43+
libncurses6:i386 libncurses5:i386 libtinfo6:i386 libtinfo5:i386 libsdl2-2.0-0:i386 libssl-dev:i386; \
44+
;; \
45+
arm64) \
46+
dpkg --add-architecture armhf; \
47+
apt-get update; \
48+
apt-get install -y --no-install-recommends \
49+
# Required for steamcmd
50+
libgcc-s1:armhf \
51+
# Others
52+
libstdc++6:armhf zlib1g:armhf libbz2-1.0:armhf libcurl4:armhf libcurl3-gnutls:armhf libcurl4-gnutls-dev:armhf \
53+
libncurses6:armhf libncurses5:armhf libtinfo6:armhf libtinfo5:armhf libsdl2-2.0-0:armhf libssl-dev:armhf; \
54+
# Add box86/box64
55+
install -d -m 0755 /etc/apt/keyrings; \
56+
wget -qO- "https://pi-apps-coders.github.io/box86-debs/KEY.gpg" | gpg --dearmor -o /etc/apt/keyrings/box86-archive-keyring.gpg; \
57+
printf "Types: deb\nURIs: https://Pi-Apps-Coders.github.io/box86-debs/debian\nSuites: ./\nSigned-By: /etc/apt/keyrings/box86-archive-keyring.gpg" | tee /etc/apt/sources.list.d/box86.sources >/dev/null; \
58+
wget -qO- "https://pi-apps-coders.github.io/box64-debs/KEY.gpg" | gpg --dearmor -o /etc/apt/keyrings/box64-archive-keyring.gpg; \
59+
printf "Types: deb\nURIs: https://Pi-Apps-Coders.github.io/box64-debs/debian\nSuites: ./\nSigned-By: /etc/apt/keyrings/box64-archive-keyring.gpg" | tee /etc/apt/sources.list.d/box64.sources >/dev/null; \
60+
apt-get update; \
61+
apt-get install -y \
62+
box86-generic-arm:armhf box64-generic-arm; \
63+
;; \
64+
esac; \
65+
# Temp fix if libssl1.1 needed
66+
case "$TARGETARCH" in \
67+
amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb;; \
68+
arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb;; \
3569
esac; \
3670
apt-get install -y --no-install-recommends ./libssl1.1.deb; \
3771
rm libssl1.1.deb; \
72+
# Install AMP instance manager
3873
case "$TARGETARCH" in \
39-
amd64) wget -q https://cdn-repo.c7rs.com/ampinstmgr-latest.tgz ;; \
40-
arm64) wget -q https://cdn-repo.c7rs.com/aarch64/ampinstmgr-latest.tgz ;; \
74+
amd64) wget -q https://cdn-repo.c7rs.com/ampinstmgr-latest.tgz;; \
75+
arm64) wget -q https://cdn-repo.c7rs.com/aarch64/ampinstmgr-latest.tgz;; \
4176
esac; \
4277
tar -xzf ampinstmgr-latest.tgz -C /; \
4378
rm ampinstmgr-latest.tgz; \
79+
# Set up locales
4480
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen; \
4581
locale-gen; \
4682
apt-get clean; \
@@ -52,5 +88,5 @@ ENV LC_ALL=en_US.UTF-8
5288

5389
COPY ./scripts/ampstart.sh /ampstart.sh
5490
RUN chmod +x /ampstart.sh
55-
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
56-
CMD ["/ampstart.sh"]
91+
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/ampstart.sh"]
92+
CMD []

java/lts/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends fontconfig fonts-dejavu-core; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null; \
16-
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list; \
15+
wget -qO- https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor -o /etc/apt/keyrings/adoptium.gpg; \
16+
echo "deb [signed-by=/etc/apt/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list >/dev/null; \
1717
apt-get update; \
1818
apt-get install -y temurin-8-jdk temurin-11-jdk temurin-17-jdk temurin-21-jdk; \
1919
apt-get clean; \

mono/latest/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN set -eux; \
1313
apt-get install -y --no-install-recommends dirmngr; \
1414
install -d -m 0755 /etc/apt/keyrings; \
1515
gpg --homedir /tmp --no-default-keyring --keyring /etc/apt/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF; \
16-
echo "deb [signed-by=/etc/apt/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list; \
16+
echo "deb [signed-by=/etc/apt/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list >/dev/null; \
1717
apt-get update; \
1818
apt-get install -y mono-complete; \
1919
apt-get clean; \

scripts/ampstart.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ if [ -z "${AMPUSERID}" ]; then
99
exit 100
1010
fi
1111

12+
# Create /etc/machine-id (addresses Proton/dbus issues)
13+
mkdir -p /var/lib/dbus
14+
rm -f /etc/machine-id /var/lib/dbus/machine-id
15+
dbus-uuidgen --ensure=/etc/machine-id
16+
ln -s /etc/machine-id /var/lib/dbus/machine-id
17+
1218
#Check if the AMP user already exists
1319
getent passwd amp &> /dev/null
1420

wine/10-stable/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends cabextract winbind wine-binfmt python3; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
15+
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
1616
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources; \
1717
apt-get update; \
1818
apt-get install -y --install-recommends \

wine/9-stable/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends cabextract winbind wine-binfmt python3; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
15+
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
1616
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources; \
1717
apt-get update; \
1818
apt-get install -y --install-recommends \

wine/devel/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends cabextract winbind wine-binfmt python3; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
15+
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
1616
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources; \
1717
apt-get update; \
1818
apt-get install -y --install-recommends winehq-devel; \

wine/stable/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends cabextract winbind wine-binfmt python3; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
15+
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
1616
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources; \
1717
apt-get update; \
1818
apt-get install -y --install-recommends winehq-stable; \

wine/staging/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -eux; \
1212
apt-get update; \
1313
apt-get install -y --no-install-recommends cabextract winbind wine-binfmt python3; \
1414
install -d -m 0755 /etc/apt/keyrings; \
15-
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
15+
wget -qO- https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -; \
1616
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources; \
1717
apt-get update; \
1818
apt-get install -y --install-recommends winehq-staging; \

0 commit comments

Comments
 (0)