Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JE-73021 #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configs/vers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
globals:
version_opencms: "18.0"
23 changes: 14 additions & 9 deletions manifest.jps
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ name: OpenCms
homepage: http://www.opencms.org/
startPage: overview/
logo: /images/opencms.png
baseUrl: https://raw.githubusercontent.com/jelastic-jps/opencms/master
description: OpenCms from Alkacon Software is a professional, easy to use website
content management system. OpenCms helps content managers worldwide to create and
maintain beautiful websites fast and efficiently.
categories:
- apps/content-management
- apps/cms

baseUrl: https://raw.githubusercontent.com/sych74/opencms/master
mixins:
- configs/vers.yaml

ssl: true
engine: openjdk11
nodes:
Expand All @@ -22,18 +26,20 @@ nodes:
nodeType: mariadb10

onInstall:
- deploy
- deployApp
- set-SQL-settings
- add-autonfig-file
- run-setup
- restart

actions:
deploy:
deploy:
archive: https://github.com/jelastic-jps/opencms/raw/master/dumps/opencms-11.0.2.war
name: opencms-11.0.2.war
context: ROOT
deployApp:
- cmd[cp]: |-
cd /tmp/;
curl -fsSL "http://www.opencms.org/downloads/opencms/opencms-${globals.version_opencms}.zip" -o /tmp/opencms.zip;
unzip -o opencms.zip -d opencms;
mv opencms/opencms.war /opt/tomcat/webapps/ROOT.war;
sudo jem service stop; rm -rf /opt/tomcat/webapps/ROOT; sudo jem service start;
set-SQL-settings:
prepareSqlDatabase:
- nodeType: mariadb10
Expand Down Expand Up @@ -68,8 +74,7 @@ actions:
run-setup:
- cmd[cp]: |-
cd /opt/tomcat/webapps/ROOT/WEB-INF
chmod +x ./setup.sh
./setup.sh -path /opt/tomcat/webapps/setup.properties >> /var/log/run.log 2>&1
bash setup.sh -path /opt/tomcat/webapps/setup.properties >> /var/log/run.log 2>&1
restart:
- restartContainers:
nodeGroup: sqldb
Expand Down