From fd233dd0004894b9a209bbf3fdbc24537b5acadd Mon Sep 17 00:00:00 2001 From: Devin Lauderdale Date: Mon, 26 Feb 2024 17:34:31 -0600 Subject: [PATCH 1/2] add dockerfile for --- meat-runner-22.04/dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meat-runner-22.04/dockerfile diff --git a/meat-runner-22.04/dockerfile b/meat-runner-22.04/dockerfile new file mode 100644 index 0000000..7395e50 --- /dev/null +++ b/meat-runner-22.04/dockerfile @@ -0,0 +1,33 @@ +FROM ghcr.io/actions/actions-runner:2.313.0 +LABEL org.opencontainers.image.source=https://github.com/synapsestudios/synops + +SHELL ["/bin/bash", "--login", "-c"] +WORKDIR /home/runner +USER root +# apt-fast prerequisites +RUN apt-get update && apt-get install -y software-properties-common; rm -rf /var/lib/apt/lists/* +# Install apt-fast +RUN add-apt-repository ppa:apt-fast/stable +RUN apt-get update && apt-get install -y apt-fast +RUN echo "alias apt-get='apt-fast --no-install-recommends'" >> /root/.bashrc +RUN source /root/.bashrc + +RUN apt-get install -y curl +RUN apt-get install -y unzip +RUN apt-get install -y openjdk-17-jdk +RUN apt-get install -y gradle +RUN apt-get install -y npm + +ARG NVM_VERSION=0.39.7 +ARG NODE_VERSIONS="18 20 21" +# Switch back to runner user to install nvm +USER runner +SHELL ["/bin/bash", "--login", "-i", "-o", "pipefail", "-c"] +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash +RUN source $HOME/.bashrc +# Install Node LTS +RUN nvm install --lts +RUN for version in $NODE_VERSIONS; do nvm install $version; done +RUN nvm use --lts +SHELL ["/bin/bash", "--login", "-c"] +CMD ["/home/runner/run.sh"] \ No newline at end of file From 9facb9ed61a10831e6f128a392fcff33f6edb4bb Mon Sep 17 00:00:00 2001 From: Devin Lauderdale Date: Mon, 26 Feb 2024 17:35:07 -0600 Subject: [PATCH 2/2] fix repo name in label --- meat-runner-22.04/dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meat-runner-22.04/dockerfile b/meat-runner-22.04/dockerfile index 7395e50..7238f0c 100644 --- a/meat-runner-22.04/dockerfile +++ b/meat-runner-22.04/dockerfile @@ -1,5 +1,5 @@ FROM ghcr.io/actions/actions-runner:2.313.0 -LABEL org.opencontainers.image.source=https://github.com/synapsestudios/synops +LABEL org.opencontainers.image.source=https://github.com/synapsestudios/meat-runner SHELL ["/bin/bash", "--login", "-c"] WORKDIR /home/runner