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
472e6e19
Commit
472e6e19
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
adding secrets to the other collections
parent
5ec4ab8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docker-compose.dem.yml
+14
-0
14 additions, 0 deletions
docker-compose.dem.yml
docker-compose.emg.yml
+11
-3
11 additions, 3 deletions
docker-compose.emg.yml
env_setup
+0
-15
0 additions, 15 deletions
env_setup
env_setup.sh
+0
-1
0 additions, 1 deletion
env_setup.sh
setup_env.sh
+0
-11
0 additions, 11 deletions
setup_env.sh
with
25 additions
and
30 deletions
docker-compose.dem.yml
+
14
−
0
View file @
472e6e19
...
...
@@ -129,6 +129,10 @@ services:
-
env/dem_db.env
-
env/dem_obs.env
-
env/dem_redis.env
secrets
:
-
OS_PASSWORD
-
OS_PASSWORD_DOWNLOAD
-
DJANGO_PASSWORD
environment
:
INSTANCE_ID
:
"
prism-view-server_registrar"
INSTALL_DIR
:
"
/var/www/pvs/dev/"
...
...
@@ -138,6 +142,9 @@ 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
OS_PASSWORD_DOWNLOAD_FILE
:
"
/run/secrets/OS_PASSWORD_DOWNLOAD"
DJANGO_PASSWORD_FILE
:
"
/run/secrets/DJANGO_PASSWORD"
configs
:
-
source
:
init-db
target
:
/init-db.sh
...
...
@@ -169,3 +176,10 @@ volumes:
instance-data
:
networks
:
intnet
:
secrets
:
OS_PASSWORD
:
external
:
true
OS_PASSWORD_DOWNLOAD
:
external
:
true
DJANGO_PASSWORD
:
external
:
true
This diff is collapsed.
Click to expand it.
docker-compose.emg.yml
+
11
−
3
View file @
472e6e19
...
...
@@ -130,7 +130,9 @@ services:
-
env/emg_obs.env
-
env/emg_redis.env
secrets
:
-
os_password
-
OS_PASSWORD
-
OS_PASSWORD_DOWNLOAD
-
DJANGO_PASSWORD
environment
:
INSTANCE_ID
:
"
prism-view-server_registrar"
INSTALL_DIR
:
"
/var/www/pvs/dev/"
...
...
@@ -141,6 +143,8 @@ services:
STARTUP_SCRIPTS
:
"
/wait-initialized.sh"
WAIT_SERVICES
:
"
redis:6379
database:5432"
OS_PASSWORD_FILE
:
/run/secrets/os_password
OS_PASSWORD_DOWNLOAD_FILE
:
"
/run/secrets/OS_PASSWORD_DOWNLOAD"
DJANGO_PASSWORD_FILE
:
"
/run/secrets/DJANGO_PASSWORD"
configs
:
-
source
:
init-db
target
:
/init-db.sh
...
...
@@ -173,5 +177,9 @@ volumes:
networks
:
intnet
:
secrets
:
os_password
:
file
:
OS_PASSWORD.txt
OS_PASSWORD
:
external
:
true
OS_PASSWORD_DOWNLOAD
:
external
:
true
DJANGO_PASSWORD
:
external
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
env_setup
deleted
100644 → 0
+
0
−
15
View file @
5ec4ab8a
#!/usr/bin/env python3
# jsonenv reads a json object as input and produces
# escaped shell commands for setting environment vars
import
json
import
pipes
import
os
import
sys
for
k
,
v
in
json
.
load
(
sys
.
stdin
).
items
():
k
=
pipes
.
quote
(
k
)
v
=
pipes
.
quote
(
v
)
print
(
"
%s=%s
"
%
(
k
,
v
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
env_setup.sh
+
0
−
1
View file @
472e6e19
...
...
@@ -6,7 +6,6 @@ cat $vhr18_obs > ./env/vhr18_obs.env
cat
$emg_db
>
./env/emg_db.env
cat
$emg_django
>
./env/emg_django.env
cat
$emg_obs
>
./env/emg_obs.env
echo
"OS_PASSWORD=
${
OS_PASSWORD
}
"
>>
./OS_PASSWORD.txt
set
-o
allexport
...
...
This diff is collapsed.
Click to expand it.
setup_env.sh
deleted
100644 → 0
+
0
−
11
View file @
5ec4ab8a
#!/bin/sh
chmode +x env_setup
cat
>
/run/secrets/my_secret
>
secrets.json
./env_setup <secrets.json
>
secrets.csv
IFS
=
"="
while
read
key value
;
do
export
$key
=
$value
echo
"
${
key
}
=
${
value
}
"
done
< secrets.csv
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