Skip to content

Commit 9398c64

Browse files
committed
Add Dockerfile to build without operator-sdk
--Add Dockerfile to root directory --Add makefile that hooks into tmp/build/build.sh --Use this Dockerfile to fulfill OSBS requirement for containers
1 parent 6324639 commit 9398c64

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
FROM openshift/origin-release:golang-1.10 as builder
3+
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
4+
COPY . .
5+
RUN make osbs-build
6+
7+
FROM alpine:3.6
8+
RUN useradd marketplace-operator
9+
USER marketplace-operator
10+
COPY --from=builder /go/src/github.com/operator-framework/operator-marketplace/tmp/_output/bin/marketplace-operator /usr/bin
11+
12+
LABEL io.k8s.display-name="OpenShift Marketplace Operator" \
13+
io.k8s.description="This is a component of OpenShift Container Platform and manages the OpenShift Marketplace." \
14+
io.openshift.tags="openshift,marketplace" \
15+
maintainer="AOS Marketplace <aos-marketplace@redhat.com>"
16+
17+
# entrypoint specified in operator.yaml as `marketplace-operator`
18+
CMD ["/usr/bin/marketplace-operator"]

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
all: osbs-build
4+
5+
osbs-build:
6+
# hack/build.sh
7+
./tmp/build/build.sh

0 commit comments

Comments
 (0)