Skip to content

Commit 4d00ec2

Browse files
committed
Hotfix for Dataverse HTTP URL - again. #180
1 parent b5f3d14 commit 4d00ec2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docker/dataverse-k8s/bin/bootstrap-job.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -euo pipefail
1212
# Include some sane defaults
1313
. ${SCRIPT_DIR}/default.config
1414
DATAVERSE_SERVICE_HOST=${DATAVERSE_SERVICE_HOST:-"dataverse"}
15-
DATAVERSE_SERVICE_PORT=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
15+
DATAVERSE_SERVICE_PORT_HTTP=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
1616
DATAVERSE_URL=${DATAVERSE_URL:-"http://${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT_HTTP}"}
1717
# The Solr Service IP is always available under its name within the same namespace.
1818
# If people want to use a different Solr than we normally deploy, they have the
@@ -45,7 +45,7 @@ psql -h ${POSTGRES_SERVER} -U ${POSTGRES_USER} ${POSTGRES_DATABASE} < ${HOME_DIR
4545
# 2) Initialize common data structures to make Dataverse usable
4646
cd ${HOME_DIR}/dvinstall
4747
# 2a) Patch load scripts with k8s based URL
48-
sed -i -e "s#localhost:8080#${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT}#" setup-*.sh
48+
sed -i -e "s#localhost:8080#${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT_HTTP}#" setup-*.sh
4949
# 2b) Patch user and root dataverse JSON with contact email
5050
sed -i -e "s#[email protected]#${CONTACT_MAIL}#" data/dv-root.json
5151
sed -i -e "s#[email protected]#${CONTACT_MAIL}#" data/user-admin.json

docker/dataverse-k8s/bin/config-job.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Fail on any error
88
set -euo pipefail
99
DATAVERSE_SERVICE_HOST=${DATAVERSE_SERVICE_HOST:-"dataverse"}
10-
DATAVERSE_SERVICE_PORT=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
10+
DATAVERSE_SERVICE_PORT_HTTP=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
1111
DATAVERSE_URL=${DATAVERSE_URL:-"http://${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT_HTTP}"}
1212

1313
echo -e "\nRunning configuration job for Dataverse at ${DATAVERSE_URL}."

docker/dataverse-k8s/bin/metadata-update.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Fail on any error
77
set -euo pipefail
88
DATAVERSE_SERVICE_HOST=${DATAVERSE_SERVICE_HOST:-"dataverse"}
9-
DATAVERSE_SERVICE_PORT=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
9+
DATAVERSE_SERVICE_PORT_HTTP=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
1010
DATAVERSE_URL=${DATAVERSE_URL:-"http://${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT_HTTP}"}
1111

1212
SOLR_SERVICE_HOST=${SOLR_SERVICE_HOST:-"solr"}

docker/solr-k8s/schema/init.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
set -uo pipefail
55

66
DATAVERSE_SERVICE_HOST=${DATAVERSE_SERVICE_HOST:-"dataverse"}
7-
DATAVERSE_SERVICE_PORT=${DATAVERSE_SERVICE_PORT:-"8080"}
8-
DATAVERSE_URL=${DATAVERSE_URL:-"http://${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT}"}
7+
DATAVERSE_SERVICE_PORT_HTTP=${DATAVERSE_SERVICE_PORT_HTTP:-"8080"}
8+
DATAVERSE_URL=${DATAVERSE_URL:-"http://${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT_HTTP}"}
99
SOLR_URL="http://localhost:8983"
1010
TARGET="/schema"
1111

0 commit comments

Comments
 (0)