Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clarin-dspace
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
commul
docker
clarin-dspace
Commits
be09c541
Commit
be09c541
authored
5 years ago
by
Alexander König
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.inf.unibz.it:commul/docker/clarin-dspace
parents
26abf51d
4d4830c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dockerfiles/commul-customization/entrypoint.sh
+26
-4
26 additions, 4 deletions
dockerfiles/commul-customization/entrypoint.sh
with
26 additions
and
4 deletions
dockerfiles/commul-customization/entrypoint.sh
+
26
−
4
View file @
be09c541
#!/bin/sh
#!/bin/
ba
sh
# replace environment variables in config files
perl
-pi
-e
's/\$\{DSPACE_USER\}/$ENV{DSPACE_USER}/; s/\$\{DSPACE_PASSWORD\}/$ENV{DSPACE_PASSWORD}/; s/\$\{MAIL_USER\}/$ENV{MAIL_USER}/; s/\$\{MAIL_PASSWORD\}/$ENV{MAIL_PASSWORD}/; s/\$\{DSPACE_DBNAME\}/$ENV{DSPACE_DBNAME}/; s/\$\{DSPACE_UTILSDBNAME\}/$ENV{DSPACE_UTILSDBNAME}/;'
/opt/repository/sources/dspace/local.properties
...
...
@@ -16,9 +16,31 @@ perl -pi -e 's/\$\{HANDLE_USER\}/$ENV{HANDLE_USER}/; s/\$\{HANDLE_PASSWORD\}/$EN
/opt/tomcat8/bin/startup.sh
cd
/opt/repository/workspace/scripts
make init_statistics
make update_discovery
make update_oai
/opt/lindat-dspace/installation/bin/dspace generate-sitemaps
# https://ubuntuforums.org/showthread.php?t=979694
# Start process in the background and send its output to file descriptor 3
exec
3< <
(
while
(
true
)
;
do
make update_oai
make update_statistics
make update_sitemap
make lift_embargos
make update_openaire_cache
make update_discovery
echo
"INIT DONE."
sleep
86400
done
)
# Read the output of the process line by line until one line contains Ready
while
read
line
;
do
case
"
$line
"
in
"INIT DONE."
)
break
;;
esac
done
<&3
# Close the file descriptor
exec
<&3 3<&-
/opt/tomcat8/bin/shutdown.sh
-force
# start tomcat
...
...
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