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
5881f2b8
Commit
5881f2b8
authored
5 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
crating a network for database service
parent
17ab52f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
docker-compose.emg.dev.yml
+4
-4
4 additions, 4 deletions
docker-compose.emg.dev.yml
registrar_test.py
+1
-1
1 addition, 1 deletion
registrar_test.py
with
6 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
0
View file @
5881f2b8
...
...
@@ -94,6 +94,7 @@ test:
-
docker push registry.gitlab.eox.at/esa/prism/vs/pvs_preprocessor:latest
-
docker push registry.gitlab.eox.at/esa/prism/vs/pvs_client:latest
-
docker swarm init
-
docker network create -d overlay emg-extnet
-
docker stack deploy -c docker-compose.emg.yml -c docker-compose.emg.dev.yml emg-pvs
script
:
# - swift post --auth-version $ST_AUTH_VERSION_DOWNLOAD --os-identity-api-version 3 --os-auth-url $OS_AUTH_URL_DOWNLOAD --os-username $OS_USERNAME_DOWNLOAD --os-password $OS_PASSWORD_DOWNLOAD --os-tenant-name $OS_TENANT_NAME_DOWNLOAD --os-tenant-id $OS_TENANT_ID_DOWNLOAD --os-region-name $OS_REGION_NAME_DOWNLOAD preprocessor_test
...
...
This diff is collapsed.
Click to expand it.
docker-compose.emg.dev.yml
+
4
−
4
View file @
5881f2b8
...
...
@@ -44,7 +44,7 @@ services:
-
type
:
bind
source
:
./preprocessor/
target
:
/preprocessor/
networks
:
extnet
:
name
:
emg-extnet
external
:
true
\ No newline at end of file
networks
:
extnet
:
name
:
emg-extnet
external
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
registrar_test.py
+
1
−
1
View file @
5881f2b8
...
...
@@ -18,7 +18,7 @@ def connect_to_db(eo_id):
global
db_name
,
coverage_id
connection
=
None
try
:
connection
=
psycopg2
.
connect
(
dbname
=
database
,
user
=
database_user
,
password
=
database_password
,
host
=
'
127.0.01
'
,
port
=
port
)
connection
=
psycopg2
.
connect
(
dbname
=
database
,
user
=
database_user
,
password
=
database_password
,
host
=
'
127.0.0
.
1
'
,
port
=
port
)
cursor
=
connection
.
cursor
()
db_name
=
connection
.
get_dsn_parameters
()[
"
dbname
"
]
postgreSQL_select_Query
=
"
SELECT identifier FROM coverages_eoobject WHERE identifier =
'
%s
'
;
"
%
eo_id
...
...
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