-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
67 lines (47 loc) · 2.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Copyright 2022 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1
RUN mkdir -p /interlace-app && mkdir -p /interlace-app/public
RUN chgrp -R 0 /interlace-app && chmod -R g=u /interlace-app
RUN curl -Lo rekor-cli https://github.com/sigstore/rekor/releases/download/v0.3.0/rekor-cli-linux-amd64 &&\
mv rekor-cli /usr/local/bin/rekor-cli &&\
chmod +x /usr/local/bin/rekor-cli
WORKDIR /interlace-app
RUN curl -Lo yq https://github.com/mikefarah/yq/releases/download/3.4.0/yq_linux_amd64 &&\
mv yq /usr/bin/yq &&\
chmod +x /usr/bin/yq
RUN microdnf install git
RUN microdnf install tar gzip
RUN yq -V
RUN curl -Lo argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64 &&\
mv argocd /usr/bin/argocd &&\
chmod +x /usr/bin/argocd
RUN curl -Lo helm-v3.7.2-linux-amd64.tar.gz https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz &&\
tar -zxvf helm-v3.7.2-linux-amd64.tar.gz &&\
mv linux-amd64/helm /usr/local/bin/helm
RUN curl -Lo helm-sigstore https://github.com/sigstore/helm-sigstore/releases/download/v0.1.3/helm-sigstore-linux-amd64 &&\
helm plugin install https://github.com/sigstore/helm-sigstore &&\
helm plugin list
RUN mkdir -p /.argocd
RUN chgrp -R 0 /.argocd && chmod -R g=u /.argocd
COPY scripts/generate_manifest_bundle.sh /interlace-app/generate_manifest_bundle.sh
COPY scripts/gpg-annotation-sign.sh /interlace-app/gpg-annotation-sign.sh
COPY scripts/x509-annotation-sign.sh /interlace-app/x509-annotation-sign.sh
RUN chmod +x /interlace-app/generate_manifest_bundle.sh &&\
chmod +x /interlace-app/gpg-annotation-sign.sh &&\
chmod +x /interlace-app/x509-annotation-sign.sh
COPY build/_bin/argocd-interlace /usr/local/bin/argocd-interlace
ENTRYPOINT ["argocd-interlace"]