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

Unverified Commit e501193f authored by Flavius Lacatusu's avatar Flavius Lacatusu Committed by GitHub
Browse files

Create Dockerfiles to build olm files for openshift and Kubernetes (#165)



* Create Dockerfiles to build olm files for openshift and Kubernetes
Signed-off-by: default avatarFlavius Lacatusu <flacatus@redhat.com>
parent 3f1de6fd
......@@ -12,13 +12,11 @@
set -e -x
source ./util/ci_common.sh
trap 'Catch_Finish $?' EXIT SIGINT
# Catch errors and force to delete minishift VM.
Catch_Finish() {
rm -rf ${OPERATOR_REPO}/tmp && yes | minishift delete
rm -rf ${OPERATOR_REPO}/tmp ~/.minishift && yes | minishift delete
}
init() {
......@@ -43,7 +41,6 @@ oc_tls_mode() {
}
run_tests() {
if [ ! -d "$OPERATOR_REPO/tmp" ]; then mkdir -p "$OPERATOR_REPO/tmp" && chmod 777 "$OPERATOR_REPO/tmp"; fi
echo "[INFO] Register a custom resource definition"
oc apply -f ${OPERATOR_REPO}/deploy/crds/org_v1_che_crd.yaml
......@@ -64,6 +61,8 @@ run_tests() {
}
init
source ${OPERATOR_REPO}/.ci/util/ci_common.sh
installStartDocker
install_required_packages
start_libvirt
......
......@@ -46,8 +46,10 @@ setup_kvm_machine_driver() {
}
minishift_installation() {
MSFT_RELEASE="1.34.2"
echo "[INFO] Downloading Minishift binaries..."
curl -s -S -L https://github.com/minishift/minishift/releases/download/v$MSFT_RELEASE/minishift-$MSFT_RELEASE-linux-amd64.tgz \
if [ ! -d "$OPERATOR_REPO/tmp" ]; then mkdir -p "$OPERATOR_REPO/tmp" && chmod 777 "$OPERATOR_REPO/tmp"; fi
curl -L https://github.com/minishift/minishift/releases/download/v$MSFT_RELEASE/minishift-$MSFT_RELEASE-linux-amd64.tgz \
-o ${OPERATOR_REPO}/tmp/minishift-$MSFT_RELEASE-linux-amd64.tar && tar -xvf ${OPERATOR_REPO}/tmp/minishift-$MSFT_RELEASE-linux-amd64.tar -C /usr/bin --strip-components=1
echo "[INFO] Sarting a new OC cluster."
minishift start --memory=4096 && eval $(minishift oc-env)
......
FROM quay.io/operator-framework/upstream-registry-builder as builder
COPY deploy manifests/eclipse-che-preview-kubernetes
RUN ./bin/linux-amd64-initializer -o ./bundles.db
FROM scratch
COPY --from=builder /build/bundles.db /bundles.db
COPY --from=builder /build/bin/linux-amd64-registry-server /registry-server
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
EXPOSE 50051
ENTRYPOINT ["/registry-server"]
CMD ["--database", "bundles.db"]
......@@ -350,5 +350,5 @@ spec:
maturity: stable
provider:
name: Eclipse Foundation
replaces: eclipse-che-preview-kubernetes.v9.9.9-nightly.1567514659
replaces: eclipse-che-preview-kubernetes.v9.9.9-nightly.1567437268
version: 9.9.9-nightly.1567522875
FROM quay.io/operator-framework/upstream-registry-builder as builder
COPY deploy manifests/eclipse-che-preview-openshift
RUN ./bin/linux-amd64-initializer -o ./bundles.db
FROM scratch
COPY --from=builder /build/bundles.db /bundles.db
COPY --from=builder /build/bin/linux-amd64-registry-server /registry-server
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe
EXPOSE 50051
ENTRYPOINT ["/registry-server"]
CMD ["--database", "bundles.db"]
......@@ -395,5 +395,5 @@ spec:
maturity: stable
provider:
name: Eclipse Foundation
replaces: eclipse-che-preview-openshift.v9.9.9-nightly.1567514660
replaces: eclipse-che-preview-openshift.v9.9.9-nightly.1567437269
version: 9.9.9-nightly.1567522875
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