Giter Club home page Giter Club logo

Comments (2)

jbielick avatar jbielick commented on August 20, 2024 1

Here's the Dockerfile for that image:

ARG UBUNTU_VERSION=20.04
FROM ubuntu:${UBUNTU_VERSION}

ENV DOCKER_BUILDKIT=1
ENV DOCKER_CLI_EXPERIMENTAL=enabled
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -yqq update \
  && apt-get install -yqq --no-install-recommends \
  apt-transport-https \
  ca-certificates \
  curl \
  dumb-init \
  git \
  gnupg-agent \
  iputils-ping \
  jq \
  software-properties-common \
  wget \
  && apt-get clean \
  && rm -rf /var/cache/apt/lists/*

ARG DOCKER_COMPOSE_VERSION=1.27.3
ENV DOCKER_COMPOSE_VERSION=${DOCKER_COMPOSE_VERSION}

RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
  && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
  && apt-get update \
  && apt-get install -yqq --no-install-recommends \
  docker-ce-cli=5:19.03.13~3-0~ubuntu-focal \
  && apt-get clean \
  && rm -rf /var/cache/apt/lists/*

RUN curl -Lo /usr/local/bin/docker-compose \
  "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" \
  && chmod 755 /usr/local/bin/docker-compose

RUN useradd -m actions

WORKDIR /home/actions/runner

ENV RUNNER_VERSION=2.276.1

RUN wget https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
  && tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
  && rm ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz

RUN chown -R actions ~actions && ./bin/installdependencies.sh

USER actions

ENTRYPOINT ["/usr/bin/dumb-init", "--", "./run.sh"]

Let me know if I can help with anything else! I will look into making this dockerfile public.

from charts.

lucavallin avatar lucavallin commented on August 20, 2024

Thank you!

from charts.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.