Skip to content

Commit

Permalink
Merge tag 'v0.4.15' of github.com:OpenRCT2/openrct2-docker
Browse files Browse the repository at this point in the history
Add v0.4.15
  • Loading branch information
janisozaur committed Oct 18, 2024
2 parents b320f59 + ec68040 commit b0126cc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
fail-fast: false
matrix:
# List of tags to build and upload, remember to update this
tag: [0.4.14]
tag: [0.4.15]
env:
dockertag: ${{ matrix.tag }}
dockerimg: openrct2/openrct2-cli
dockerlst: 0.4.14
dockerlst: 0.4.15
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
44 changes: 44 additions & 0 deletions 0.4.15/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Build OpenRCT2
FROM ubuntu:22.04 AS build-env
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y git cmake pkg-config ninja-build clang-14 nlohmann-json3-dev libcurl4-openssl-dev libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libzip-dev libssl-dev libicu-dev libflac-dev libvorbis-dev \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/clang-14 /usr/bin/clang \
&& ln -s /usr/bin/clang++-14 /usr/bin/clang++

ARG OPENRCT2_REF=v0.4.15
WORKDIR /openrct2
RUN git -c http.sslVerify=false clone --depth 1 -b $OPENRCT2_REF https://github.com/OpenRCT2/OpenRCT2 . \
&& mkdir build \
&& cd build \
&& cmake .. -G Ninja -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/openrct2-install/usr -DDISABLE_GUI=ON \
&& ninja -k0 install \
&& rm /openrct2-install/usr/lib/libopenrct2.a \
# HACK due to issue in cmakelists, move content from cli
&& mv /openrct2-install/usr/share/openrct2-cli/* /openrct2-install/usr/share/openrct2 \
&& rm -rf /openrct2-install/usr/share/openrct2-cli

# Build runtime image
FROM ubuntu:22.04
# Install OpenRCT2
COPY --from=build-env /openrct2-install /openrct2-install
RUN apt-get update \
&& apt-get install --no-install-recommends -y rsync ca-certificates libpng16-16 libzip4 libcurl4 libfreetype6 libfontconfig1 libicu70 \
&& rm -rf /var/lib/apt/lists/* \
&& rsync -a /openrct2-install/* / \
&& rm -rf /openrct2-install \
&& openrct2-cli --version

# Set up ordinary user
RUN useradd -m openrct2
USER openrct2
WORKDIR /home/openrct2
EXPOSE 11753

# Test run and scan
RUN openrct2-cli --version \
&& openrct2-cli scan-objects

# Done
ENTRYPOINT ["openrct2-cli"]

0 comments on commit b0126cc

Please sign in to comment.