Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit c999117

Browse files
committed
Upgrade to Thorntail 2.2.1.Final
Signed-off-by: Juan Gonzalez <juagonza@redhat.com>
1 parent 6e76a4a commit c999117

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
# tests. More information on cccp.yml file can be found on:
1212
# https://github.com/CentOS/container-index#the-cccpyml-file
1313

14-
job-id: wildfly-swarm
14+
job-id: thorntail
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ MAINTAINER Dharmit Shah
1515
EXPOSE 8080
1616
LABEL che:server:8080:ref=wildfly che:server:8080:protocol=http
1717

18-
ARG SWARM_VERSION=2018.5.0
18+
ARG THORNTAIL_VERSION=2.2.1.Final
1919

20-
COPY install-swarm-dependencies.sh /tmp/
21-
RUN sudo chown user:user /tmp/install-swarm-dependencies.sh && \
22-
chmod a+x /tmp/install-swarm-dependencies.sh && \
23-
scl enable rh-maven33 /tmp/install-swarm-dependencies.sh && \
24-
sudo rm -f /tmp/install-swarm-dependencies.sh && \
20+
COPY install-thorntail-dependencies.sh /tmp/
21+
RUN sudo chown user:user /tmp/install-thorntail-dependencies.sh && \
22+
chmod a+x /tmp/install-thorntail-dependencies.sh && \
23+
scl enable rh-maven33 /tmp/install-thorntail-dependencies.sh && \
24+
sudo rm -f /tmp/install-thorntail-dependencies.sh && \
2525
sudo chgrp -R 0 /home/user && \
2626
sudo chmod -R g+rwX /home/user

recipes/centos_wildfly_swarm/install-swarm-dependencies.sh renamed to recipes/centos_thorntail/install-thorntail-dependencies.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,49 @@ cleanup() {
1515
rm -rf $TMP_DIR
1616
}
1717

18-
if [ -z $SWARM_VERSION ]; then
19-
echo -e "${RED}SWARM_VERSION must be defined! ${NC}"
18+
if [ -z $THORNTAIL_VERSION ]; then
19+
echo -e "${RED}THORNTAIL_VERSION must be defined! ${NC}"
2020
exit 1
2121
fi
2222

23-
BOM_ALL_POM_URL="https://repo1.maven.org/maven2/org/wildfly/swarm/bom-all/${SWARM_VERSION}/bom-all-${SWARM_VERSION}.pom"
24-
TMP_DIR="/tmp/swarm-${SWARM_VERSION}"
25-
LOG_FILE="${TMP_DIR}/maven-swarm-${SWARM_VERSION}.log"
26-
POM_FILE="${TMP_DIR}/pom-bom-all-${SWARM_VERSION}.xml"
27-
SWARM_PLUGIN_SNIPPET="<build><directory>${TMP_DIR}\/target<\/directory><plugins><plugin><groupId>org.wildfly.swarm<\/groupId><artifactId>wildfly-swarm-plugin<\/artifactId><version>${SWARM_VERSION}<\/version><executions><execution><goals><goal>package<\/goal><\/goals><\/execution><\/executions><\/plugin><\/plugins>"
23+
BOM_ALL_POM_URL="https://repo1.maven.org/maven2/io/thorntail/bom-all/${THORNTAIL_VERSION}/bom-all-${THORNTAIL_VERSION}.pom"
24+
TMP_DIR="/tmp/thorntail-${THORNTAIL_VERSION}"
25+
LOG_FILE="${TMP_DIR}/maven-thorntail-${THORNTAIL_VERSION}.log"
26+
POM_FILE="${TMP_DIR}/pom-bom-all-${THORNTAIL_VERSION}.xml"
27+
THORNTAIL_PLUGIN_SNIPPET="<build><directory>${TMP_DIR}\/target<\/directory><plugins><plugin><groupId>io.thorntail<\/groupId><artifactId>thorntail-maven-plugin<\/artifactId><version>${THORNTAIL_VERSION}<\/version><executions><execution><goals><goal>package<\/goal><\/goals><\/execution><\/executions><\/plugin><\/plugins>"
2828

29-
echo -e "${BLUE}================================== \n\n Installing WildFly Swarm ${SWARM_VERSION} dependencies...\n\n BOM_ALL_POM_URL: ${BOM_ALL_POM_URL}\n\n TMP_DIR: ${TMP_DIR} \n\n ================================== \n"
29+
echo -e "${BLUE}================================== \n\n Installing Thorntail ${THORNTAIL_VERSION} dependencies...\n\n BOM_ALL_POM_URL: ${BOM_ALL_POM_URL}\n\n TMP_DIR: ${TMP_DIR} \n\n ================================== \n"
3030
cleanup
3131
mkdir $TMP_DIR
3232

3333
# Get the bom-all pom.xml
3434
wget $BOM_ALL_POM_URL -O $POM_FILE -q
3535

3636
if [ ! -s $POM_FILE ]; then
37-
echo -e "${RED}Unable to obtain bom-all-${SWARM_VERSION}.pom from ${BOM_ALL_POM_URL} ${NC}"
37+
echo -e "${RED}Unable to obtain bom-all-${THORNTAIL_VERSION}.pom from ${BOM_ALL_POM_URL} ${NC}"
3838
cleanup
3939
exit 1
4040
fi
4141

4242
echo -e "${YELLOW} BOM ALL pom.xml downloaded to ${POM_FILE} ${NC}"
4343

44-
# Transform the bom-all pom.xml into a dummy Swarm app
44+
# Transform the bom-all pom.xml into a dummy Thorntail app
4545
# First remove <dependencyManagement> tags - all the fractions are used
4646
sed -i -e '/dependencyManagement/d' $POM_FILE
4747
# Replace <packaging>pom</packaging> with <packaging>war</packaging>
4848
sed -i -e 's/<packaging>pom<\/packaging>/<packaging>war<\/packaging>/' $POM_FILE
49-
# Add Swarm plugin - we need this to obtain WildFly modules
50-
sed -i -e "s|<build>|$SWARM_PLUGIN_SNIPPET|" $POM_FILE
49+
# Add Thorntail plugin - we need this to obtain WildFly modules
50+
sed -i -e "s|<build>|$THORNTAIL_PLUGIN_SNIPPET|" $POM_FILE
5151

5252
echo -e "${YELLOW} BOM ALL pom.xml transformed, resolving dependencies... ${NC}"
5353
echo -e "${YELLOW} Log file: ${LOG_FILE} ${NC}"
5454

55-
# Resolve dependencies - Swarm plugin takes care of additional WildFly module dependencies
55+
# Resolve dependencies - Thorntail plugin takes care of additional WildFly module dependencies
5656
mvn clean package -f $POM_FILE > $LOG_FILE
5757
if [ $? -eq 0 ]; then
58-
echo -e "${BLUE} WildFly Swarm ${SWARM_VERSION} dependencies installed ${NC}"
58+
echo -e "${BLUE} Thorntail ${THORNTAIL_VERSION} dependencies installed ${NC}"
5959
else
60-
echo -e "${RED}Unable to install WildFly Swarm ${SWARM_VERSION} dependencies ${NC}"
60+
echo -e "${RED}Unable to install Thorntail ${THORNTAIL_VERSION} dependencies ${NC}"
6161
cat $LOG_FILE
6262
fi
6363

0 commit comments

Comments
 (0)