File tree Expand file tree Collapse file tree 1 file changed +13
-20
lines changed
Expand file tree Collapse file tree 1 file changed +13
-20
lines changed Original file line number Diff line number Diff line change 1+ #-------------------------------------------------------------------------------
2+ # To avoid rate limit issues with GitLab and DockerHub, push the CI-CD image to GHCR.
3+ # Current GHCR limit:
4+ # - 100 pulls per 6 hours per IP address for anonymous users.
5+ # - Unlimited pulls for users authenticated with a GitHub account and a valid PAT
6+ #
7+ # Commands to build and push:
8+ #
9+ # docker buildx create --use
10+ # docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/rnacentral/ci-cd:3.20-alpine -f Dockerfile-CI-CD --push .
11+ #
12+ #-------------------------------------------------------------------------------
113# Build container with kubectl and helm to be used by GitLab CI/CD
214
3- ARG BUILDPLATFORM
4- FROM ${BUILDPLATFORM}alpine:3.20
5-
6- ARG TARGETOS
7- ARG TARGETARCH
8-
9- # Use kubectl version v1.23.8 and helm version v3.16.1
10- RUN apk -U upgrade \
11- && apk add --no-cache ca-certificates bash git openssh curl gettext jq \
12- && wget -q https://dl.k8s.io/release/v1.23.8/bin/${TARGETOS}/${TARGETARCH}/kubectl -O /usr/local/bin/kubectl \
13- && wget -q https://get.helm.sh/helm-v3.16.1-${TARGETOS}-${TARGETARCH}.tar.gz -O - | tar -xzO ${TARGETOS}-${TARGETARCH}/helm > /usr/local/bin/helm \
14- && chmod +x /usr/local/bin/helm /usr/local/bin/kubectl \
15- && mkdir /config \
16- && chmod g+rwx /config /root \
17- && kubectl version --client \
18- && helm version
19-
20- WORKDIR /config
21-
22- CMD bash
15+ FROM rna-central-ci-cd:3.20-alpine
You can’t perform that action at this time.
0 commit comments