THIS IS ONLY A TEST INSTANCE. DON'T DO IMPORTANT WORK HERE!

Unverified Commit e6313310 authored by Nick Boldt's avatar Nick Boldt Committed by GitHub
Browse files

fix copyright; reorder file (Brew metadata at end); update to split operator...


fix copyright; reorder file (Brew metadata at end); update to split operator and operator-metadata into two containers; update base images (#155)

move Dockerfile to rhel.Dockerfile for consistency w/ other che repos

Change-Id: I68a45797ab61903223f9537f4606638977d25335
Signed-off-by: default avatarnickboldt <nboldt@redhat.com>

remove Brew metadata (it will be appended via https://github.com/redhat-developer/codeready-workspaces-operator/blob/master/operator.Jenkinsfile

)

Change-Id: If264a8cde12521da32e9fdc60e59c7f1fe97c61f
Signed-off-by: default avatarnickboldt <nboldt@redhat.com>
parent ae35337d
# Copyright (c) 2018-2019 Red Hat, Inc.
# Copyright (c) 2018-2020 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
......@@ -13,8 +13,8 @@
# NOTE: using registry.redhat.io/rhel8/go-toolset requires login, which complicates automation
# NOTE: since updateBaseImages.sh does not support other registries than RHCC, update to RHEL8
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/devtools/go-toolset-rhel7
FROM registry.access.redhat.com/devtools/go-toolset-rhel7:1.11.13-11.1571302666 as builder
ENV PATH=/opt/rh/go-toolset-1.11/root/usr/bin:$PATH \
FROM registry.access.redhat.com/devtools/go-toolset-rhel7:1.12.12-3 as builder
ENV PATH=/opt/rh/go-toolset-1.12/root/usr/bin:$PATH \
GOPATH=/go/
USER root
......@@ -24,29 +24,7 @@ ADD . /go/src/github.com/eclipse/che-operator
RUN cd /go/src/github.com/eclipse/che-operator && export MOCK_API=true && go test -v ./... && OOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /tmp/che-operator/che-operator /go/src/github.com/eclipse/che-operator/cmd/manager/main.go && cd ..
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi8-minimal
FROM registry.access.redhat.com/ubi8-minimal:8.1-279
ENV SUMMARY="Red Hat CodeReady Workspaces Operator container" \
DESCRIPTION="Red Hat CodeReady Workspaces Operator container" \
PRODNAME="codeready-workspaces" \
COMPNAME="operator-rhel8"
LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.description="$DESCRIPTION" \
io.k8s.display-name="$DESCRIPTION" \
io.openshift.tags="$PRODNAME,$COMPNAME" \
com.redhat.component="$PRODNAME-$COMPNAME-container" \
name="$PRODNAME/$COMPNAME" \
version="2.0" \
license="EPLv2" \
maintainer="Nick Boldt <nboldt@redhat.com>" \
io.openshift.expose-services="" \
com.redhat.delivery.appregistry="true" \
usage=""
# not applicable to Che, only needed for CRW
# ADD controller-manifests /manifests
FROM registry.access.redhat.com/ubi8-minimal:8.1-328
COPY --from=builder /tmp/che-operator/che-operator /usr/local/bin/che-operator
COPY --from=builder /go/src/github.com/eclipse/che-operator/templates/keycloak_provision /tmp/keycloak_provision
......@@ -54,3 +32,5 @@ COPY --from=builder /go/src/github.com/eclipse/che-operator/templates/oauth_prov
# apply CVE fixes, if required
RUN microdnf update -y libnghttp2 && microdnf clean all && rm -rf /var/cache/yum && echo "Installed Packages" && rpm -qa | sort -V && echo "End Of Installed Packages"
CMD ["che-operator"]
# append Brew metadata here (it will be appended via https://github.com/redhat-developer/codeready-workspaces-operator/blob/master/operator.Jenkinsfile)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment