Skip to content

Commit 9ed9d63

Browse files
committed
Updated docker compose and aai.js to work properly with namespace and update docker compose files following current customisation.
1 parent b95ba37 commit 9ed9d63

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

docker/docker-compose-rest.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ services:
4040
db__P__url: 'jdbc:postgresql://dspacedb:543${INSTANCE}/dspace'
4141
# solr.server: Ensure we are using the 'dspacesolr' image for Solr
4242
solr__P__server: http://dspacesolr:898${INSTANCE}/solr
43-
# proxies.trusted.ipranges: This setting is required for a REST API running in Docker to trust requests
44-
# from the host machine. This IP range MUST correspond to the 'dspacenet' subnet defined above.
45-
proxies__P__trusted__P__ipranges: '172.2${INSTANCE}.0'
4643
#S3 config
4744
assetstore__P__index__P__primary: ${S3_STORAGE:-0}
4845
assetstore__P__s3__P__enabled: ${S3_ENABLED:-false}
@@ -63,11 +60,11 @@ services:
6360
# BE server port
6461
- published: 808${INSTANCE}
6562
target: 8080
66-
host_ip: 127.0.0.1
63+
host_ip: ${HOST_IP:-127.0.0.1}
6764
# original debug port
6865
- published: 800${INSTANCE}
6966
target: 8000
70-
host_ip: 127.0.0.1
67+
host_ip: ${HOST_IP:-127.0.0.1}
7168
# handle binary port as per https://www.handle.net/hnr_support.html (5th paragraph)
7269
- published: 264${INSTANCE}
7370
target: 2641
@@ -80,7 +77,8 @@ services:
8077
tty: true
8178
volumes:
8279
- dspace_logs:/dspace/log
83-
- assetstore:/dspace/assetstore
80+
- #assetstore:/dspace/assetstore
81+
- /opt/DATA/assetstore:/dspace/assetstore
8482
# Mount DSpace's solr configs to a volume, so that we can share to 'dspacesolr' container (see below)
8583
- solr_configs:/dspace/solr
8684
- handle_server:/dspace/handle-server
@@ -95,6 +93,7 @@ services:
9593
- '-c'
9694
- |
9795
while (!</dev/tcp/dspacedb/543${INSTANCE}) > /dev/null 2>&1; do sleep 1; done;
96+
pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ 'repository#server' && popd
9897
/dspace/bin/dspace database migrate force
9998
custom_run.sh
10099
/dspace/bin/start-handle-server
@@ -112,7 +111,7 @@ services:
112111
ports:
113112
- published: 543${INSTANCE}
114113
target: 543${INSTANCE}
115-
host_ip: 127.0.0.1
114+
host_ip: ${HOST_IP:-127.0.0.1}
116115
stdin_open: true
117116
tty: true
118117
volumes:
@@ -133,7 +132,7 @@ services:
133132
ports:
134133
- published: 898${INSTANCE}
135134
target: 898${INSTANCE}
136-
host_ip: 127.0.0.1
135+
host_ip: ${HOST_IP:-127.0.0.1}
137136
stdin_open: true
138137
tty: true
139138
working_dir: /var/solr/data
@@ -164,7 +163,7 @@ services:
164163
cp -r -u /opt/solr/server/solr/configsets/dspace/statistics/* statistics
165164
exec solr -p 898${INSTANCE} -f -m 4g
166165
volumes:
167-
assetstore:
166+
#assetstore:
168167
pgdata:
169168
solr_data:
170169
# Special volume used to share Solr configs from 'dspace' to 'dspacesolr' container (see above)

docker/docker-compose.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ services:
1717
TZ: ${TIMEZONE:-Europe/Bratislava}
1818
DSPACE_UI_SSL: 'false'
1919
DSPACE_UI_HOST: dspace-angular
20-
DSPACE_UI_PORT: 4000
21-
DSPACE_UI_NAMESPACE: /
20+
DSPACE_UI_PORT: ${UI_PORT:-4000}
21+
DSPACE_UI_NAMESPACE: ${DSPACE_UI_NAMESPACE:-/}
2222
DSPACE_REST_SSL: ${DSPACE_SSL:-false}
2323
DSPACE_REST_HOST: ${DSPACE_HOST:-localhost}
24-
DSPACE_REST_PORT: ${DSPACE_REST_PORT}
25-
DSPACE_REST_NAMESPACE: /server
24+
DSPACE_REST_PORT: ${DSPACE_REST_PORT:-8080}
25+
DSPACE_REST_NAMESPACE: ${DSPACE_REST_NAMESPACE:-/server}
2626
image: ${DSPACE_UI_IMAGE:-dataquest/dspace-angular:dspace-7_x}
2727
volumes:
2828
- ./config.prod.yml:/app/config/config.prod.yml
29+
- ./aai.js:/app/dist/browser/aai.js
2930
# - ./dspace-ui.json:/app/docker/dspace-ui.json:rw
3031
build:
3132
context: ..
@@ -36,9 +37,9 @@ services:
3637
ports:
3738
- published: 400${INSTANCE}
3839
target: 4000
39-
host_ip: 127.0.0.1
40+
host_ip: ${HOST_IP:-127.0.0.1}
4041
- published: 987${INSTANCE}
4142
target: 987${INSTANCE}
42-
host_ip: 127.0.0.1
43+
host_ip: ${HOST_IP:-127.0.0.1}
4344
stdin_open: true
4445
tty: true

src/aai/aai.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
function AAI() {
44
var host = 'https://' + window.location.hostname,
55
ourEntityID = host.match("lindat.mff.cuni.cz") ? "https://ufal-point.mff.cuni.cz" : host;
6-
var namespace = '';
6+
var namespace = 'repository';
77
this.defaults = {
88
//host : 'https://ufal-point.mff.cuni.cz',
99
host : host, //better default (useful when testing on ufal-point-dev)

0 commit comments

Comments
 (0)