EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Data Handling
core
Commits
7a525eed
Commit
7a525eed
authored
2 years ago
by
Fabian Schindler
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.eox.at:vs/core
parents
334a0644
40d9bbe9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#26526
failed
2 years ago
Stage: test
Stage: publish
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
configure.sh
+6
-5
6 additions, 5 deletions
configure.sh
entrypoint.sh
+0
-1
0 additions, 1 deletion
entrypoint.sh
registrar/cli.py
+2
-2
2 additions, 2 deletions
registrar/cli.py
with
9 additions
and
9 deletions
Dockerfile
+
1
−
1
View file @
7a525eed
...
...
@@ -76,7 +76,7 @@ ENV INSTANCE_ID="view-server_core" \
GDAL_PAM_ENABLED="NO" \
OWS_WCS_MAXSIZE="4096" \
EOXS_LAYER_SUFFIX_SEPARATOR="__" \
DEV="false" \
DEV
ELOPMENT
="false" \
ENABLE_HTTP_ACCESS="false"
COPY
. .
...
...
This diff is collapsed.
Click to expand it.
configure.sh
+
6
−
5
View file @
7a525eed
...
...
@@ -60,12 +60,11 @@
echo
"ALLOWED_HOSTS = ['*']"
>>
pvs_instance/settings.py
echo
"USE_X_FORWARDED_HOST = True"
>>
pvs_instance/settings.py
echo
"SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')"
>>
pvs_instance/settings.py
if
$DEV
;
then
if
$DEV
ELOPMENT
;
then
# activate django cors plugin for dev environment to remove need for browser cors plugin
sed
-i
"s/ 'django.contrib.auth',/ 'corsheaders', 'django.contrib.auth',/g"
pvs_instance/settings.py
sed
-i
"s/ 'django.contrib.sessions.middleware.SessionMiddleware',/ 'corsheaders.middleware.CorsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',/g"
pvs_instance/settings.py
echo
'CORS_ORIGIN_ALLOW_ALL = True'
>>
pvs_instance/settings.py
sed
-e
's/DEBUG = False/DEBUG = True/'
-i
pvs_instance/settings.py
fi
...
...
@@ -86,11 +85,13 @@
if
[[
"
$EOXS_OPENSEARCH_GETCOVERAGE_HTML_EXCEPTION
"
=
true
]]
;
then
echo
"EOXS_OPENSEARCH_GETCOVERAGE_HTML_EXCEPTION = True"
>>
pvs_instance/settings.py
fi
if
[[
"
$DEBUG
"
=
true
]]
;
then
echo
"DEBUG ON Setting functions"
echo
"MIDDLEWARE.append('pyinstrument.middleware.ProfilerMiddleware')"
>>
pvs_instance/settings.py
sed
-e
's/DEBUG = False/DEBUG = True/'
-i
pvs_instance/settings.py
fi
if
[[
"
$DEVELOPMENT
"
=
true
]]
;
then
echo
"DEVELOPMENT ON Setting functions"
echo
"MIDDLEWARE.append('pyinstrument.middleware.ProfilerMiddleware')"
>>
pvs_instance/settings.py
var
=
"import os
import sys
...
...
This diff is collapsed.
Click to expand it.
entrypoint.sh
+
0
−
1
View file @
7a525eed
...
...
@@ -4,7 +4,6 @@ shopt -s nullglob
SERVICES
=
${
WAIT_SERVICES
:
=
''
}
TIMEOUT
=
${
WAIT_TIMEOUT
:
=
'15'
}
DEBUG
=
${
DEVELOPMENT
:
=
"false"
}
if
[[
!
-z
$SERVICES
]]
;
then
for
service
in
$SERVICES
;
do
...
...
This diff is collapsed.
Click to expand it.
registrar/cli.py
+
2
−
2
View file @
7a525eed
...
...
@@ -65,7 +65,7 @@ def setup_logging(debug=False):
@click.option
(
"
--validate
"
,
is_flag
=
True
)
@click.option
(
"
--host
"
,
type
=
str
)
@click.option
(
"
--port
"
,
type
=
int
)
@click.option
(
"
--debug
"
,
is_flag
=
True
)
@click.option
(
"
--debug
/--no-debug
"
,
is_flag
=
True
)
@click.pass_context
def
cli
(
ctx
,
config_file
=
None
,
validate
=
False
,
host
=
None
,
port
=
None
,
debug
=
False
...
...
@@ -121,7 +121,7 @@ def daemon(ctx, replace=False):
@cli.command
(
help
=
"
Run a single, one-off registration
"
)
@click.argument
(
"
route_name
"
,
type
=
str
)
@click.argument
(
"
item
"
,
type
=
str
)
@click.option
(
"
--replace
"
,
is_flag
=
True
)
@click.option
(
"
--replace
/--no-replace
"
,
is_flag
=
True
)
@click.pass_context
def
register
(
ctx
,
route_name
,
item
,
replace
):
"""
Registers a single item.
...
...
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