File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # WIP
2
+ #
3
+ # - how does this relate to the file in /tmp/build/ ?
4
+ # - how should it relate to Make commands?
5
+ # - example(s):
6
+ # - https://github.com/openshift/cluster-image-registry-operator/blob/master/Makefile
7
+ # - possible commands:
8
+ # - make build # build go app into binary
9
+ # - make build-image # build container image with included binary
10
+ # - make build-all # build binary + docker image?
11
+ # - make build-devel # different? or dangerous, to use alpine base?
12
+ #
13
+ # FROM openshift/origin-release:golang-1.10 as builder
14
+ # WORKDIR /go/src/github.com/openshift/console-operator
15
+ # COPY . .
16
+ # RUN make build
17
+ #
18
+ #
19
+ FROM openshift/origin-release:golang-1.10 as builder
20
+ COPY . /go/src/github.com/openshift/console-operator/
21
+ RUN cd /go/src/github.com/openshift/console-operator && \
22
+ go build ./cmd/console-operator
23
+
24
+ FROM centos:7
25
+ # TODO: label for enabling install to pick this up:
26
+ # LABEL io.openshift.release.operator true
27
+
28
+ COPY --from=0 /go/src/github.com/openshift/console-operator /usr/bin/
29
+ COPY deploy/00-crd.yaml \
30
+ deploy/01-namespace.yaml \
31
+ deploy/02-rbac.yaml \
32
+ deploy/03-operator.yaml \
33
+ /manifests/
34
+ # atm no assets
35
+ # COPY tmp/build/assets /opt/openshift/
36
+
37
+ RUN useradd console-operator
38
+ USER console-operator
39
+
40
+ ENTRYPOINT []
41
+ CMD ["/usr/bin/cluster-samples-operator" ]
You can’t perform that action at this time.
0 commit comments