1
0
Fork 0
This repository has been archived on 2025-01-13. You can view files and clone it, but cannot push or open issues or pull requests.
gitlab-hetzner-runner/Dockerfile
2021-02-24 00:48:48 +01:00

23 lines
1 KiB
Docker

FROM docker.io/gitlab/gitlab-runner:v13.8.0
LABEL maintainer="Sheogorath <sheogorath@shivering-isles.com>"
ARG HETZNER_VERSION=3.2.0
ARG HETZNER_HASH=d187fef169aff3100984b7d9ad842acf43ba09ccb398fd21e8d22de91576857f
RUN true \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y sudo \
&& apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \
&& true
RUN true \
&& wget "https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/${HETZNER_VERSION}/docker-machine-driver-hetzner_${HETZNER_VERSION}_linux_amd64.tar.gz" \
&& echo "${HETZNER_HASH} docker-machine-driver-hetzner_${HETZNER_VERSION}_linux_amd64.tar.gz" > check_file \
&& sha256sum -c check_file \
&& tar -xvf "docker-machine-driver-hetzner_${HETZNER_VERSION}_linux_amd64.tar.gz" \
&& rm "docker-machine-driver-hetzner_${HETZNER_VERSION}_linux_amd64.tar.gz" check_file \
&& chmod +x docker-machine-driver-hetzner \
&& mv docker-machine-driver-hetzner /usr/local/bin/ \
&& true