Sign inSign up

mycir/gitlab-runner

By mycir

•Updated over 4 years ago

Image
0

142

mycir/gitlab-runner repository overview

FROM gitlab/gitlab-runner:alpine3.15-v14.10.1

ENV TZ Asia/Shanghai

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
        apk del tzdata && \
        apk add --no-cache maven nodejs docker npm openjdk8 tzdata && \
        mkdir -pv /root/.m2 /root/.docker /etc/docker && \
        cp /usr/share/zoneinfo/${TZ} /etc/localtime  && echo ${TZ} > /etc/timezone && \
        npm install -g yarn && \
        rm -rf /tmp/* /var/cache/apk/*


ENV KUBE_VERSION=v1.24.0
ENV HELM_VERSION=v2.12.2
#最新版本安装
#RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
#指定版本安装
RUN wget -q "https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl" -O /usr/local/bin/kubectl && \
         chmod +x /usr/local/bin/kubectl

Tag summary

Content type

Image

Digest

Size

255.1 MB

Last updated

over 4 years ago

docker pull mycir/gitlab-runner