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
00e23fa5
Commit
00e23fa5
authored
4 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
using a test bash script
parent
d141cbb0
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
.gitlab-ci.yml
+2
-17
2 additions, 17 deletions
.gitlab-ci.yml
gitlab_test.sh
+17
-0
17 additions, 0 deletions
gitlab_test.sh
with
19 additions
and
17 deletions
.gitlab-ci.yml
+
2
−
17
View file @
00e23fa5
...
...
@@ -60,21 +60,6 @@ build:
-
IMAGE="$CI_REGISTRY_IMAGE/pvs_cache"
-
docker pull "$IMAGE":$CI_COMMIT_REF_NAME ||
true
-
docker build --cache-from "$IMAGE":$CI_COMMIT_REF_NAME -t "$IMAGE":$CI_COMMIT_REF_SLUG -t "$IMAGE":$CI_COMMIT_REF_NAME cache/
-
docker image ls
-
docker tag "$CI_REGISTRY_IMAGE/pvs_core:$CI_COMMIT_REF_NAME" "$CI_REGISTRY_IMAGE/pvs_core:latest"
-
docker tag "$CI_REGISTRY_IMAGE/pvs_cache:$CI_COMMIT_REF_NAME" "$CI_REGISTRY_IMAGE/pvs_cache:latest"
-
docker tag "$CI_REGISTRY_IMAGE/pvs_preprocessor:$CI_COMMIT_REF_NAME" "$CI_REGISTRY_IMAGE/pvs_preprocessor:latest"
-
docker tag "$CI_REGISTRY_IMAGE/pvs_client:$CI_COMMIT_REF_NAME" "$CI_REGISTRY_IMAGE/pvs_client:latest"
-
chmod +x env_setup.sh wait_for_container.sh
-
./env_setup.sh
-
mkdir data
-
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
-
apk update && apk add postgresql-dev gcc python3-dev musl-dev py-pip gdal
-
pip3 install -r requirements.txt
-
./wait_for_container.sh
-
docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /var/www/pvs/dev/pvs_instance/manage.py storage create pvs_testing pvs_testing --type swift --storage-auth auth-cloud-ovh
-
docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /core/registrar.py --objects-prefix "OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar"
-
pytest -s registrar_test.py --name OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar
-
chmod +x gitlab_test.sh
-
./gitlab_test.sh
This diff is collapsed.
Click to expand it.
gitlab_test.sh
0 → 100644
+
17
−
0
View file @
00e23fa5
#!/bin/sh
docker tag
"
$CI_REGISTRY_IMAGE
/pvs_core:
$CI_COMMIT_REF_NAME
"
"
$CI_REGISTRY_IMAGE
/pvs_core:latest"
docker tag
"
$CI_REGISTRY_IMAGE
/pvs_cache:
$CI_COMMIT_REF_NAME
"
"
$CI_REGISTRY_IMAGE
/pvs_cache:latest"
docker tag
"
$CI_REGISTRY_IMAGE
/pvs_preprocessor:
$CI_COMMIT_REF_NAME
"
"
$CI_REGISTRY_IMAGE
/pvs_preprocessor:latest"
docker tag
"
$CI_REGISTRY_IMAGE
/pvs_client:
$CI_COMMIT_REF_NAME
"
"
$CI_REGISTRY_IMAGE
/pvs_client:latest"
chmod
+x env_setup.sh wait_for_container.sh
./env_setup.sh
mkdir
data
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
apk update
&&
apk add postgresql-dev gcc python3-dev musl-dev py-pip gdal
pip3
install
-r
requirements.txt
./wait_for_container.sh
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /var/www/pvs/dev/pvs_instance/manage.py storage create pvs_testing pvs_testing
--type
swift
--storage-auth
auth-cloud-ovh
docker
exec
-i
$(
docker ps
-qf
"name=emg-pvs_registrar"
)
python3 /core/registrar.py
--objects-prefix
"OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar"
pytest
-s
registrar_test.py
--name
OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar
\ No newline at end of file
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