Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
c84f32ad
Commit
c84f32ad
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
deployment changes to take into account new properties related to web service
parent
6584fff0
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dm_deploy_web_portal.sh
+15
-1
15 additions, 1 deletion
sbin/dm_deploy_web_portal.sh
with
15 additions
and
1 deletion
sbin/dm_deploy_web_portal.sh
+
15
−
1
View file @
c84f32ad
...
...
@@ -37,14 +37,20 @@ else
echo
"Deployment config file
$deployConfigFile
not found, using defaults"
fi
JAVA_HOME
=
$DM_SUPPORT_DIR
/java/
$DM_HOST_ARCH
DM_HOST_ARCH
=
`
uname
|
tr
[
A-Z]
[
a-z]
`
-
`
uname
-m
`
DM_HOSTNAME
=
`
hostname
-f
`
DM_CONTEXT_ROOT
=
${
DM_CONTEXT_ROOT
:
=dm
}
GLASSFISH_DIR
=
$DM_SUPPORT_DIR
/glassfish/
$DM_HOST_ARCH
DM_DEPLOY_DIR
=
$GLASSFISH_DIR
/glassfish/domains/domain1/autodeploy
DM_DIST_DIR
=
$DM_ROOT_DIR
/src/java/DmWebPortal/dist
DM_BUILD_WAR_FILE
=
DmWebPortal.war
DM_WAR_FILE
=
$DM_CONTEXT_ROOT
.war
JAVA_HOME
=
$DM_SUPPORT_DIR
/java/
$DM_HOST_ARCH
DM_SYSTEM_PASSWORD_FILE
=
${
DM_INSTALL_DIR
}
/etc/
${
DM_SYSTEM_USER
}
.system.passwd
cmd
=
"echo
$DM_DS_WEB_SERVICE_HOST
| sed 's?DM_HOSTNAME?
$DM_HOSTNAME
?'"
DM_DS_WEB_SERVICE_HOST
=
`
eval
$cmd
`
if
[
!
-f
$DM_DIST_DIR
/
$DM_BUILD_WAR_FILE
]
;
then
echo
"
$DM_BUILD_WAR_FILE
not found in
$DM_DIST_DIR
."
...
...
@@ -72,6 +78,14 @@ configFile=WEB-INF/classes/dm.portal.properties
cmd
=
"cat
$configFile
| sed 's?dm.dsWebService.url=.*?dm.dsWebService.url=https://
${
DM_DS_WEB_SERVICE_HOST
}
:
${
DM_DS_WEB_SERVICE_PORT
}
/dm?g' >
$configFile
.2 && mv
$configFile
.2
$configFile
"
eval
$cmd
configFile
=
WEB-INF/classes/dm.portal.properties
cmd
=
"cat
$configFile
| sed 's?dm.system.user=.*?dm.system.user=
${
DM_SYSTEM_USER
}
?g' >
$configFile
.2 && mv
$configFile
.2
$configFile
"
eval
$cmd
configFile
=
WEB-INF/classes/dm.portal.properties
cmd
=
"cat
$configFile
| sed 's?dm.system.passwordFile=.*?dm.system.passwordFile=
${
DM_SYSTEM_PASSWORD_FILE
}
?g' >
$configFile
.2 && mv
$configFile
.2
$configFile
"
eval
$cmd
configFile
=
WEB-INF/classes/resources.properties
cmd
=
"cat
$configFile
| sed 's?DmSoftwareVersion=.*?DmSoftwareVersion=
${
DM_SOFTWARE_VERSION
}
?g' | sed 's?DM_DATE?
$DM_DATE
?g' >
$configFile
.2 && mv
$configFile
.2
$configFile
"
eval
$cmd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment