Skip to content

Commit 06fb628

Browse files
milanmajchrakDavide NegrettialexandrevryghemYanaDePauwcorrado lombardi
committed
tul/merge-into-clarin-dspace (#316) (#317)
* tul/merge-into-clarin-dspace (#316) * [CST-7757] Show object name * 98855: Remove temp themed ng-content container This is problematic when ng-content is provided but it's not used * [CST-7221] Opaque search bar * [CST-7757] Minor fixes * [CST-7757] Labels renamed * [CST-7755] updated PR to latest REST changes * 97298: Added form validator tests for restricted domains * 99053: Invalidate cache by default when performing the WorkflowItemActionPageComponent action * 99053: Added DeclinedTask search result banner * 99053: Fixed AdvancedWorkflowActionRatingComponent's rating from validation * 99053: Added missing documentation * [TLC-380] Support browse links and regex links in metadata display (resolved conflicts jan 2023) * [TLC-380] Lint fixes * [TLC-380] Lint fixes * [TLC-380] Unit test (provider injection) fixes (resolved conflict jan 16) * [TLC-380] lint fix * [TLC-380] further browse link unit test fixes (waitForAsync) * [TLC-380] Refactor browse links to use new /browses endpoint * [TLC-249] Fix circular dependency in browse services * [TLC-249] Larger refactor to field, item components for browse links * [TLC-249] Lint fixes * [TLC-249] Lint fixes * [TLC-380] Fix mock service to return proper payload * [TLC-380] Simplify / strip browse service from components * [TLC-380] Lint fixes for mock browse def service * [TLC-380] Template link, spec test, doc fixup as per review * [TLC-380] Refactor metadata rep list comp after rebase * [TLC-380] Lint fixes * [TLC-380] Template link fixes, spec test fixes Correct use of routerLink and queryParams Removed unused method from browse service, specs New spec tests for MetadataRepresentationListElementComponent * [TLC-380] Lint fixes on spec test * [TLC-380] Fix item page field test to supply router * [TLC-249] Show Identifier Step angular 7.x * [TLC-249] Remove CRIS7 visibility refs from component, i18n * [TLC-249] Lint fixes * [TLC-249] LGTM unused import fixes * [TLC-249] Register DOI operation and button in item status page * [TLC-249] Linting * [TLC-337] Unit tests for register DOI component * [TLC-249] Lint fixes * [TLC-249] Update data service usage since rebasing * [TLC-249] Update data service usage since rebasing * [TLC-249] Ensure identifier data model mapped to type * [TLC-249] Update spec test for new config form data service * [TLC-249] Addressing review feedback Adding comments and tidying some comments, imports Expect text for status not integer Send a 'type' parameter with a DOI registration Rename item-status.register to registerDOI As per todonohue's feedback on 2022-01-18 * [TLC-249] Addressing review feedback #2 Update WorkspaceitemSectionIdentifiersObject model to include a display types string array, so identifier types can be included or excluded from the step as needed. Update section template to work with the above new data As per todonohue's feedback on 2022-01-18 * [TLC-249] Lint fixes (imports, quotes) * [TLC-249] Improve model of identifier data in workspace section * [TLC-249] Update en.json5 with DOI status labels * [TLC-249] Identifier mock data updated in unit test * [TLC-249] Identifier mock data updated in unit test * [TLC-380] Renaming, changes as per review feedback * [TLC-380] WIP trying new routing / create flow * [TLC-380] Refactor to use new endpoints, better naming * [TLC-380] Refactor to use new endpoints, better naming * [TLC-249] Attempting art's sub fix (doesn't work) * [TLC-249] Update item status button logic to avoid nested subs * [TLC-249] Lint * [TLC-249] Fix import typo (from merge conflict) * [TLC-249] Further test fixes * Retrieve the XSRF token first, and set it as both the XSRF header and cookie * Fix direct CSR By moving from environment.ts to config.yml we made it so the environment is _not_ up to date with the server configuration when main.js is first loaded. Because of this the app behaved as if CSR always happened _after_ SSR, effectively breaking direct CSR. Here the "criterion" for SSR/non-SSR HTML is changed from the related configuration property to the presence of Angular Universal transfer state. This means we can correctly determine when to bootstrap the app for direct CSR, and it's' now "safe" to just send index.html by itself. * Fix lint and test issues * Add "debug" config and "allowStale" configs * Add done() to async tests * 99053: Added test to check that the TYPE_REQUEST_FORGOT doesn't use the authentication-password.domain.valid * 97732 Remove unnecessary subscriptions * [CST-7757] subscriptions data service tests * Fixed text (without HTML tags) not being passed to child components * Fixed default @input() values not working for themed components * [CST-7757] subscription modal tests * [CST-7757] modal fixes * [CST-7757] modal fixes * [CST-7217] Add margins to better align badge * [CST-7757] Hide delete info for new subscriptions and fix issue with unavailable items * Keep SSL sessions alive between xhr2 requests * [CST-7755] added cancel button to modal and updated message returned when a supervision order already exists * [CST-7755] lint fix * Fix bug where allowStale couldn't be disabled * 99053: Removed ngx-bootstrap dependency * 99053: Fixed encoded parameters being encoded twice in WorkflowItemActionPageComponent.previousPage() * 99053: Passed previousSearchQuery to AdvancedWorkflowActionSelectReviewerComponent * 99053: Passed previousSearchQuery to AdvancedWorkflowActionSelectReviewerComponent * 99053: Pass all queryParameters to advanced workflow pages by default * 99053: Save queryParams in init to prevent them being overwritten * Bump http-cache-semantics from 4.1.0 to 4.1.1 Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/kornelski/http-cache-semantics/releases) - [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1) --- updated-dependencies: - dependency-name: http-cache-semantics dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * [CST-7755] WIP refactoring * [CST-7757] Missing label * fixed issue in browser console * [CST-7755] WIP revert changes on list components * [CST-7757] Fix delete message * [CST-7755] Complete refactoring * Fix for "cannot read properties of undefined" error * [CST-8914] Add flag to show/hide csv export button * src/assets/i18n: Improve English strings for file upload Simple improvement to the wording in the file upload section of the item submission form. Also add a period at the end of the string. Fixes: DSpace#2096 * [CST-8935] Fix issue with missing matcher providers * translation fixes in security form * remove minimum passwort length value from translated messages * fixed missing comma * added comma to default translation * suggestionOption.name displayed * [CST-8952] Fix issue with admin reset password functionality * avoiding console.log errors * Fix param to send user the forgot password email * Update version tag for release * Fixed a lot of compilation errors, but there is a need to refactor services. * Added yarn.lock * Fixed some service updates * Fixed some service updates * Solved some errors, but it is still not working. * Something starting to work - the problem is in loading the modules * Updated database testing dump for integration tests * Fixed unit tests * Fixed admin menu * Fixed lint issues * Fixed handle page circular dependency * Fixed AuthorNameLink circular dependency * Fixed compilation errors * Fixed failing Unit tests * Integration tests should take image `migrate-to-7.5` * Integration tests should take image `migrate-to-7.5` * revert docker-compose-ci.yml changes * Updated BE envs * Changed localhost to 127.0.0.1 * Added DSPACE_UI_HOST and DSPACE_UI_PORT to 127.0.0.1:4000 * Changed logging in the IT * Fixed login * Maybe fixed integration tests * Copied a new code from the actual dtq-dev * Fixed discojuice login pop up * added S3 config to docker-compose-rest.yml * Fixed IT * Integration tests should not fail on console log error. * Removed failing test what is not needed. * SUbmitter user changed to admin * Commenteed failing tests. * added values for S3 to cli.yml * Added flags into discojuice * Added flags into discojuice * Added another icons into discojuice * discoPath is cleared in the discojuice.js * Create migrate-docker.yml to create docker image * create tag migrate-to-7.5 * Fixed some shibboleth problems * Fixed problem during downloading restricted bitstreams. * Disabled end user agreement page with footer options (#220) * Full customization for TUL (#217) * customize header, footer and homepage * add hover on button and contact us in the footer * add hover for logo and fix UI * transform into valina page and apply the hover style for the link * change search page into Vanila space default * fix exapandable navbar item behaviour * change the background of side admin bar and hide some options of it * replace dspace logo with tul logo * fix gray border of button * add new component for CitacePRO and handle with dynamic data from item object * fix merged issues * make the url as the constant value * hide the clarin license * add description into en.json5 * change the position of the citation and edit test * retrieve the constants from the BE * change the fixed value * calling new API from BE * remove privacy policy in the footer * add new page without content * create content for the contact page and add text in i18n for translation * receive email property from BE and add,fix unit tests * edit the href for contact page * change the fetch address --------- Co-authored-by: HieuHorizonsfl <huynhnhatkhoa21@gmail.com> Co-authored-by: HieuHorizonsfl <105620951+HieuHorizonsfl@users.noreply.github.com> Co-authored-by: HuynhKhoa1601 <89246737+HuynhKhoa1601@users.noreply.github.com> * Tul/fixing (#225) * customize header, footer and homepage * add hover on button and contact us in the footer * add hover for logo and fix UI * transform into valina page and apply the hover style for the link * change search page into Vanila space default * fix exapandable navbar item behaviour * change the background of side admin bar and hide some options of it * replace dspace logo with tul logo * fix gray border of button * add new component for CitacePRO and handle with dynamic data from item object * fix merged issues * make the url as the constant value * hide the clarin license * add description into en.json5 * change the position of the citation and edit test * retrieve the constants from the BE * change the fixed value * calling new API from BE * remove privacy policy in the footer * add new page without content * create content for the contact page and add text in i18n for translation * receive email property from BE and add,fix unit tests * edit the href for contact page * change the fetch address --------- Co-authored-by: HieuHorizonsfl <huynhnhatkhoa21@gmail.com> Co-authored-by: HieuHorizonsfl <105620951+HieuHorizonsfl@users.noreply.github.com> Co-authored-by: HuynhKhoa1601 <89246737+HuynhKhoa1601@users.noreply.github.com> * Internal/multideploy support 2 (#240) * fixed deployment values for TUL customer * added DSPACE_VER * actually append to the .env file * remove automatic deploy * unify erasing db * fix correct branch in call after erase_db * add redeploy to dev-5 -> curl call to deploy action * forgotten " in github action * correct redeploy branch in github action * trigger docker images on correct branch * added password env var (#258) * added non-amazon params (#261) * Tul/customize fe (#254) * Disabled end user agreement page with footer options * Added padding to icon * If the citacePro properties is not defined in the BE, do not throw the errors * Added dtq sign into footer * Dataquest URL is loaded from the cfg * Load the company name which has customized this DSpace from the cfg * Updated Home News page header * Prettify the code * Update deploy.yml * Update build.yml * Update build.yml * Update docker-compose-ci.yml Updated dump for the integration tests * Added purple into .btn-dark class (#263) * Internal/update and secure docker compose (#269) * added timezone * added IP spec to all open ports on prod docker-composes * removed now-false disclaimer about similarity to backend docker composes * removed redundant host parameter in Dockerfile * changed port on which to expect REST * make envinronment production * revert to serve for now * revert to serve for now * typo * revert run command in dockerfile * no need to run on host 0.0.0.0 * needed due to upgrade to docker compose v2 * tul/login-case-sensitive * port change (so as not to expose 8086) * tul/turn-off-language-translations * Show error message from the error response (#275) * Tul/fix integration tests (#276) * Fixed admin spec IT - TUL doesn't have supported /licenses and /handle * Commented out test class `submission-ui` because it is suitable only for the CLARIN-DSpace * Commented out CLARIN license step for the submission IT * Changed klaro cookies modal styles according to TUL requirements. (#288) * tul/after_test-3-badge-color (#289) * Updated badge color * badge style rule moved for the _clarin-styles.scss * Fixed conflicts * Removed thumbnail message (#290) * tul/after_test-6-underlined-links (#291) * All links are underlined except buttons, facet filters and nav links. * Fixed ugly coflicts * tul/after_test-8-navbar-gasps * Updated topLevelCommunityList pagination (#293) * tul/13-add-czech-language (#272) * Added CLARIN-DSpace-7.2. czech language * Added script to find out which messages must be translated. * Updated czech login message because text was too big * Keep allowed only EN and CZ language * Updated new czech translations * Updated new czech translations * "Sbírka" translated to "Kolekce" * Updated final version of czech translation * Revert "Updated final version of czech translation" This reverts commit 0261c85. * Revert "Revert "Updated final version of czech translation"" This reverts commit 644cfaa. * Merged customer/TUL files * pretyfied python script file * Tul/13 add czech language (#297) * Added CLARIN-DSpace-7.2. czech language * Added script to find out which messages must be translated. * Updated czech login message because text was too big * Keep allowed only EN and CZ language * Updated new czech translations * Updated new czech translations * "Sbírka" translated to "Kolekce" * Updated final version of czech translation * Revert "Updated final version of czech translation" This reverts commit 0261c85. * Revert "Revert "Updated final version of czech translation"" This reverts commit 644cfaa. * Merged customer/TUL files * pretyfied python script file * Updated some messages * modified to production config (#296) * added dummy local.cfg and set up docker-compose (#278) * tul/after_test-9-set-up-banner (#294) * Updated topLevelCommunityList pagination * Prepared home-page for a banner * Banner in the top * Refactoring * Updated TUL favicon (#300) * tul/fix-wrong-favicon (#302) * Updated message and favicon icon * trying to fix ssr github action error * Added deleted favicon.ico * revert language changes * revert language changes * revert language changes * Changed Domov message * Removed DSpace Angular :: message * Removed DSpace Angular :: message * Updated prefix DSpace * Customer/tul wrong dockerfile missing pm2 (#304) * added pm2 * forgot pm2, of course * customer/TUL-mount-prod-cfg-2 * 7 pm2 nodes (#313) * 7 pm2 nodes * mistake fix * tul/show-doi (#315) * Show DOI full link in the identifier field in the item view. * Just prettify * Fixed failing test * Just prettify --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Davide Negretti <davide.negretti@4science.it> Co-authored-by: Alexandre Vryghem <alexandre@atmire.com> Co-authored-by: Yana De Pauw <yana@atmire.com> Co-authored-by: corrado lombardi <corrado.lombardi@4science.com> Co-authored-by: Tim Donohue <tim.donohue@lyrasis.org> Co-authored-by: Marie Verdonck <maria.verdonck@atmire.com> Co-authored-by: Kim Shepherd <kim@shepherd.nz> Co-authored-by: Art Lowel <art.lowel@gmail.com> Co-authored-by: Yury Bondarenko <ybnd@tuta.io> Co-authored-by: Nathan Buckingham <nathan.buckingham@atmire.com> Co-authored-by: Koen Pauwels <koen.pauwels@atmire.com> Co-authored-by: Giuseppe Digilio <giuseppe.digilio@4science.it> Co-authored-by: Agustina Martinez <am857@cam.ac.uk> Co-authored-by: Pascal-Nicolas Becker <pnbecker@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cris <cristian.guzman.contacto@gmail.com> Co-authored-by: Alan Orth <alan.orth@gmail.com> Co-authored-by: Sascha Szott <szott@gmx.de> Co-authored-by: MajoBerger <marian.berger@dataquest.sk> Co-authored-by: HieuHorizonsfl <huynhnhatkhoa21@gmail.com> Co-authored-by: HieuHorizonsfl <105620951+HieuHorizonsfl@users.noreply.github.com> Co-authored-by: HuynhKhoa1601 <89246737+HuynhKhoa1601@users.noreply.github.com> Co-authored-by: MajoBerger <88670521+MajoBerger@users.noreply.github.com> * pretiffy commit * Git revert unwanted changes * temp commit * Updated dtq-dev * Fixed removing of empty row * Added forgotten functionalities into clarin merge * Fixed review requirements * removed unwanted tests * Updated help script comment * Updated test image for FE integration tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Davide Negretti <davide.negretti@4science.it> Co-authored-by: Alexandre Vryghem <alexandre@atmire.com> Co-authored-by: Yana De Pauw <yana@atmire.com> Co-authored-by: corrado lombardi <corrado.lombardi@4science.com> Co-authored-by: Tim Donohue <tim.donohue@lyrasis.org> Co-authored-by: Marie Verdonck <maria.verdonck@atmire.com> Co-authored-by: Kim Shepherd <kim@shepherd.nz> Co-authored-by: Art Lowel <art.lowel@gmail.com> Co-authored-by: Yury Bondarenko <ybnd@tuta.io> Co-authored-by: Nathan Buckingham <nathan.buckingham@atmire.com> Co-authored-by: Koen Pauwels <koen.pauwels@atmire.com> Co-authored-by: Giuseppe Digilio <giuseppe.digilio@4science.it> Co-authored-by: Agustina Martinez <am857@cam.ac.uk> Co-authored-by: Pascal-Nicolas Becker <pnbecker@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: cris <cristian.guzman.contacto@gmail.com> Co-authored-by: Alan Orth <alan.orth@gmail.com> Co-authored-by: Sascha Szott <szott@gmx.de> Co-authored-by: MajoBerger <marian.berger@dataquest.sk> Co-authored-by: HieuHorizonsfl <huynhnhatkhoa21@gmail.com> Co-authored-by: HieuHorizonsfl <105620951+HieuHorizonsfl@users.noreply.github.com> Co-authored-by: HuynhKhoa1601 <89246737+HuynhKhoa1601@users.noreply.github.com> Co-authored-by: MajoBerger <88670521+MajoBerger@users.noreply.github.com>
1 parent eef127f commit 06fb628

36 files changed

+568
-42
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Build
77
on:
88
push:
99
branches:
10-
- dtq-dev-7.5
10+
- dtq-dev
1111
pull_request:
1212

1313
permissions:
@@ -20,7 +20,7 @@ jobs:
2020
# The ci step will test the dspace-angular code against DSpace REST.
2121
# Direct that step to utilize a DSpace REST service that has been started in docker.
2222
# Spin up UI on 127.0.0.1 to avoid host resolution issues in e2e tests with Node 18+
23-
DSPACE_CI_IMAGE: 'dataquest/dspace:dtq-dev-7.5-test'
23+
DSPACE_CI_IMAGE: 'dataquest/dspace:dspace-7_x-test'
2424
DSPACE_REST_HOST: 127.0.0.1
2525
DSPACE_REST_PORT: 8080
2626
DSPACE_REST_NAMESPACE: '/server'

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo DSPACE_UI_IMAGE="dataquest/dspace-angular:dtq-dev-7.5" >> .env.dev-5
2929
echo DSPACE_VER="dtq-dev-7.5" >> .env.dev-5
3030
echo INSTANCE=5 >> .env.dev-5
31-
31+
3232
echo S3_STORAGE=1 >> .env.dev-5
3333
echo S3_ENABLED=true >> .env.dev-5
3434
echo S3_RELATIVE_PATH=true >> .env.dev-5

.github/workflows/erase_db.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
restart_db:
8-
env:
8+
env:
99
INSTANCE: 5
1010
runs-on: dspace-dep-1
1111
steps:
@@ -17,11 +17,11 @@ jobs:
1717
docker stop dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE
1818
docker rm dspacedb$INSTANCE dspace$INSTANCE dspace-angular$INSTANCE
1919
- name: remove volumes
20-
if: '!cancelled()'
20+
if: 'false'
2121
run: |
2222
docker volume rm dspace-${{env.INSTANCE}}_pgdata dspace-${{env.INSTANCE}}_assetstore
2323
- name: redeploy
2424
if: 'false'
2525
run: |
26-
curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" --request POST https://api.github.com/repos/dataquest-dev/dspace-angular/actions/workflows/deploy.yml/dispatches --data "{\"ref\":\"refs/heads/dtq-dev-7.5\"}"
27-
26+
curl -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${{ secrets.DEPLOY_DEV5_GH_ACTION_DISPATCH }}" --request POST https://api.github.com/repos/dataquest-dev/dspace-angular/actions/workflows/deploy.yml/dispatches --data "{\"ref\":\"refs/heads/dtq-dev\"}"
27+

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ RUN yarn install --network-timeout 300000
1818
# Listen / accept connections from all IP addresses.
1919
# NOTE: At this time it is only possible to run Docker container in Production mode
2020
# if you have a public IP. See https://github.com/DSpace/dspace-angular/issues/1485
21-
CMD yarn serve --host 0.0.0.0
21+
RUN apk add tzdata
22+
RUN yarn build:prod
23+
RUN npm install pm2 -g
24+
CMD /bin/sh -c "pm2 start dspace-ui.json && pm2 logs"

config/config.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,79 @@ rest:
33
host: localhost
44
port: 8080
55
nameSpace: /server
6+
7+
8+
info:
9+
# Whether the end user agreement is required before users may use the repository.
10+
# If enabled, the user will be required to accept the agreement before they can use the repository.
11+
# If disabled, the page will not exist and no agreement is required to use the repository
12+
enableEndUserAgreement: false
13+
# Whether the privacy statement should exist or not.
14+
enablePrivacyStatement: false
15+
16+
# Keep only English language
17+
languages:
18+
- code: en
19+
label: English
20+
active: true
21+
- code: ca
22+
label: Català
23+
active: false
24+
- code: cs
25+
label: Čeština
26+
active: true
27+
- code: de
28+
label: Deutsch
29+
active: false
30+
- code: es
31+
label: Español
32+
active: false
33+
- code: fr
34+
label: Français
35+
active: false
36+
- code: gd
37+
label: Gàidhlig
38+
active: false
39+
- code: lv
40+
label: Latviešu
41+
active: false
42+
- code: hu
43+
label: Magyar
44+
active: false
45+
- code: nl
46+
label: Nederlands
47+
active: false
48+
- code: pl
49+
label: Polski
50+
active: false
51+
- code: pt-PT
52+
label: Português
53+
active: false
54+
- code: pt-BR
55+
label: Português do Brasil
56+
active: false
57+
- code: fi
58+
label: Suomi
59+
active: false
60+
- code: sv
61+
label: Svenska
62+
active: false
63+
- code: tr
64+
label: Türkçe
65+
active: false
66+
- code: kk
67+
label: Қазақ
68+
active: false
69+
- code: bn
70+
label: বাংলা
71+
active: false
72+
- code: hi
73+
label: हिंदी
74+
active: false
75+
- code: el
76+
label: Ελληνικά
77+
active: false
78+
- code: uk
79+
label: Yкраї́нська
80+
active: false
81+

docker/cli.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,14 @@
66
# http://www.dspace.org/license/
77
#
88

9-
#
10-
# This is a copy of the docker-compose-cli.yml that is available in the DSpace/DSpace
11-
# (Backend) at:
12-
# https://github.com/DSpace/DSpace/blob/main/docker-compose-cli.yml
13-
#
14-
# Therefore, it should be kept in sync with that file
159
version: "3.7"
1610

1711
services:
1812
dspace-cli:
1913
image: "${DOCKER_OWNER:-dataquest}/dspace-cli:${DSPACE_VER:-dspace-7_x}"
2014
container_name: dspace-cli
2115
environment:
16+
TZ: ${TIMEZONE:-Europe/Bratislava}
2217
# Below syntax may look odd, but it is how to override dspace.cfg settings via env variables.
2318
# See https://github.com/DSpace/DSpace/blob/main/dspace/config/config-definition.xml
2419
# __P__ => "." (e.g. dspace__P__dir => dspace.dir)

docker/docker-compose-rest.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
restart: unless-stopped
2020
container_name: dspace${INSTANCE}
2121
environment:
22+
TZ: ${TIMEZONE:-Europe/Bratislava}
2223
# Below syntax may look odd, but it is how to override dspace.cfg settings via env variables.
2324
# See https://github.com/DSpace/DSpace/blob/main/dspace/config/config-definition.xml
2425
# __P__ => "." (e.g. dspace__P__dir => dspace.dir)
@@ -51,14 +52,17 @@ services:
5152
ports:
5253
- published: 808${INSTANCE}
5354
target: 8080
55+
host_ip: 127.0.0.1
5456
- published: 800${INSTANCE}
5557
target: 8000
58+
host_ip: 127.0.0.1
5659
stdin_open: true
5760
tty: true
5861
volumes:
5962
- assetstore:/dspace/assetstore
6063
# Mount DSpace's solr configs to a volume, so that we can share to 'dspacesolr' container (see below)
6164
- solr_configs:/dspace/solr
65+
- ./local.cfg:/dspace/config/local.cfg
6266
# Ensure that the database is ready BEFORE starting tomcat
6367
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
6468
# 2. Then, run database migration to init database tables
@@ -75,6 +79,7 @@ services:
7579
restart: unless-stopped
7680
container_name: dspacedb${INSTANCE}
7781
environment:
82+
TZ: ${TIMEZONE:-Europe/Bratislava}
7883
PGDATA: /pgdata
7984
POSTGRES_PASSWORD: dspace
8085
image: dspace/dspace-postgres-pgcrypto
@@ -83,13 +88,16 @@ services:
8388
ports:
8489
- published: 543${INSTANCE}
8590
target: 543${INSTANCE}
91+
host_ip: 127.0.0.1
8692
stdin_open: true
8793
tty: true
8894
volumes:
8995
- pgdata:/pgdata
9096
command: -p 543${INSTANCE}
9197
# DSpace Solr container
9298
dspacesolr:
99+
environment:
100+
TZ: ${TIMEZONE:-Europe/Bratislava}
93101
restart: unless-stopped
94102
container_name: dspacesolr${INSTANCE}
95103
# Uses official Solr image at https://hub.docker.com/_/solr/
@@ -102,6 +110,7 @@ services:
102110
ports:
103111
- published: 898${INSTANCE}
104112
target: 898${INSTANCE}
113+
host_ip: 127.0.0.1
105114
stdin_open: true
106115
tty: true
107116
working_dir: /var/solr/data

docker/docker-compose.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
# http://www.dspace.org/license/
77
#
88

9-
# Docker Compose for running the DSpace Angular UI for testing/development
10-
# Requires also running a REST API backend (either locally or remotely),
11-
# for example via 'docker-compose-rest.yml'
129
version: '3.7'
1310
networks:
1411
dspacenet:
@@ -17,6 +14,7 @@ services:
1714
restart: unless-stopped
1815
container_name: dspace-angular${INSTANCE}
1916
environment:
17+
TZ: ${TIMEZONE:-Europe/Bratislava}
2018
DSPACE_UI_SSL: 'false'
2119
DSPACE_UI_HOST: dspace-angular
2220
DSPACE_UI_PORT: 400${INSTANCE}
@@ -26,6 +24,8 @@ services:
2624
DSPACE_REST_PORT: 808${INSTANCE}
2725
DSPACE_REST_NAMESPACE: /server
2826
image: ${DSPACE_UI_IMAGE:-dataquest/dspace-angular:dspace-7_x}
27+
volumes:
28+
- ./config.prod.yml:/app/config/config.prod.yml
2929
build:
3030
context: ..
3131
dockerfile: Dockerfile
@@ -34,7 +34,9 @@ services:
3434
ports:
3535
- published: 400${INSTANCE}
3636
target: 400${INSTANCE}
37+
host_ip: 127.0.0.1
3738
- published: 987${INSTANCE}
3839
target: 987${INSTANCE}
40+
host_ip: 127.0.0.1
3941
stdin_open: true
4042
tty: true

docker/local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This is a sample config file. Replace with production local.cfg to be mounted into docker.

dspace-ui.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"apps": [
3+
{
4+
"name": "dspace-ui",
5+
"cwd": "/app",
6+
"script": "dist/server/main.js",
7+
"instances": "7",
8+
"exec_mode": "cluster",
9+
"node_args": "--max_old_space_size=4096",
10+
"env": {
11+
"NODE_ENV": "production",
12+
"DSPACE_REST_SSL": "true",
13+
"DSPACE_REST_HOST": "dspace.tul.cz",
14+
"DSPACE_REST_PORT": "443",
15+
"DSPACE_REST_NAMESPACE": "/server"
16+
}
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)