diff options
| author | Michał Janiszewski <[email protected]> | 2023-05-08 16:38:57 +0200 |
|---|---|---|
| committer | Michał Janiszewski <[email protected]> | 2023-05-08 16:42:30 +0200 |
| commit | 9e433f9585e4b99f14a79114dda50b794b875bbb (patch) | |
| tree | 63a56e93ded69d240ac059a87b9b552a11926943 | |
| parent | afd95d4c72142f1039855b1dd8807490495b6c30 (diff) | |
| download | openrct2-docker-9e433f9585e4b99f14a79114dda50b794b875bbb.tar.gz openrct2-docker-9e433f9585e4b99f14a79114dda50b794b875bbb.zip | |
Add v0.4.5
| -rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
| -rw-r--r-- | 0.4.5/cli/Dockerfile | 44 |
2 files changed, 46 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c051171..f1ff025 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,11 @@ jobs: fail-fast: false matrix: # List of tags to build and upload, remember to update this - tag: [0.4.4] + tag: [0.4.5] env: dockertag: ${{ matrix.tag }} dockerimg: openrct2/openrct2-cli - dockerlst: 0.4.4 + dockerlst: 0.4.5 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/0.4.5/cli/Dockerfile b/0.4.5/cli/Dockerfile new file mode 100644 index 0000000..2b85c31 --- /dev/null +++ b/0.4.5/cli/Dockerfile @@ -0,0 +1,44 @@ +# Build OpenRCT2 +FROM ubuntu:20.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-10 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-10 /usr/bin/clang \ + && ln -s /usr/bin/clang++-10 /usr/bin/clang++ + +ENV OPENRCT2_REF v0.4.5 +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:20.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 libzip5 libcurl4 libfreetype6 libfontconfig1 libicu66 \ + && 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"] |
