Skip to content

Commit

Permalink
Merge pull request #178 from jfdenise/CD19
Browse files Browse the repository at this point in the history
Fix for CLOUD-3508, galleon module refactoring to handle WF galleon feature-packs
  • Loading branch information
luck3y authored Apr 2, 2020
2 parents 6cb72ae + 56f3d72 commit e3ad27c
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/eap-cd-env/19.0/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ labels:
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: "WILDFLY_VERSION"
value: "7.4.0.CD19-redhat-SNAPSHOT"
value: "7.4.0.CD19-redhat-00001"
- name: "LAUNCH_JBOSS_IN_BACKGROUND"
value: "true"
- name: "JBOSS_PRODUCT"
value: "eap"
- name: "JBOSS_EAP_VERSION"
value: "7.4.0-cd"
- name: "PRODUCT_VERSION"
value: "18.0"
value: "19.0"
- name: "EAP_FULL_GROUPID"
value: "org.jboss.eap.cd"
- name: "JBOSS_HOME"
value: "/opt/eap"
- name: "DEBUG"
Expand Down
9 changes: 9 additions & 0 deletions modules/eap-cd-galleon-latest/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema_version: 1

name: eap-cd-galleon-latest
version: "1.0"
description: "Red Hat JBoss Enterprise Application Platform CD latest version galleon module"
modules:
install:
- name: eap-cd-galleon
version: '19.0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2014, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<build xmlns="urn:wildfly:feature-pack-build:3.1" producer="org.jboss.eap.galleon.s2i:eap-s2i-galleon-pack">

<transitive>
<dependency group-id="org.wildfly.core" artifact-id="wildfly-core-galleon-pack">
<name>org.wildfly.core:wildfly-core-galleon-pack</name>
</dependency>
<dependency group-id="org.jboss.eap" artifact-id="wildfly-servlet-galleon-pack">
<name>org.wildfly:wildfly-servlet-galleon-pack</name>
</dependency>
<dependency group-id="org.jboss.eap" artifact-id="wildfly-ee-galleon-pack">
<name>org.wildfly:wildfly-ee-galleon-pack</name>
<default-configs inherit="true"/>
<packages inherit="true"/>
</dependency>
</transitive>
<dependencies>
<dependency group-id="org.jboss.eap.cd" artifact-id="wildfly-galleon-pack">
<name>org.wildfly:wildfly-galleon-pack</name>
<packages inherit="true"/>
<default-configs inherit="false"/>
</dependency>
</dependencies>
</build>
13 changes: 13 additions & 0 deletions modules/eap-cd-galleon/19.0/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# Configure module
set -e

SCRIPT_DIR=$(dirname $0)
ARTIFACTS_DIR=${SCRIPT_DIR}/artifacts

chown -R jboss:root $SCRIPT_DIR
chmod -R ug+rwX $SCRIPT_DIR

pushd ${ARTIFACTS_DIR}
cp -pr * /
popd
12 changes: 12 additions & 0 deletions modules/eap-cd-galleon/19.0/module.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema_version: 1
name: eap-cd-galleon
version: '19.0'
description: Install Galleon feature-pack-build file with dependency on wildfly-galleon-pack, default config being inherited from wildfly-ee-galleon-pack

execute:
- script: configure.sh

modules:
install:
- name: eap-cd-env
version: '19.0'

0 comments on commit e3ad27c

Please sign in to comment.