-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy pathDockerfile
31 lines (23 loc) · 1.19 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
# Builder
FROM registry.access.redhat.com/ubi9/ubi:9.4-1123.1719560047@sha256:081c96d1b1c7cd1855722d01f1ca53360510443737b1eb33284c6c4c330e537c AS builder
SHELL ["/bin/bash", "-c"]
# renovate: datasource=github-releases depName=argoproj/argo-cd
ARG ARGOCD_VERSION=v2.12.3
# renovate: datasource=github-releases depName=mikefarah/yq
ARG YQ_VERSION=v4.44.3
RUN curl -L "https://github.com/argoproj/argo-cd/releases/download/${ARGOCD_VERSION}/argocd-linux-amd64" -o /usr/local/bin/argocd && \
chmod +x /usr/local/bin/argocd && \
argocd version --client
RUN curl -L "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" -o /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq && \
yq --version
# Runnable
FROM ghcr.io/redhat-cop/containers-quickstarts/jenkins-agent:v4.16
LABEL name="redhat-cop/jenkins-agent-argocd" \
io.k8s.display-name="Jenkins Agent ArgoCD" \
io.k8s.description="The jenkins agent argocd." \
com.redhat.component="redhat-cop/containers-quickstarts/jenkins-agent-argocd"
COPY --from=builder /usr/local/bin/argocd /usr/local/bin/argocd
COPY --from=builder /usr/local/bin/yq /usr/local/bin/yq
RUN argocd version --client && \
yq --version