Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docker-compose/dynamic-mapping/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
PROJECT_DIR_NAME=dynamic-mapping
COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=griddynamicmapping
COMPOSE_FILE=docker-compose.override.yml:../docker-compose.base.yml:../study/docker-compose.override.yml:../technical/docker-compose.technical.yml
Expand Down
8 changes: 0 additions & 8 deletions docker-compose/explicit-profiles/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
PROJECT_STUDY_DIR_NAME=study
PROJECT_DYNAMIC_MAPPING_DIR_NAME=dynamic-mapping
PROJECT_SUITE_DIR_NAME=suite
DATABASE_PREFIX_NAME=
#PROJECT_DIR_NAME: use "explicit-profiles" for this env with dynamic profiles, and not "study"/"suite" values because our scripts
# will block postgres container if geo-data-server container is not started (because the user explicitly chose other profiles)
# and the PROJECT_DIR_NAME is one of those values
PROJECT_DIR_NAME=explicit-profiles
COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=grid
COMPOSE_FILE=../docker-compose.base.yml:../study/docker-compose.override.yml:../dynamic-mapping/docker-compose.override.yml:../technical/docker-compose.technical.yml:../monitor/docker-compose.override.yml
2 changes: 0 additions & 2 deletions docker-compose/monitor/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
PROJECT_DIR_NAME=monitor
PROJECT_STUDY_DIR_NAME=monitor
COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=gridmonitor
COMPOSE_FILE=docker-compose.override.yml:../docker-compose.base.yml:../dynamic-mapping/docker-compose.override.yml:../study/docker-compose.override.yml:../technical/docker-compose.technical.yml
Expand Down
5 changes: 3 additions & 2 deletions docker-compose/study/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PROJECT_DIR_NAME=study
PROJECT_STUDY_DIR_NAME=study
SHOULD_INIT_GEO_DATA=true
SHOULD_INIT_LINES_CATALOG=true

COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=gridstudy
COMPOSE_FILE=docker-compose.override.yml:../docker-compose.base.yml:../dynamic-mapping/docker-compose.override.yml:../technical/docker-compose.technical.yml
Expand Down
5 changes: 3 additions & 2 deletions docker-compose/suite/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PROJECT_DIR_NAME=suite
PROJECT_SUITE_DIR_NAME=suite
SHOULD_INIT_GEO_DATA=true
SHOULD_INIT_LINES_CATALOG=true

COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=gridsuite
COMPOSE_FILE=docker-compose.marker.yml:../docker-compose.base.yml:../study/docker-compose.override.yml:../dynamic-mapping/docker-compose.override.yml:../technical/docker-compose.technical.yml
Expand Down
3 changes: 0 additions & 3 deletions docker-compose/technical/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
PROJECT_STUDY_DIR_NAME=study
PROJECT_SUITE_DIR_NAME=suite
PROJECT_DIR_NAME=technical
COMPOSE_PATH_SEPARATOR=:
COMPOSE_PROJECT_NAME=gridtechnical
COMPOSE_FILE=docker-compose.technical.yml
6 changes: 4 additions & 2 deletions docker-compose/technical/init-geo-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

function curl_()
{
curl -f -s -o /dev/null -H "Content-Type: application/json" "$@"
curl --noproxy '*' -f -s -o /dev/null -H "Content-Type: application/json" "$@"
}

function init_geo_data()
Expand All @@ -17,7 +17,9 @@ function init_geo_data()
([ ! -f "$FILE_LINES" ] || curl_ -d@$FILE_LINES http://geo-data-server/v1/lines)
}

if [ "$PROJECT_DIR_NAME" == "$PROJECT_STUDY_DIR_NAME" ] || [ "$PROJECT_DIR_NAME" == "$PROJECT_SUITE_DIR_NAME" ]
SHOULD_INIT_GEO_DATA="${SHOULD_INIT_GEO_DATA:-false}"

if [ "SHOULD_INIT_GEO_DATA" = "true" ]
then
until init_geo_data
do
Expand Down
6 changes: 4 additions & 2 deletions docker-compose/technical/init-lines-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ function init_lines_catalog()
{
LINES_CATALOG=/init-data/lines-catalog.json.gz
if [ -f $LINES_CATALOG ]; then
curl -X 'POST' -f -s -o /dev/null 'http://network-modification-server/v1/network-modifications/catalog/line_types' -F "file=@${LINES_CATALOG}"
curl -X 'POST' --noproxy '*' -f -s -o /dev/null 'http://network-modification-server/v1/network-modifications/catalog/line_types' -F "file=@${LINES_CATALOG}"
fi
}

if [ "$PROJECT_DIR_NAME" == "$PROJECT_STUDY_DIR_NAME" ] || [ "$PROJECT_DIR_NAME" == "$PROJECT_SUITE_DIR_NAME" ]
SHOULD_INIT_LINES_CATALOG="${SHOULD_INIT_LINES_CATALOG:-false}"

if [ "SHOULD_INIT_LINES_CATALOG" = "true" ]
then
until init_lines_catalog
do
Expand Down