|
1 | 1 | # from https://hub.docker.com/_/ubuntu/tags?page=1&name=22.04 |
2 | 2 | FROM ubuntu:22.04@sha256:965fbcae990b0467ed5657caceaec165018ef44a4d2d46c7cdea80a9dff0d1ea |
3 | 3 |
|
4 | | -RUN apt-get update && apt-get install -y curl git |
| 4 | +COPY install_script.sh install_script.sh |
5 | 5 |
|
6 | | -# Create a folder |
7 | | -RUN mkdir actions-runner |
8 | | -WORKDIR actions-runner |
9 | | - |
10 | | -# from https://github.com/actions/runner/releases |
11 | | -RUN GITHUB_RUNNER_VERSION="2.300.2" && \ |
12 | | - GITHUB_RUNNER_VERSION_SHA="ed5bf2799c1ef7b2dd607df66e6b676dff8c44fb359c6fedc9ebf7db53339f0c" && \ |
13 | | - curl -o actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz && \ |
14 | | - echo "${GITHUB_RUNNER_VERSION_SHA} actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz" | sha256sum -c && \ |
15 | | - tar xzf ./actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz && \ |
16 | | - rm actions-runner-linux-x64-${GITHUB_RUNNER_VERSION}.tar.gz |
17 | | - |
18 | | -RUN bash bin/installdependencies.sh |
19 | | - |
20 | | -# install zip, unip |
21 | | - |
22 | | -RUN apt-get -y install zip unzip |
23 | | - |
24 | | -# install az cli from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-2-step-by-step-installation-instructions |
25 | | - |
26 | | -RUN apt-get -y install ca-certificates curl wget apt-transport-https lsb-release gnupg |
27 | | - |
28 | | -RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null && \ |
29 | | - AZ_REPO=$(lsb_release -cs) && \ |
30 | | - echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list |
31 | | - |
32 | | -RUN apt-get update && apt-get -y install azure-cli |
33 | | - |
34 | | -RUN az config set extension.use_dynamic_install=yes_without_prompt |
35 | | - |
36 | | -# install python-pip |
37 | | - |
38 | | -RUN apt-get -y install python-pip |
39 | | - |
40 | | -# install kubectl from https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management |
41 | | - |
42 | | -RUN curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg && \ |
43 | | - echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list |
44 | | - |
45 | | -RUN apt-get update && apt-get -y install kubectl |
46 | | - |
47 | | -# install helm from https://helm.sh/docs/intro/install/#from-apt-debianubuntu |
48 | | - |
49 | | -RUN curl https://baltocdn.com/helm/signing.asc | apt-key add - && \ |
50 | | - echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list |
51 | | - |
52 | | -RUN apt-get update && apt-get -y install helm |
53 | | - |
54 | | -# install jq from https://stedolan.github.io/jq/download/ |
55 | | - |
56 | | -RUN apt-get update && apt-get -y install jq |
57 | | - |
58 | | -# install yq from https://github.com/mikefarah/yq#install |
59 | | - |
60 | | -RUN YQ_VERSION="v4.30.6" && \ |
61 | | - YQ_BINARY="yq_linux_amd64" && \ |
62 | | - wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}.tar.gz -O - | tar xz && mv ${YQ_BINARY} /usr/bin/yq |
63 | | - |
64 | | -#### |
| 6 | +RUN bash install_script.sh |
65 | 7 |
|
66 | 8 | RUN useradd github && \ |
67 | 9 | mkdir -p /home/github && \ |
|
0 commit comments