Skip to content

Commit 5fd9aab

Browse files
Update namespace config and docker compose files (#730)
* Updated docker compose and aai.js to work properly with `namespace` and update docker compose files following current customisation. * Added doc and undo one removal because it is not needed to remove * Removed two IT: (#737) 1. Author does not have a two input fields. 2. Test for checking the notice step will be transformed into UI test, because we do not want to keep such specific collection for generic IT.
1 parent b95ba37 commit 5fd9aab

File tree

4 files changed

+17
-35
lines changed

4 files changed

+17
-35
lines changed

cypress/e2e/submission-ui.cy.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,6 @@ describe('Create a new submission', () => {
230230
createItemProcess.showErrorNotSupportedLicense();
231231
});
232232

233-
// Author field should consist of two input fields
234-
it('Author field should consist of two input fields', {
235-
retries: {
236-
runMode: 6,
237-
openMode: 6,
238-
},
239-
defaultCommandTimeout: 10000
240-
},() => {
241-
createItemProcess.checkAuthorFirstnameField();
242-
createItemProcess.checkAuthorLastnameField();
243-
});
244-
245233
it('The submission should not have the Notice Step', {
246234
retries: {
247235
runMode: 6,
@@ -261,16 +249,6 @@ describe('Create a new submission in the clariah collection', () => {
261249
// This page is restricted, so we will be shown the login form. Fill it out & submit.
262250
cy.loginViaForm(TEST_ADMIN_USER, TEST_ADMIN_PASSWORD);
263251
});
264-
265-
it('The submission should have the Notice Step', {
266-
retries: {
267-
runMode: 6,
268-
openMode: 6,
269-
},
270-
defaultCommandTimeout: 10000
271-
},() => {
272-
createItemProcess.checkClarinNoticeStep();
273-
});
274252
});
275253

276254
function addEUSponsor(euSponsorOrder) {

docker/docker-compose-rest.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ services:
6363
# BE server port
6464
- published: 808${INSTANCE}
6565
target: 8080
66-
host_ip: 127.0.0.1
66+
host_ip: ${HOST_IP:-127.0.0.1}
6767
# original debug port
6868
- published: 800${INSTANCE}
6969
target: 8000
70-
host_ip: 127.0.0.1
70+
host_ip: ${HOST_IP:-127.0.0.1}
7171
# handle binary port as per https://www.handle.net/hnr_support.html (5th paragraph)
7272
- published: 264${INSTANCE}
7373
target: 2641
@@ -80,7 +80,8 @@ services:
8080
tty: true
8181
volumes:
8282
- dspace_logs:/dspace/log
83-
- assetstore:/dspace/assetstore
83+
- #assetstore:/dspace/assetstore
84+
- /opt/DATA/assetstore:/dspace/assetstore
8485
# Mount DSpace's solr configs to a volume, so that we can share to 'dspacesolr' container (see below)
8586
- solr_configs:/dspace/solr
8687
- handle_server:/dspace/handle-server
@@ -95,6 +96,7 @@ services:
9596
- '-c'
9697
- |
9798
while (!</dev/tcp/dspacedb/543${INSTANCE}) > /dev/null 2>&1; do sleep 1; done;
99+
pushd ../webapps && unlink server && ln -s /dspace/webapps/server/ 'repository#server' && popd
98100
/dspace/bin/dspace database migrate force
99101
custom_run.sh
100102
/dspace/bin/start-handle-server
@@ -112,7 +114,7 @@ services:
112114
ports:
113115
- published: 543${INSTANCE}
114116
target: 543${INSTANCE}
115-
host_ip: 127.0.0.1
117+
host_ip: ${HOST_IP:-127.0.0.1}
116118
stdin_open: true
117119
tty: true
118120
volumes:
@@ -133,7 +135,7 @@ services:
133135
ports:
134136
- published: 898${INSTANCE}
135137
target: 898${INSTANCE}
136-
host_ip: 127.0.0.1
138+
host_ip: ${HOST_IP:-127.0.0.1}
137139
stdin_open: true
138140
tty: true
139141
working_dir: /var/solr/data
@@ -164,7 +166,8 @@ services:
164166
cp -r -u /opt/solr/server/solr/configsets/dspace/statistics/* statistics
165167
exec solr -p 898${INSTANCE} -f -m 4g
166168
volumes:
167-
assetstore:
169+
# Commented out because there are a lot of files in the assetstore
170+
#assetstore:
168171
pgdata:
169172
solr_data:
170173
# Special volume used to share Solr configs from 'dspace' to 'dspacesolr' container (see above)

docker/docker-compose.yml

Lines changed: 7 additions & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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)