forked from zuluhotelaustralia/zha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux + misc fixes (zuluhotelaustralia#3)
* Add fixes? maybe * Case renaming, remove weird logon limit, fix ports in docker, use ecompile.cfg in setup folder
- Loading branch information
Showing
13 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
FROM debian:stable-slim | ||
FROM ubuntu:eoan | ||
|
||
ARG LIBMYSQL_DPKG=https://repo.mysql.com/apt/debian/pool/mysql-5.7/m/mysql-community/libmysqlclient20_5.7.29-1debian10_amd64.deb | ||
ARG POL_RELEASE=https://github.com/polserver/polserver/releases/download/NightlyRelease/Nightly-Linux-gcc.zip | ||
ARG LIBMYSQL_DEB=https://repo.mysql.com/apt/debian/pool/mysql-5.7/m/mysql-community/libmysqlclient20_5.7.29-1debian10_amd64.deb | ||
ARG POL_RELEASE=https://github.com/polserver/polserver/releases/download/NightlyRelease/Nightly-Linux-clang.zip | ||
ARG POL_TEMP_DIR=/tmp/poltmp/ | ||
ARG POL_DEST=/polserver | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y -q --no-install-recommends \ | ||
ca-certificates wget unzip rsync procps \ | ||
libatomic1 | ||
|
||
RUN cd /tmp && \ | ||
wget $POL_RELEASE -O pol.zip \ | ||
RUN mkdir -p $POL_TEMP_DIR \ | ||
&& cd $POL_TEMP_DIR \ | ||
&& wget $POL_RELEASE -O pol.zip \ | ||
&& unzip pol.zip \ | ||
&& rm *dbg.zip \ | ||
&& unzip polserver*.zip \ | ||
&& rm -rf *.zip \ | ||
&& mkdir -p /polserver/ \ | ||
&& mv ./**/* /polserver/ \ | ||
&& wget $LIBMYSQL_DPKG -O /tmp/libmysqlclient20.dpkg \ | ||
&& dpkg --extract /tmp/libmysqlclient20.dpkg /tmp/libmysqlclient20 \ | ||
&& mkdir -p $POL_DEST \ | ||
&& mv ./**/* $POL_DEST \ | ||
&& rm -rf $POL_TEMP_DIR \ | ||
&& wget $LIBMYSQL_DEB -O /tmp/libmysqlclient20.deb \ | ||
&& dpkg --extract /tmp/libmysqlclient20.deb /tmp/libmysqlclient20 \ | ||
&& cp /tmp/libmysqlclient20/usr/lib/x86_64-linux-gnu/libmysqlclient.so.20 /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20 \ | ||
&& rm -rf /tmp/* | ||
|
||
COPY . /app/ | ||
WORKDIR /app/ | ||
|
||
|
||
RUN rsync -av /polserver/ . \ | ||
&& cp -f setup/config/servers.cfg config/servers.cfg \ | ||
&& cp -f setup/pol.cfg pol.cfg \ | ||
&& rm -rf /polserver \ | ||
&& cp setup/ecompile.cfg scripts/ecompile.cfg \ | ||
&& scripts/ecompile -C ./scripts/ecompile.cfg | ||
RUN rsync -av $POL_DEST . \ | ||
&& cd setup \ | ||
&& cp -f ./config/servers.cfg ../config/servers.cfg \ | ||
&& cp -f ./pol.cfg ../pol.cfg \ | ||
&& cp -f $POL_DEST/scripts/ecompile ./ecompile \ | ||
&& ./ecompile -C ecompile.cfg | ||
|
||
|
||
CMD ["./run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ ! -d ../shard ]; then | ||
echo "Missing shard storage in parent directory" | ||
exit 1 | ||
fi | ||
|
||
ln -s -f ../shard/realm . | ||
ln -s -f ../shard/data . | ||
|
||
if [ ! -d ./realm/britannia ]; then | ||
echo "Generating realm files as they do not exist" | ||
|
||
|
||
ln -s -f "$(pwd)/../shard/client" setup/uo-client | ||
|
||
pushd setup; ./generate_data_files.sh; popd | ||
|
||
echo "Storing realm cfg in custom config directory" | ||
cp -f config/multis.cfg /shard/config/ | ||
cp -f config/tiles.cfg /shard/config/ | ||
cp -f config/landtiles.cfg /shard/config/ | ||
cp -f config/multis.cfg ../shard/config/ | ||
cp -f config/tiles.cfg ../shard/config/ | ||
cp -f config/landtiles.cfg ../shard/config/ | ||
fi | ||
|
||
if [ -n "${SERVER_EXTERNAL_IP}" ]; then | ||
sed -i "s/--ip--/$SERVER_EXTERNAL_IP/g" /app/config/servers.cfg | ||
sed -i "s/--ip--/$SERVER_EXTERNAL_IP/g" ./config/servers.cfg | ||
echo "Server IP set to $SERVER_EXTERNAL_IP" | ||
fi | ||
|
||
if [ -d /shard/config ]; then | ||
if [ -d ../shard/config ]; then | ||
echo "Copying custom configs" | ||
cp -f /shard/config/* /app/config/ | ||
cp -f ../shard/config/*.cfg ./config/ | ||
fi | ||
|
||
cd /app && ./pol | ||
./pol |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,6 @@ | |
GameServer | ||
{ | ||
Name ZH Australia | ||
IP 139.180.168.57 | ||
IP --ip-- | ||
Port 5333 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters