Skip to content

Commit bd020e2

Browse files
vins01-4scienceatarix83
authored andcommitted
Merged in task/dspace-cris-2025_02_x/DSC-2745 (pull request DSpace#4115)
DSC-2745 Approved-by: Giuseppe Digilio
2 parents 27a6cfd + e93ce5f commit bd020e2

File tree

5 files changed

+55
-51
lines changed

5 files changed

+55
-51
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ ENV NODE_OPTIONS="--max_old_space_size=4096"
2121
# NOTE: At this time it is only possible to run Docker container in Production mode
2222
# if you have a public URL. See https://github.com/DSpace/dspace-angular/issues/1485
2323
ENV NODE_ENV=development
24+
ENV CI=true
25+
ENV NO_COLOR=1
2426
CMD npm run serve -- --host 0.0.0.0

Dockerfile.dependencies

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ ARG DOCKER_REGISTRY=docker.io
99
FROM docker.io/node:${NODE_VERSION-22}-alpine AS dependencies
1010

1111
# Install build dependencies
12-
RUN apk add --no-cache python3 make g++
12+
# RUN apk add --no-cache python3 make g++
1313

1414
WORKDIR /app
1515

1616
# Install dependencies (use npm ci if you have package-lock.json)
17-
COPY package.json yarn.lock ./
18-
RUN yarn install --frozen-lockfile --network-timeout 300000
17+
COPY package*.json ./
18+
19+
RUN --mount=type=cache,target=/root/.npm \
20+
npm ci

docker/cli.assetstore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ services:
1616
dspace-cli:
1717
environment:
1818
# This assetstore zip is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
19-
- LOADASSETS=https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/assetstore.tar.gz
19+
- LOADASSETS=https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2025.02.00/assetstore.tar.gz
2020
entrypoint:
2121
- /bin/bash
22-
- '-c'
22+
- "-c"
2323
- |
2424
if [ ! -z $${LOADASSETS} ]
2525
then

docker/db.entities.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ services:
1717
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2025_02_x}-loadsql"
1818
environment:
1919
# This LOADSQL should be kept in sync with the URL in 4Science/DSpace
20-
# This SQL is available from https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/db-entities.sql
20+
# This SQL is available from https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2025.02.00/db-entities.sql
2121
# NOTE: currently there is no dspace8 version
22-
- LOADSQL=https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/db-entities.sql
22+
- LOADSQL=https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2025.02.00/db-entities.sql
2323
dspace:
2424
### OVERRIDE default 'entrypoint' in 'docker-compose-rest.yml' ####
2525
# Ensure that the database is ready BEFORE starting tomcat
@@ -31,7 +31,7 @@ services:
3131
# 4. Finally, start DSpace
3232
entrypoint:
3333
- /bin/bash
34-
- '-c'
34+
- "-c"
3535
- |
3636
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
3737
/dspace/bin/dspace database migrate ignored

