From cbb41cbd1867ee1b5df38d87532e30035c77aa9d Mon Sep 17 00:00:00 2001 From: Johannes Nicolai Date: Fri, 22 Jan 2021 01:57:42 +0100 Subject: [PATCH] Updating custom container example (#260) * use latest instead of outdated version * use sudo for package install (required) * use sudo for package meta data removal (required) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5bd53d2d..9743ffb9 100644 --- a/README.md +++ b/README.md @@ -468,11 +468,11 @@ The virtual environments from GitHub contain a lot more software packages (diffe If there is a need to include packages in the runner image for which there is no setup action, then this can be achieved by building a custom container image for the runner. The easiest way is to start with the `summerwind/actions-runner` image and installing the extra dependencies directly in the docker image: ```shell -FROM summerwind/actions-runner:v2.169.1 +FROM summerwind/actions-runner:latest RUN sudo apt update -y \ - && apt install YOUR_PACKAGE - && rm -rf /var/lib/apt/lists/* + && sudo apt install YOUR_PACKAGE + && sudo rm -rf /var/lib/apt/lists/* ``` You can then configure the runner to use a custom docker image by configuring the `image` field of a `Runner` or `RunnerDeployment`: