-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 1.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM quay.io/evryfs/github-actions-runner:master
ENV COMPOSER_ALLOW_SUPERUSER=1
USER root
RUN DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common \
&& add-apt-repository ppa:ondrej/php \
&& apt-get update \
&& apt-get install -y php5.6 php5.6-mbstring git zip unzip \
&& pip install ansible boto3 boto netaddr kubernetes \
&& curl -sS --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz" | tar xz -C /tmp && \
mv /tmp/eksctl /usr/local/bin && \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/aws-iam-authenticator && \
chmod +x aws-iam-authenticator && mv aws-iam-authenticator /usr/local/bin && \
curl --silent --location "https://get.helm.sh/helm-v3.7.1-linux-amd64.tar.gz" | tar xz -C /tmp && \
mv /tmp/linux-amd64/helm /usr/local/bin
COPY scripts/install-runner /usr/local/bin/install-runner
RUN chmod +x /usr/local/bin/install-runner
COPY entrypoint.sh /
WORKDIR /home/runner
USER runner
ENTRYPOINT ["/entrypoint.sh"]