Skip to content

Commit

Permalink
Merge pull request #133 from luck3y/CLOUD-3099
Browse files Browse the repository at this point in the history
[CLOUD-3099] - Create EAP CD 16 standalone image.
  • Loading branch information
luck3y committed Apr 23, 2019
2 parents 0808cba + 1fccc97 commit cea126f
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cp-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion dev-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
12 changes: 12 additions & 0 deletions modules/cd-16/install.sh
Original file line number Diff line number Diff line change
@@ -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

58 changes: 58 additions & 0 deletions modules/cd-16/module.yaml
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion modules/cd-latest/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion rel-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cea126f

Please sign in to comment.