File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,4 +25,9 @@ OPENSPY_SM_BIND_PORT=30734
2525OPENSPY_CDKEY_BIND_ADDR=0.0.0.0
2626OPENSPY_CDKEY_BIND_PORT=30694
2727OPENSPY_PEERCHAT_BIND_ADDR=0.0.0.0
28- OPENSPY_PEERCHAT_BIND_PORT=30838
28+ OPENSPY_PEERCHAT_BIND_PORT=30838
29+ OPENSPY_UTMASTER_BIND_ADDR=0.0.0.0
30+ OPENSPY_UTMASTER_BIND_PORT=30839
31+ OPENSPY_UTMASTER_MAPPINGS_PATH=utmaster.xml
32+ UTMASTER_MOTD_DATA=VGhpcyBpcyB0aGUgdXRtYXN0ZXIgZGVmYXVsdCBkb2NrZXIgbW90ZA==
33+ UTMASTER_MOTD_COMMUNITY_DATA=VGhpcyBpcyB0aGUgdXRtYXN0ZXIgZGVmYXVsdCBkb2NrZXIgY29tbXVuaXR5IG1vdGQ=
Original file line number Diff line number Diff line change 11FROM ubuntu:24.04 AS build
2- ENV DEBIAN_FRONTEND noninteractive
2+ ENV DEBIAN_FRONTEND= noninteractive
33RUN apt-get update
44RUN apt-get install -y build-essential cmake git curl unzip zip pkg-config
55
66RUN git clone https://github.com/microsoft/vcpkg.git
7- ENV VCPKG_ROOT /vcpkg
8- ENV PATH "$PATH:$VCPKG_ROOT"
7+ ENV VCPKG_ROOT= /vcpkg
8+ ENV PATH= "$PATH:$VCPKG_ROOT"
99WORKDIR /vcpkg
1010RUN ./bootstrap-vcpkg.sh
11- ENV VCPKG_TC_PATH "$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
11+ ENV VCPKG_TC_PATH= "$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
1212
1313
1414RUN mkdir /root/fs-out
@@ -41,19 +41,20 @@ COPY cmake /root/cmake
4141COPY code /root/code
4242RUN mkdir /root/os-bin /root/os-make
4343WORKDIR /root/os-make
44- run ../build.sh
45- run make
44+ RUN ../build.sh
45+ RUN make
4646RUN mkdir -p /root/fs-out/opt/openspy/bin /root/fs-out/opt/openspy/lib
4747RUN mv /root/os-make/bin/* /root/fs-out/opt/openspy/bin
4848RUN mv /root/os-make/lib/* /root/fs-out/opt/openspy/lib
4949COPY docker-support/run.sh /root/fs-out/opt/openspy/run.sh
50+ COPY docker-support/utmaster.xml /root/fs-out/opt/openspy/
5051RUN chmod a+x /root/fs-out/opt/openspy/run.sh
5152
5253WORKDIR /root/fs-out
5354RUN tar -cvzf /fs-out.tar.gz *
5455
5556FROM ubuntu:24.04
56- ENV DEBIAN_FRONTEND noninteractive
57+ ENV DEBIAN_FRONTEND= noninteractive
5758RUN apt-get update && apt-get -y dist-upgrade
5859COPY --from=build /fs-out.tar.gz /root/fs.tar.gz
5960RUN tar -xvzf /root/fs.tar.gz -C /
Original file line number Diff line number Diff line change @@ -57,4 +57,11 @@ services:
5757 RUN_FILE : peerchat
5858 env_file : .env-local
5959 image : chcniz/openspy-core
60+ utmaster :
61+ ports :
62+ - " 28902:30839"
63+ environment :
64+ RUN_FILE : utmaster
65+ env_file : .env-local
66+ image : chcniz/openspy-core
6067
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,5 +18,12 @@ if [[ -n $SSL_KEY_DATA ]]; then
1818 export OPENSPY_SSL_KEY=ssl_key.pem
1919fi
2020
21+ if [[ -n $UTMASTER_MOTD_DATA ]]; then
22+ echo $UTMASTER_MOTD_DATA | base64 -d > motd.txt
23+ fi
24+
25+ if [[ -n $UTMASTER_MOTD_COMMUNITY_DATA ]]; then
26+ echo $UTMASTER_MOTD_COMMUNITY_DATA | base64 -d > motd_community.txt
27+ fi
2128
2229eval bash -c $FILE_TO_RUN
You can’t perform that action at this time.
0 commit comments