-
Notifications
You must be signed in to change notification settings - Fork 2
/
linux.Dockerfile
64 lines (43 loc) · 2.29 KB
/
linux.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
# escape=`
FROM lacledeslan/steamcmd as DOWNLOADER
ARG contentServer=content.lacledeslan.net
RUN echo 'Downloading LL custom content' &&`
mkdir --parents /tmp/out/ &&`
wget -rkp -nH --no-verbose --cut-dirs=2 -R "index.*,*.md" -e robots=off "http://"$contentServer"/fastDownloads/goldsrc-hldm/" -P "/tmp/out/" &&`
echo 'deleting any web assets that were downloaded' &&`
[ -f /tmp/out/lacledeslan.ico ] && rm /tmp/out/lacledeslan.ico &&`
[ -d /tmp/out/logos ] && rm -rf /tmp/out/logos &&`
echo 'decompressing any .bz2 files' &&`
find /tmp/out/ -name "*.bz2" -exec sh -c 'bzip2 -d "$1"' _ {} \;
FROM lacledeslan/gamesvr-goldsource
HEALTHCHECK NONE
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
LABEL com.lacledeslan.build-node=$BUILDNODE `
org.label-schema.schema-version="1.0" `
org.label-schema.url="https://github.com/LacledesLAN/README.1ST" `
org.label-schema.vcs-ref=$SOURCE_COMMIT `
org.label-schema.vendor="Laclede's LAN" `
org.label-schema.description="LL Half-Life Deathmatch Dedicated Freeplay Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-goldsource-hldm"
COPY --chown=GoldSource:root ./amxmodx/metamod/metamod.so /app/valve/addons/metamod/dlls/metamod.so
COPY --chown=GoldSource:root ./amxmodx/amxmodx_base /app/valve/addons/amxmodx
COPY --chown=GoldSource:root ./amxmodx/amxmodx_ll-config /app/valve/addons/amxmodx
RUN echo "precache.amxx" >> /app/valve/addons/amxmodx/configs/plugins.ini
COPY --chown=GoldSource:root ./dist/default.pre /app/valve/addons/amxmodx/configs/precache/default.pre
COPY --chown=GoldSource:root ./dist /app
COPY --chown=GoldSource:root ./dist/linux /app
COPY --chown=GoldSource:root --from=DOWNLOADER /tmp/out/ /app/valve/
# UPDATE USERNAME & ensure permissions
RUN usermod -l HLDM GoldSource &&`
chmod +x /app/ll-tests/*.sh &&`
mkdir -p /app/valve/logs &&`
chmod 775 /app/valve/logs;
# We use appid '90' to download the dedicated server, but the half-life dm client is appid '70'.
# So we need to create a file with the correct appid, so that it matches the client, otherwise
# we get a "Steam validation rejected" error when trying to connect to the server.
RUN echo 70 > /app/steam_appid.txt;
USER HLDM
WORKDIR /app
CMD ["/bin/bash"]
ONBUILD USER root