From 47d42b864b84367e9a6a0affb3b07a4fe1f23d81 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 11 Oct 2023 09:49:50 -0600 Subject: [PATCH 1/2] Add packages to support deadsnakes Python install in jobs --- gitea/Dockerfile.task-executor | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gitea/Dockerfile.task-executor b/gitea/Dockerfile.task-executor index ad5cc64..9b27772 100644 --- a/gitea/Dockerfile.task-executor +++ b/gitea/Dockerfile.task-executor @@ -1,5 +1,8 @@ FROM ubuntu:22.04 +# Set system time zone to prevent the tzdata package from hanging looking for user input pater +RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone + # Install basic tools RUN apt update && apt install -y gpg curl apt-transport-https ca-certificates lsb-release build-essential @@ -24,3 +27,7 @@ RUN set -uex; \ # Install Docker RUN apt update && apt install -y docker-ce && rm -rf /var/lib/apt/lists/* +# Install sudo because some actions projects assume it is present, and it is present in GitHub runners +RUN apt update && apt install -y sudo +# Install software-properties-common so we have the add-apt-repository command, used by some actions to add a package repo +RUN apt update && apt install -y software-properties-common From f5d66c9f40d5eeb8da5f056929f4fd3b3ec25f8e Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 11 Oct 2023 16:25:08 -0600 Subject: [PATCH 2/2] Fix typo --- gitea/Dockerfile.task-executor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/Dockerfile.task-executor b/gitea/Dockerfile.task-executor index 9b27772..e03b0a0 100644 --- a/gitea/Dockerfile.task-executor +++ b/gitea/Dockerfile.task-executor @@ -1,6 +1,6 @@ FROM ubuntu:22.04 -# Set system time zone to prevent the tzdata package from hanging looking for user input pater +# Set system time zone to prevent the tzdata package from hanging looking for user input RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone # Install basic tools