-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (30 loc) · 1.5 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
33
34
35
36
37
38
39
FROM docker:26.1.0
LABEL tag="ackee-gitlab" \
author="Ackee 🦄" \
description="Tailor-made image for our stack"
ENV GITLAB_CI_UTILS_VERSION "2.7.0"
ENV PATH "$PATH:/opt/google-cloud-sdk/bin"
RUN apk add --no-cache bash coreutils curl jq git python3 rsync zip py3-pip gettext
RUN pip3 install yq
RUN wget -q "https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz" -O google-cloud-sdk.tar.gz && \
tar -xf google-cloud-sdk.tar.gz -C /opt && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud components install kubectl && \
gcloud components install gsutil && \
gcloud components install beta && \
gcloud components install alpha && \
gcloud components update && \
rm google-cloud-sdk.tar.gz
RUN wget -q https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz -O helm.tar.gz && \
tar xf helm.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
rm -r linux-amd64
RUN wget -q https://releases.hashicorp.com/vault/1.8.4/vault_1.8.4_linux_amd64.zip -O vault.zip && \
unzip vault.zip && \
mv vault /usr/local/bin/vault && \
chmod +x /usr/local/bin/vault && \
rm vault.zip
COPY --from=docker/compose:alpine-1.27.4 /usr/local/bin/docker-compose /usr/local/bin/
ADD https://raw.githubusercontent.com/AckeeDevOps/gitlab-ci-utils/$GITLAB_CI_UTILS_VERSION/scripts/helper_functions.sh /usr/local/bin/helper_functions.sh
RUN chmod +x /usr/local/bin/helper_functions.sh