Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaLactea
vlkb-soda
Commits
16219174
Commit
16219174
authored
8 months ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
splits docker build to soda & vlkb and removes rabbitmq from soda
parent
41640b0d
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
docker/Dockerfile.vlkb
+0
-0
0 additions, 0 deletions
docker/Dockerfile.vlkb
docker/Makefile
+6
-2
6 additions, 2 deletions
docker/Makefile
docker/entrypoint.sh.soda
+128
-0
128 additions, 0 deletions
docker/entrypoint.sh.soda
docker/entrypoint.sh.vlkb
+0
-0
0 additions, 0 deletions
docker/entrypoint.sh.vlkb
with
134 additions
and
2 deletions
docker/Dockerfile
→
docker/Dockerfile
.vlkb
+
0
−
0
View file @
16219174
File moved
This diff is collapsed.
Click to expand it.
docker/Makefile
+
6
−
2
View file @
16219174
...
@@ -31,8 +31,12 @@ ast-9.2.9.tar.gz:
...
@@ -31,8 +31,12 @@ ast-9.2.9.tar.gz:
.PHONY
:
build
.PHONY
:
build
build
:
build-soda
:
docker build
--build-arg
VLKB_VERSION
=
$(
VERSION
)
-t
soda
-f
Dockerfile .
docker build
--build-arg
VLKB_VERSION
=
$(
VERSION
)
-t
soda
-f
Dockerfile.soda .
build-vlkb
:
docker build
--build-arg
VLKB_VERSION
=
$(
VERSION
)
-t
vlkb
-f
Dockerfile.vlkb .
# the docker-login below needed a ca-cert(?) which in the middle of the certificate-chain,
# the docker-login below needed a ca-cert(?) which in the middle of the certificate-chain,
# but was not automatically downloaded and also local cert/ket pair(?) ->
# but was not automatically downloaded and also local cert/ket pair(?) ->
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh.soda
0 → 100755
+
128
−
0
View file @
16219174
#!/bin/bash
set
+e
LOG_FILE
=
/tmp/entrypoint.log
{
date
whoami
env
#########################################################################
echo
"run-time config (compose.yaml):"
echo
"SECURITY : "
$SECURITY
echo
"AUTH_DB_* : "
$AUTH_DB_URI
" ["
$AUTH_DB_SCHEMA
"] "
$AUTH_DB_USERNAME
" / "
$AUTH_DB_PASSWORD
echo
"ACCESS_CONTEXT_ROOT : "
$ACCESS_CONTEXT_ROOT
echo
"RESPONSE_FORMAT : "
$RESPONSE_FORMAT
echo
"URL_CUTOUTS : "
$URL_CUTOUTS
echo
"RESOLVER_DB_* : "
$RESOLVER_DB_URI
" ["
$RESOLVER_DB_SCHEMA
"] "
$RESOLVER_DB_USERNAME
" / "
$RESOLVER_DB_PASSWORD
echo
"VLKBOBSCORE_PG_URI : "
$VLKBOBSCORE_PG_URI
echo
"build-time config'd (Dockefile):"
echo
"INST_DIR : "
$INST_DIR
echo
"WEBAPP_DIR : "
$WEBAPP_DIR
echo
"JAVA_HOME : "
$JAVA_HOME
echo
"CATALINA_BASE : "
$CATALINA_BASE
echo
"CATALINA_HOME : "
$CATALINA_HOME
echo
"CATALINA_TMPDIR : "
$CATALINA_TMPDIR
#########################################################################
## configure vlkb-tools
if
test
-n
"
$VLKBOBSCORE_PG_URI
"
then
echo
"pg_uri=
$VLKBOBSCORE_PG_URI
"
>>
$INST_DIR
/etc/vlkb-obscore/datasets.conf
echo
"pg_schema=datasets"
>>
$INST_DIR
/etc/vlkb-obscore/datasets.conf
fi
## configure VLKB access
cp
$WEBAPP_DIR
/META-INF/context.xml
$CATALINA_BASE
/conf/Catalina/localhost/
$ACCESS_CONTEXT_ROOT
.xml
echo
"fits_path_surveys=/srv/surveys"
>
$WEBAPP_DIR
/WEB-INF/classes/cutout.properties
{
# write cutout.properties
case
$RESPONSE_FORMAT
in
application/fits
)
;;
"application/fits;createfile=yes"
)
echo
"default_response_format=
$RESPONSE_FORMAT
"
echo
"fits_path_cutouts=/srv/cutouts"
if
test
-n
"
$AMQP_QUEUE_NAME
"
then
QUEUE_NAME
=
dockervlkb
$AMQP_QUEUE_NAME
fi
;;
application/x-vlkb
*
)
echo
"default_response_format=
$RESPONSE_FORMAT
"
echo
"fits_path_cutouts=/srv/cutouts"
echo
"fits_url_cutouts=
$URL_CUTOUTS
"
echo
"surveys_metadata_abs_pathname=/srv/surveys/survey_populate.csv"
echo
"default_sky_system=GALACTIC"
echo
"default_spec_system=VELO_LSRK"
echo
"show_duration=yes"
if
test
-n
"
$AMQP_QUEUE_NAME
"
then
QUEUE_NAME
=
dockervlkb
$AMQP_QUEUE_NAME
fi
;;
esac
if
test
-n
"
$QUEUE_NAME
"
then
echo
"amqp_host_name=localhost"
echo
"amqp_port=5672"
echo
"amqp_routing_key=
$QUEUE_NAME
"
fi
if
test
-n
"
$RESOLVER_DB_URI
"
then
echo
"db_uri=
$RESOLVER_DB_URI
"
echo
"db_schema=
$RESOLVER_DB_SCHEMA
"
echo
"db_user_name=
$RESOLVER_DB_USERNAME
"
echo
"db_password=
$RESOLVER_DB_PASSWORD
"
fi
}
>>
$WEBAPP_DIR
/WEB-INF/classes/cutout.properties
if
test
-n
"
$QUEUE_NAME
"
then
service rabbitmq-server start
$INST_DIR
/bin/vlkbd_exec.sh localhost
$QUEUE_NAME
$INST_DIR
/etc/vlkbd/datasets.conf
fi
#### Security
case
$SECURITY
in
ia2token
)
cd
$WEBAPP_DIR
/WEB-INF/
&&
rm
-f
web.xml
&&
cp
web-cutout-
$SECURITY
.xml web.xml
&&
cd
-
cp
/etc/pki/tls/server-connector.xml /etc/tomcat9/
cp
/etc/pki/tls/auth
*
.properties
$WEBAPP_DIR
/WEB-INF/classes/
rm
-f
$WEBAPP_DIR
/WEB-INF/lib/jjwt-
*
0.12
*
.jar
;;
iamtoken
)
cd
$WEBAPP_DIR
/WEB-INF/
&&
rm
-f
web.xml
&&
cp
web-cutout-
$SECURITY
.xml web.xml
&&
cd
-
cp
/etc/pki/tls/server-connector.xml /etc/tomcat9/
cp
/etc/pki/tls/iamtoken.properties
$WEBAPP_DIR
/WEB-INF/classes/
rm
-f
$WEBAPP_DIR
/WEB-INF/lib/jjwt-
*
0.11
*
.jar
;;
*
)
echo
"Security not configured, runs open."
;;
esac
#########################################################################
date
}
1>
$LOG_FILE
2>&1
/usr/libexec/tomcat9/tomcat-start.sh &
wait
-n
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
→
docker/entrypoint.sh
.vlkb
+
0
−
0
View file @
16219174
File moved
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