Skip to content

Commit

Permalink
feat: added sdl2-jstest
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Aug 15, 2024
1 parent f6d0f4a commit 015b054
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion images/base-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
ARG BASE_IMAGE
#################################
FROM ${BASE_IMAGE} as sdl-jstest-builder

Check warning on line 3 in images/base-app/Dockerfile

View workflow job for this annotation

GitHub Actions / base-app / docker

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 3 in images/base-app/Dockerfile

View workflow job for this annotation

GitHub Actions / base-app / docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /

# hadolint ignore=DL3006
RUN <<_BUILD_SDL_JSTEST
set -e

apt-get update -y
apt install -y --no-install-recommends \
build-essential \
cmake \
libsdl2-dev \
libncurses5-dev \
git

git clone https://github.com/games-on-whales/sdl-jstest
cd sdl-jstest
git submodule init
git submodule update
mkdir build
cd build
cmake .. -DBUILD_SDL_JSTEST=OFF -DBUILD_SDL2_JSTEST=ON
make

_BUILD_SDL_JSTEST

#################################
FROM ${BASE_IMAGE}

Check warning on line 32 in images/base-app/Dockerfile

View workflow job for this annotation

GitHub Actions / base-app / docker

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

ARG GAMESCOPE_VERSION="3.14.2"
Expand Down Expand Up @@ -110,5 +138,10 @@ COPY --chmod=777 scripts/launch-comp.sh /opt/gow/launch-comp.sh
COPY --chmod=777 scripts/startup.sh /opt/gow/startup.sh
COPY --chmod=777 scripts/wait-x11 /opt/gow/wait-x11

RUN apt-get update -y && \
apt-get install -y --no-install-recommends libsdl2-2.0-0 libncurses6 && \
rm -rf /var/lib/apt/lists/*
COPY --from=sdl-jstest-builder /sdl-jstest/build/sdl2-jstest /usr/local/bin/sdl2-jstest

# Configure the default directory to be the 'retro' users home directory
WORKDIR ${HOME}

0 comments on commit 015b054

Please sign in to comment.