-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
Copy pathsigner-buildconfig.yaml
52 lines (50 loc) · 1.62 KB
/
signer-buildconfig.yaml
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
kind: List
apiVersion: v1
items:
- kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: signer
- kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: signer
spec:
triggers:
- type: ConfigChange
source:
dockerfile: |
FROM quay.io/openshift/origin-cli:latest
WORKDIR /var/lib/origin
RUN source /etc/os-release \
&& rhel_major=${VERSION_ID%.*} \
&& yum config-manager \
--add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/baseos/os/" \
--add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/appstream/os/"
RUN yum install -y skopeo && \
yum clean all && mkdir -p gnupg && chmod -R 0777 /var/lib/origin
RUN echo $'%echo Generating openpgp key ...\n\
Key-Type: RSA \n\
Key-Length: 2048 \n\
Subkey-Type: ELG-E \n\
Subkey-Length: 1024 \n\
Name-Real: Joe Tester \n\
Name-Comment: with stupid passphrase \n\
Name-Email: [email protected] \n\
Expire-Date: 0 \n\
Creation-Date: 2017-01-01 \n\
%commit \n\
%echo done \n' >> dummy_key.conf
strategy:
type: Docker
dockerStrategy:
env:
- name: "BUILD_LOGLEVEL"
value: "2"
from:
kind: DockerImage
name: image-registry.openshift-image-registry.svc:5000/openshift/cli:latest
output:
to:
kind: ImageStreamTag
name: signer:latest