From 1b9190928cffbd79be1aa169f66eadebce08d04b Mon Sep 17 00:00:00 2001 From: LordMathis Date: Mon, 12 Feb 2024 22:02:34 +0100 Subject: [PATCH] Add initial Dockerfile --- Dockerfile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..54d70b8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,48 @@ +FROM ubuntu:22.04 + +ENV DEBIAN_FRONTEND=noninteractive + +# Install dependencies +RUN apt-get -yq update +RUN apt-get -yq install --no-install-recommends --no-install-suggests \ + wget \ + curl \ + git \ + build-essential \ + ssh \ + gawk \ + jq \ + sudo \ + gnupg-agent \ + ca-certificates \ + software-properties-common \ + apt-transport-https \ + libyaml-0-2 \ + zstd \ + zip \ + unzip \ + python3 \ + python3-pip + +RUN ln -s "$(which python3)" "/usr/local/bin/python" + +# Install docker +RUN curl -fsSL https://get.docker.com -o get-docker.sh +RUN sh get-docker.sh + +# # Install kubectl +# RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" +# RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + +# # Install helm +# RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +# RUN sh get_helm.sh + +# # Install sops +# RUN wget https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux +# RUN chmod +x sops-v3.7.3.linux +# RUN mv sops-v3.7.3.linux /usr/local/bin/sops + +# Install node 18 +RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - +RUN apt-get -yq install --no-install-recommends --no-install-suggests nodejs \ No newline at end of file diff --git a/README.md b/README.md index 2ab7a56..09666a9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # act-runner -Container image used in Gitea Actions \ No newline at end of file +Container image used in Gitea Actions on my cluster \ No newline at end of file