EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository 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
ESA
PRISM
VS
Commits
f886e6ef
Commit
f886e6ef
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
export variables into bash.bashrc
parent
2e7beb82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/entrypoint.sh
+7
-9
7 additions, 9 deletions
core/entrypoint.sh
docker-compose.vhr18.yml
+6
-0
6 additions, 0 deletions
docker-compose.vhr18.yml
with
13 additions
and
9 deletions
core/entrypoint.sh
+
7
−
9
View file @
f886e6ef
...
...
@@ -15,6 +15,7 @@ fi
# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
# "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature)
file_env
()
{
local
var
=
"
$1
"
local
fileVar
=
"
${
var
}
_FILE"
local
def
=
"
${
2
:-}
"
...
...
@@ -27,17 +28,14 @@ file_env() {
elif
[
"
${
!fileVar
:-}
"
]
;
then
val
=
"
$(
<
"
${
!fileVar
}
"
)
"
fi
export
"
$var
"
=
"
$val
"
echo
" the
${
var
}
shall be set to
${
val
}
"
cat
>>
/etc/bash.bashrc
<<
EOF
export
${
var
}
=
${
val
}
EOF
unset
"
$fileVar
"
}
# Loads various settings that are used elsewhere in the script
# This should be called after mysql_check_config, but before any other functions
docker_setup_env
()
{
# Initialize values that might be stored in a file
file_env
'OS_PASSWORD'
file_env
"OS_PASSWORD"
}
docker_setup_env
"
$@
"
eval
"/opt/eoxserver/eoxserver-entrypoint.sh
$@
"
This diff is collapsed.
Click to expand it.
docker-compose.vhr18.yml
+
6
−
0
View file @
f886e6ef
...
...
@@ -129,6 +129,8 @@ services:
-
env/vhr18_db.env
-
env/vhr18_obs.env
-
env/vhr18_redis.env
secrets
:
-
OS_PASSWORD
environment
:
INSTANCE_ID
:
"
prism-view-server_registrar"
INSTALL_DIR
:
"
/var/www/pvs/dev/"
...
...
@@ -138,6 +140,7 @@ services:
INIT_SCRIPTS
:
"
/configure.sh
/init-db.sh
/initialized.sh"
STARTUP_SCRIPTS
:
"
/wait-initialized.sh"
WAIT_SERVICES
:
"
redis:6379
database:5432"
OS_PASSWORD_FILE
:
"
/run/secrets/OS_PASSWORD"
configs
:
-
source
:
init-db
target
:
/init-db.sh
...
...
@@ -169,3 +172,6 @@ volumes:
instance-data
:
networks
:
intnet
:
secrets
:
OS_PASSWORD
:
external
:
true
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