Add variants and EA image
This commit is contained in:
54
04rel64-java/Dockerfile
Normal file
54
04rel64-java/Dockerfile
Normal file
@@ -0,0 +1,54 @@
|
||||
FROM debian:stable
|
||||
|
||||
MAINTAINER Thijn <thijn@viceunderdogs.com>
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update && apt-get install -y \
|
||||
wget \
|
||||
unzip \
|
||||
p7zip \
|
||||
libstdc++6 \
|
||||
gcc \
|
||||
g++ \
|
||||
build-essential \
|
||||
libcurl4 \
|
||||
&& adduser --disabled-password --home /home/container container
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
RUN cd /tmp && \
|
||||
wget 'http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb11u5_amd64.deb' && \
|
||||
dpkg -i libssl1.1_1.1.1n-0+deb11u5_amd64.deb && rm libssl1.1_1.1.1n-0+deb11u5_amd64.deb
|
||||
|
||||
#RUN apt-get install -y screen gdb
|
||||
#RUN cd /tmp && wget 'http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb' && \
|
||||
#dpkg -i libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb && rm libssl1.0.0_1.0.1t-1+deb8u12_amd64.deb
|
||||
|
||||
RUN mkdir -p /usr/lib/jvm/jdk-15 && cd /usr/lib/jvm/jdk-15 && \
|
||||
wget 'https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz' && \
|
||||
tar -xzv --strip-components=1 -f openjdk-15.0.2_linux-x64_bin.tar.gz
|
||||
|
||||
RUN mkdir -p /usr/lib/jvm/jdk-18 && cd /usr/lib/jvm/jdk-18 && \
|
||||
wget 'https://download.java.net/java/GA/jdk18.0.2/f6ad4b4450fd4d298113270ec84f30ee/9/GPL/openjdk-18.0.2_linux-x64_bin.tar.gz' && \
|
||||
tar -xzv --strip-components=1 -f openjdk-18.0.2_linux-x64_bin.tar.gz
|
||||
|
||||
RUN mkdir -p /usr/lib/jvm/jdk-8 && cd /usr/lib/jvm/jdk-8 && \
|
||||
wget 'https://builds.openlogic.com/downloadJDK/openlogic-openjdk-jre/8u412-b08/openlogic-openjdk-jre-8u412-b08-linux-x64.tar.gz' && \
|
||||
tar -xzv --strip-components=1 -f openlogic-openjdk-jre-8u412-b08-linux-x64.tar.gz
|
||||
|
||||
|
||||
USER container
|
||||
ENV USER container
|
||||
ENV HOME /home/container
|
||||
ENV VCMP_VERSION v30
|
||||
ENV VCMP_PLUGIN_PATCH patch2
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
COPY ./query /bin/vcmp-query
|
||||
healthcheck --interval=1m --timeout=3s \
|
||||
cmd /bin/vcmp-query "127.0.0.1:${SERVER_PORT}"
|
||||
|
||||
CMD ["/bin/bash", "/start.sh"]
|
2
04rel64-java/build.sh
Executable file
2
04rel64-java/build.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build -t vcmp_04rel64:java .
|
3
04rel64-java/publish.sh
Executable file
3
04rel64-java/publish.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
docker tag vcmp_04rel64:java docker.panel2.viceunderdogs.com/vcmp-04rel64:java
|
||||
docker push docker.panel2.viceunderdogs.com/vcmp-04rel64:java
|
BIN
04rel64-java/query
Executable file
BIN
04rel64-java/query
Executable file
Binary file not shown.
42
04rel64-java/start.sh
Normal file
42
04rel64-java/start.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
CHK_FILE="/home/container/mpsvrrel64"
|
||||
if [ -f $CHK_FILE ]; then
|
||||
echo "VC:MP executable exists, not downloading. To update, delete mpsvrrel64."
|
||||
else
|
||||
wget -q http://v04.thijn.ovh/server/VCMP04_server_${VCMP_VERSION}_linux64.zip
|
||||
unzip VCMP04_server_${VCMP_VERSION}_linux64.zip
|
||||
rm -f VCMP04_server_${VCMP_VERSION}_linux64.zip
|
||||
echo "Downloaded VC:MP Server version ${VCMP_VERSION}"
|
||||
|
||||
mkdir plugins
|
||||
cd plugins/
|
||||
wget -q http://v04.thijn.ovh/allplugins_04rel006_${VCMP_PLUGIN_PATCH}.7z
|
||||
p7zip -d allplugins_04rel006_${VCMP_PLUGIN_PATCH}.7z
|
||||
chmod 700 *
|
||||
rm -f allplugins_04rel006_${VCMP_PLUGIN_PATCH}.7z
|
||||
rm -f *rel32.*
|
||||
rm -f *.dll
|
||||
|
||||
cd /home/container
|
||||
chmod +x mpsvrrel64
|
||||
find
|
||||
fi
|
||||
|
||||
if [ -f "/home/container/server.cfg" ]; then
|
||||
echo "server.cfg exists, not generating file."
|
||||
else
|
||||
echo "
|
||||
gamemode Default mode
|
||||
plugins squirrel04rel64 sqlite04rel64 hashing04rel64 sockets04rel64
|
||||
port ${SERVER_PORT}
|
||||
sqgamemode main.nut
|
||||
maxplayers ${MAX_SLOTS}
|
||||
" > server.cfg
|
||||
fi
|
||||
|
||||
cd /home/container/
|
||||
MODIFIED_STARTUP=`echo ${STARTUP} | perl -pe 's@\{\{(.*?)\}\}@$ENV{$1}@g'`
|
||||
echo "Startup: ${MODIFIED_STARTUP}"
|
||||
eval ${MODIFIED_STARTUP}
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user