From 1fccc97a94cca2368e1c2d0f4e3707216347bcb4 Mon Sep 17 00:00:00 2001 From: Ken Wills Date: Thu, 18 Apr 2019 13:25:16 -0500 Subject: [PATCH] CLOUD-3099 - create EAP CD 16 standalone image --- cp-overrides.yaml | 2 +- dev-overrides.yaml | 2 +- image.yaml | 4 +-- modules/cd-16/install.sh | 12 ++++++++ modules/cd-16/module.yaml | 58 +++++++++++++++++++++++++++++++++++ modules/cd-latest/module.yaml | 2 +- rel-overrides.yaml | 2 +- 7 files changed, 76 insertions(+), 6 deletions(-) create mode 100755 modules/cd-16/install.sh create mode 100644 modules/cd-16/module.yaml diff --git a/cp-overrides.yaml b/cp-overrides.yaml index ce4f59c..9a18c74 100644 --- a/cp-overrides.yaml +++ b/cp-overrides.yaml @@ -22,5 +22,5 @@ artifacts: osbs: repository: name: containers/jboss-eap-7 - branch: jb-eap-7.2-cd-cp-rhel-7 + branch: jb-eap-7.3-cd-cp-rhel-7 diff --git a/dev-overrides.yaml b/dev-overrides.yaml index 6957fae..7bda6f5 100644 --- a/dev-overrides.yaml +++ b/dev-overrides.yaml @@ -32,5 +32,5 @@ schema_version: 1 osbs: repository: name: containers/jboss-eap-7 - branch: jb-eap-7.2-cd-dev-rhel-7 + branch: jb-eap-7.3-cd-dev-rhel-7 diff --git a/image.yaml b/image.yaml index c2d1d77..6043c1d 100644 --- a/image.yaml +++ b/image.yaml @@ -2,7 +2,7 @@ schema_version: 1 name: "jboss-eap-7/eap-cd" description: "The JBoss EAP continuous delivery (JBoss EAP CD) releases are intended to be Technology Preview - The JBoss EAP CD OpenShift container image is provided as technology preview. It is intended for development use only. It should NOT be deployed on production or in environments that are not intended for development use." -version: "15.0" +version: "16.0" from: "rhel7:7-released" labels: - name: "com.redhat.component" @@ -28,4 +28,4 @@ osbs: container_file: container.yaml repository: name: containers/jboss-eap-7 - branch: jb-eap-7.2-cd-rhel-7 + branch: jb-eap-7.3-cd-rhel-7 diff --git a/modules/cd-16/install.sh b/modules/cd-16/install.sh new file mode 100755 index 0000000..4ddab16 --- /dev/null +++ b/modules/cd-16/install.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +SOURCES_DIR=/tmp/artifacts/ +DISTRIBUTION_ZIP="jboss-eap-cd.zip" + +unzip -d $SOURCES_DIR/eap-cd-dist -q $SOURCES_DIR/$DISTRIBUTION_ZIP +DIST_NAME=`ls $SOURCES_DIR/eap-cd-dist` + +mv $SOURCES_DIR/eap-cd-dist/$DIST_NAME $JBOSS_HOME + diff --git a/modules/cd-16/module.yaml b/modules/cd-16/module.yaml new file mode 100644 index 0000000..e28d668 --- /dev/null +++ b/modules/cd-16/module.yaml @@ -0,0 +1,58 @@ +schema_version: 1 + +name: "eap-cd-16" +description: "JBoss Enterprise Application Platform CD 16 install" +labels: + - name: "com.redhat.component" + value: "jboss-eap-7-eap-cd-container" + - name: "org.jboss.product" + value: "eap" + - name: "org.jboss.product.version" + value: "7.3.0" + - name: "org.jboss.product.eap.version" + value: "7.3.0" + - name: "com.redhat.deployments-dir" + value: "/opt/eap/standalone/deployments" + - name: "com.redhat.dev-mode" + value: "DEBUG:true" + description: "Environment variable used to enable development mode (debugging). A value of true will enable development mode." + - name: "com.redhat.dev-mode.port" + value: "DEBUG_PORT:8787" + description: "Environment variable used to specify the debug port. If not set, the default EAP debug port will be used (8787). Only applicable when development mode is enabled." +envs: + - name: "LAUNCH_JBOSS_IN_BACKGROUND" + value: "true" + - name: "JBOSS_PRODUCT" + value: "eap" + - name: "JBOSS_EAP_VERSION" + value: "7.3.0-cd" + - name: "PRODUCT_VERSION" + value: "16.0" + - name: "JBOSS_HOME" + value: "/opt/eap" + - name: "DEBUG" + example: "true" + description: "Specify true to enable development mode (debugging)." + - name: "DEBUG_PORT" + example: "8787" + description: "Specify the port to use for debugging. If not set, the default EAP debug port will be used (8787). Only applicable when development mode is enabled." +ports: + - value: 8080 + - value: 8787 + expose: false + +artifacts: + - name: jboss-eap-cd.zip + target: jboss-eap-cd.zip + md5: c6c5690dd226280b612eed960d66a2f9 + +run: + user: 185 + cmd: + - "/opt/eap/bin/standalone.sh" + - "-b" + - "0.0.0.0" + +execute: + - script: install.sh + diff --git a/modules/cd-latest/module.yaml b/modules/cd-latest/module.yaml index f8c1d72..22a555b 100644 --- a/modules/cd-latest/module.yaml +++ b/modules/cd-latest/module.yaml @@ -4,5 +4,5 @@ name: eap-cd-latest description: "Red Hat JBoss Enterprise Application Platform CD latest version install module" modules: install: - - name: eap-cd-15 + - name: eap-cd-16 - name: eap-install-cleanup diff --git a/rel-overrides.yaml b/rel-overrides.yaml index 0caae96..0034620 100644 --- a/rel-overrides.yaml +++ b/rel-overrides.yaml @@ -12,5 +12,5 @@ schema_version: 1 osbs: repository: name: containers/jboss-eap-7 - branch: jb-eap-7.2-cd-rhel-7 + branch: jb-eap-7.3-cd-rhel-7