mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* c++ monstermos
fuck
Fixes the server hemorrhaging memory due to extools not decrementing ref counts
Increases defauilt tank pressure
make space cold or some shit
floor tile rips
Fixes code assuming that the heat capacity is nonzero
🤦
Fixes crash
fixes some bugs
fuck *facepalm*
the fastening
removes Del() in favor of an internal c++ hook
Fixes vent-pump math
* Fix the invisible gases bug
* Linux support
* fix the deploy.sh
* Uses newer BYOND 513 because older one is probably missing an important pattern (it segfaulted on pattern search)
* Updates windows dll to match linux version and cleans up unused BYOND code
91 lines
2.2 KiB
Docker
91 lines
2.2 KiB
Docker
FROM tgstation/byond:513.1519 as base
|
|
|
|
FROM base as build_base
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
git \
|
|
ca-certificates
|
|
|
|
FROM build_base as rust_g
|
|
|
|
WORKDIR /rust_g
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
libssl-dev \
|
|
pkg-config \
|
|
curl \
|
|
gcc-multilib \
|
|
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-host i686-unknown-linux-gnu \
|
|
&& git init \
|
|
&& git remote add origin https://github.com/tgstation/rust-g
|
|
|
|
COPY dependencies.sh .
|
|
|
|
RUN /bin/bash -c "source dependencies.sh \
|
|
&& git fetch --depth 1 origin \$RUST_G_VERSION" \
|
|
&& git checkout FETCH_HEAD \
|
|
&& ~/.cargo/bin/cargo build --release
|
|
|
|
FROM build_base as bsql
|
|
|
|
WORKDIR /bsql
|
|
|
|
RUN apt-get install -y --no-install-recommends software-properties-common \
|
|
&& add-apt-repository ppa:ubuntu-toolchain-r/test \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
cmake \
|
|
make \
|
|
g++-7 \
|
|
libmariadb-client-lgpl-dev \
|
|
&& git init \
|
|
&& git remote add origin https://github.com/tgstation/BSQL
|
|
|
|
COPY dependencies.sh .
|
|
|
|
RUN /bin/bash -c "source dependencies.sh \
|
|
&& git fetch --depth 1 origin \$BSQL_VERSION" \
|
|
&& git checkout FETCH_HEAD
|
|
|
|
WORKDIR /bsql/artifacts
|
|
|
|
ENV CC=gcc-7 CXX=g++-7
|
|
|
|
RUN ln -s /usr/include/mariadb /usr/include/mysql \
|
|
&& ln -s /usr/lib/i386-linux-gnu /root/MariaDB \
|
|
&& cmake .. \
|
|
&& make
|
|
|
|
FROM base as dm_base
|
|
|
|
WORKDIR /tgstation
|
|
|
|
FROM dm_base as build
|
|
|
|
COPY . .
|
|
|
|
RUN DreamMaker -max_errors 0 yogstation.dme && tools/deploy.sh /deploy
|
|
|
|
FROM dm_base
|
|
|
|
EXPOSE 1337
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
mariadb-client \
|
|
libssl1.0.0 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /root/.byond/bin
|
|
|
|
COPY --from=rust_g /rust_g/target/release/librust_g.so /root/.byond/bin/rust_g
|
|
COPY --from=bsql /bsql/artifacts/src/BSQL/libBSQL.so ./
|
|
COPY --from=build /deploy ./
|
|
|
|
#bsql fexists memes
|
|
RUN ln -s /tgstation/libBSQL.so /root/.byond/bin/libBSQL.so
|
|
|
|
VOLUME [ "/tgstation/config", "/tgstation/data" ]
|
|
|
|
ENTRYPOINT [ "DreamDaemon", "yogstation.dmb", "-port", "1337", "-trusted", "-close", "-verbose" ]
|