Skip to content

Commit 1978cea

Browse files
author
Sudhakar Frederick
committed
fixed closing tag in ant file
added RLC_URL and sed rplace in startup.sh
1 parent b1c53f7 commit 1978cea

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN wget -q $ARTIFACT_DOWNLOAD_URL && \
3030
sh /tmp/ibm-ucd-install/install-server.sh && \
3131
grep ZSQLFILE /tmp/ibm-ucd-install/install.log | cut -f 3- -d '_' > /opt/ucd/ucddbinstall/runsqls.txt && \
3232
grep ZSQLSTMTBEGIN /tmp/ibm-ucd-install/install.log | cut -f2- -d '_' > /opt/ucd/ucddbinstall/execsql.sql && \
33-
chmod +x /opt/ucd/ucddbinstall/install-db.sh && \
33+
chmod +x /opt/ucd/ucddbinstall/install-db.sh /opt/startup.sh && \
3434
cp -r /tmp/ibm-ucd-install/database /opt/ucd/ucddbinstall/ && \
3535
cat /tmp/supervisord.conf >> /etc/supervisor/conf.d/supervisord.conf && \
3636
rm -rf /tmp/ibm-ucd-install /tmp/install.properties /tmp/supervisord.conf ibm-ucd-$ARTIFACT_VERSION.zip

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
build:
1616
context: .
1717
args:
18-
ARTIFACT_DOWNLOAD_URL: http://mediahost/ibm-ucd-6.2.1.2.801550.zip
18+
ARTIFACT_DOWNLOAD_URL: http://${MEDIAHOST}/ibm-ucd-6.2.1.2.801550.zip
1919
ARTIFACT_VERSION: 6.2.1.2.801550
2020
image: stackinabox/urbancode-deploy:6.2.1.2.801550
2121
container_name: ucd

startup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fi
1313
echo "$IP_ADDRESS $PUBLIC_HOSTNAME" >> /etc/hosts
1414

1515
#run db setup scripts
16+
sed -i "s/27000@licenses.example.com/${RCL_URL}/g" /opt/ucd/ucddbinstall/execsql.sql
1617
mkdir -p /tmp/ibm-ucd-install
1718
cp -r /opt/ucd/ucddbinstall/database/ /tmp/ibm-ucd-install
1819
cd /opt/ucd/ucddbinstall

ucddbinstall/installdb.with.ant.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<entry key="hibernate.connection.password" value="${hibernate.connection.password}" />
9696
<entry key="hibernate.connection.username" value="${hibernate.connection.username}" />
9797
<entry key="hibernate.connection.url" value="jdbc:mysql://${env.DATABASE_HOST}:${env.DATABASE_PORT}/${env.DATABASE_NAME}" />
98-
<entry key="rcl.server.url" value="${env.RCL_URL}">
98+
<entry key="rcl.server.url" value="${env.RCL_URL}" />
9999
</propertyfile>
100100
</target>
101101
</project>

0 commit comments

Comments
 (0)