Add missing lib.

Remove other packages that won't be used in docker.
Add more reporting when the server crashes. WIP.
This commit is contained in:
Daniel Ceregatti 2022-03-25 19:51:57 -07:00
parent 0e25ac2bcf
commit 3c91314b49
2 changed files with 14 additions and 10 deletions

View file

@ -9,19 +9,18 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
# Add contrib and backports # Add contrib and backports
RUN sed -i /etc/apt/sources.list -e 's/main/main contrib/' RUN sed -i /etc/apt/sources.list -e 's/main/main contrib/'
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list #RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list
# Add 32 bit arch for steam crap # Add 32 bit arch for steam crap
RUN dpkg --add-architecture i386 RUN dpkg --add-architecture i386
# Install necessary packages # Install necessary packages
RUN apt-get update && apt-get -y upgrade && apt-get -y install \ RUN apt-get update && apt-get -y upgrade && apt-get -y install \
tmux \
nano \ nano \
htop \
curl \ curl \
lib32gcc-s1 \ lib32gcc-s1 \
lib32stdc++6 \ lib32stdc++6 \
libcap2 \
locales \ locales \
psmisc \ psmisc \
wget \ wget \

View file

@ -6,11 +6,16 @@ ulimit -c 0
# This script will take environment variables and put them into the files the script expects. # This script will take environment variables and put them into the files the script expects.
echo "steamlogin=anonymous" > .steamlogin echo "steamlogin=anonymous" > .steamlogin
# Do something with SERVERNAME="DayZ on Linux for Linux" sed -i serverDZ.cfg -e "s/SERVERNAME/${SERVERNAME}/"
if ! grep SERVERNAME serverDZ.cfg
then
echo "Setting the SERVERNAME..."
sed -i serverDZ.cfg -e "s/SERVERNAME/${SERVERNAME}/"
fi
./dayzserver start || find /home/user -name error.log -exec cat {} \; ./dayzserver start || (
echo
echo "========================================== error.log =========================================="
find /home/user -name error.log -exec cat {} \; -exec rm -f {} \;
echo
echo "========================================== script*.log =========================================="
find /home/user -name "script*.log" -exec cat {} \; -exec rm -f {} \;
echo
echo "========================================== *.RPT =========================================="
find /home/user -name "*.RPT" -exec cat {} \; -exec rm -f {} \;
)