docker/docker-compose-ci.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,37 @@ services:
2626
dspace__P__server__P__url: http://127.0.0.1:8080/server
2727
dspace__P__ui__P__url: http://127.0.0.1:4000
2828
# db.url: Ensure we are using the 'dspacedb' image for our database
29-
db__P__url: 'jdbc:postgresql://dspacedb:5432/dspace'
29+
db__P__url: "jdbc:postgresql://dspacedb:5432/dspace"
3030
# solr.server: Ensure we are using the 'dspacesolr' image for Solr
3131
solr__P__server: http://dspacesolr:8983/solr
3232
# Tell Statistics to commit all views immediately instead of waiting on Solr's autocommit.
3333
# This allows us to generate statistics in e2e tests so that statistics pages can be tested thoroughly.
34-
solr__D__statistics__P__autoCommit: 'false'
34+
solr__D__statistics__P__autoCommit: "false"
3535
LOGGING_CONFIG: /dspace/config/log4j2-container.xml
3636
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris:${DSPACE_VER:-dspace-cris-2025_02_x}-test"
3737
depends_on:
38-
- dspacedb
38+
- dspacedb
3939
networks:
4040
- dspacenet
4141
ports:
42-
- published: 8080
43-
target: 8080
42+
- published: 8080
43+
target: 8080
4444
stdin_open: true
4545
tty: true
4646
volumes:
47-
- assetstore:/dspace/assetstore
47+
- assetstore:/dspace/assetstore
4848
# Ensure that the database is ready BEFORE starting tomcat
4949
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
5050
# 2. Then, run database migration to init database tables (including any out-of-order ignored migrations, if any)
5151
# 3. Finally, start DSpace
5252
entrypoint:
53-
- /bin/bash
54-
- '-c'
55-
- |
56-
/dspace/bin/dspace database repair
57-
/dspace/bin/dspace database migrate
58-
/dspace/bin/dspace database migrate ignored
59-
java -XX:+UseParallelGC -XX:MaxRAMPercentage=75 org.springframework.boot.loader.launch.JarLauncher
53+
- /bin/bash
54+
- "-c"
55+
- |
56+
/dspace/bin/dspace database repair
57+
/dspace/bin/dspace database migrate
58+
/dspace/bin/dspace database migrate ignored
59+
java -XX:+UseParallelGC -XX:MaxRAMPercentage=75 org.springframework.boot.loader.launch.JarLauncher
6060
# DSpace database container
6161
# NOTE: This is customized to use our loadsql image, so that we are using a database with existing test data
6262
dspacedb:
@@ -67,59 +67,59 @@ services:
6767
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
6868
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
6969
# NOTE: currently there is no dspace8 version
70-
LOADSQL: https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/db-entities.sql
70+
LOADSQL: https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2025.02.00/db-entities.sql
7171
PGDATA: /pgdata
7272
POSTGRES_DB: dspace
7373
POSTGRES_USER: dspace
7474
POSTGRES_PASSWORD: dspace
7575
networks:
7676
- dspacenet
7777
ports:
78-
- published: 5432
79-
target: 5432
78+
- published: 5432
79+
target: 5432
8080
stdin_open: true
8181
tty: true
8282
volumes:
83-
# Keep Postgres data directory between reboots
84-
- pgdata:/pgdata
83+
# Keep Postgres data directory between reboots
84+
- pgdata:/pgdata
8585
# DSpace Solr container
8686
dspacesolr:
8787
container_name: dspacesolr
8888
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-solr:${DSPACE_VER:-dspace-cris-2025_02_x}"
8989
networks:
9090
- dspacenet
9191
ports:
92-
- published: 8983
93-
target: 8983
92+
- published: 8983
93+
target: 8983
9494
stdin_open: true
9595
tty: true
9696
working_dir: /var/solr/data
9797
volumes:
98-
# Keep Solr data directory between reboots
99-
- solr_data:/var/solr/data
98+
# Keep Solr data directory between reboots
99+
- solr_data:/var/solr/data
100100
# Initialize all DSpace Solr cores using the mounted configsets (see above), then start Solr
101101
entrypoint:
102-
- /bin/bash
103-
- '-c'
104-
- |
105-
init-var-solr
106-
precreate-core authority /opt/solr/server/solr/configsets/authority
107-
cp -r /opt/solr/server/solr/configsets/authority/* authority
108-
precreate-core oai /opt/solr/server/solr/configsets/oai
109-
cp -r /opt/solr/server/solr/configsets/oai/* oai
110-
precreate-core search /opt/solr/server/solr/configsets/search
111-
cp -r /opt/solr/server/solr/configsets/search/* search
112-
precreate-core statistics /opt/solr/server/solr/configsets/statistics
113-
cp -r /opt/solr/server/solr/configsets/statistics/* statistics
114-
precreate-core qaevent /opt/solr/server/solr/configsets/qaevent
115-
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
116-
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
117-
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
118-
precreate-core dedup /opt/solr/server/solr/configsets/dedup
119-
cp -r /opt/solr/server/solr/configsets/dedup/* dedup
120-
precreate-core audit /opt/solr/server/solr/configsets/audit
121-
cp -r /opt/solr/server/solr/configsets/audit/* audit
122-
exec solr -f
102+
- /bin/bash
103+
- "-c"
104+
- |
105+
init-var-solr
106+
precreate-core authority /opt/solr/server/solr/configsets/authority
107+
cp -r /opt/solr/server/solr/configsets/authority/* authority
108+
precreate-core oai /opt/solr/server/solr/configsets/oai
109+
cp -r /opt/solr/server/solr/configsets/oai/* oai
110+
precreate-core search /opt/solr/server/solr/configsets/search
111+
cp -r /opt/solr/server/solr/configsets/search/* search
112+
precreate-core statistics /opt/solr/server/solr/configsets/statistics
113+
cp -r /opt/solr/server/solr/configsets/statistics/* statistics
114+
precreate-core qaevent /opt/solr/server/solr/configsets/qaevent
115+
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
116+
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
117+
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
118+
precreate-core dedup /opt/solr/server/solr/configsets/dedup
119+
cp -r /opt/solr/server/solr/configsets/dedup/* dedup
120+
precreate-core audit /opt/solr/server/solr/configsets/audit
121+
cp -r /opt/solr/server/solr/configsets/audit/* audit
122+
exec solr -f
123123
volumes:
124124
assetstore:
125125
pgdata:

0 commit comments

Comments
 (0)