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
120ee186
Commit
120ee186
authored
4 years ago
by
Lubomir Dolezal
Browse files
Options
Downloads
Patches
Plain Diff
add dem_init-db.sh
parent
8431200a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/dem_init-db.sh
+88
-0
88 additions, 0 deletions
config/dem_init-db.sh
with
88 additions
and
0 deletions
config/dem_init-db.sh
0 → 100644
+
88
−
0
View file @
120ee186
# Check if collection exits in database and initialize database only if not
if
python3 manage.py
id
check
"
${
COLLECTION
}
"
;
then
echo
"Initialize database"
python3 manage.py coveragetype import /rgbnir_definition.json
--traceback
if
[
"
${
COLLECTION
}
"
==
"DEM"
]
;
then
echo
"Initializing collection '
${
COLLECTION
}
'."
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DTED
--traceback
\
--coverage-type
"int16_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DTED
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DTED
--traceback
\
--coverage-type
"int16_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DTED
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-DGED
--traceback
\
--coverage-type
"float32_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-DGED
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-INSP
--traceback
\
--coverage-type
"float32_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-INSP
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DGED
--traceback
\
--coverage-type
"float32_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DGED
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py producttype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DGED
--traceback
\
--coverage-type
"float32_grayscale"
python3 manage.py browsetype create
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DGED
--traceback
\
--red
"gray"
\
--red-range
-100
4000
\
--red-nodata
0
python3 manage.py collectiontype create
"
${
COLLECTION
}
"
_Collection
--traceback
\
--coverage-type
"float32_grayscale"
\
--coverage-type
"int16_grayscale"
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DTED
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DTED
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-DGED
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_EEA-10-INSP
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-30-DGED
\
--product-type
"
${
COLLECTION
}
"
_Product_COP-DEM_GLO-90-DGED
# Create collections for all/Level-1/Level-3 products
python3 manage.py collection create
"
${
COLLECTION
}
"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_EEA-10-DGED"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_EEA-10-INSP"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_GLO-30-DGED"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_GLO-30-DTED"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_GLO-90-DGED"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
python3 manage.py collection create
"
${
COLLECTION
}
_COP-DEM_GLO-90-DTED"
--type
"
${
COLLECTION
}
"
_Collection
--traceback
else
echo
"Provided collection '
${
COLLECTION
}
' not valid."
fi
python3 manage.py storageauth create auth-cloud-ovh
"
${
OS_AUTH_URL_SHORT
}
"
\
--type
keystone
\
-p
auth-version
"
${
ST_AUTH_VERSION
}
"
\
-p
identity-api-version
=
"
${
ST_AUTH_VERSION
}
"
\
-p
username
"
${
OS_USERNAME
}
"
\
-p
password
"
${
OS_PASSWORD
}
"
\
-p
tenant-name
"
${
OS_TENANT_NAME
}
"
\
-p
tenant-id
"
${
OS_TENANT_ID
}
"
\
-p
region-name
"
${
OS_REGION_NAME
}
"
python3 manage.py storage create
\
${
BUCKET_NAME
}
${
BUCKET_NAME
}
\
--type
swift
\
--storage-auth
auth-cloud-ovh
else
echo
"Using existing database"
fi
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