Skip to content

Commit 318deba

Browse files
committed
[DSC-2256] Update Docker configurations for DSpace CRIS version 2025_02_x
1 parent 53e3bce commit 318deba

11 files changed

Lines changed: 34 additions & 32 deletions

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Ensure this job never runs on forked repos. It's only executed for '4science/dspace'
3030
if: github.repository == '4science/dspace-angular'
3131
# Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
32-
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
32+
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2025_02_x
3333
with:
3434
build_id: dspace-cris-angular-dependencies
3535
image_name: 4science/dspace-cris-angular-dependencies
@@ -46,7 +46,7 @@ jobs:
4646
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace-angular'
4747
if: github.repository == '4science/dspace-angular'
4848
# Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
49-
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
49+
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2025_02_x
5050
needs: dspace-cris-angular-dependencies
5151
with:
5252
build_id: dspace-cris-angular-dev
@@ -63,7 +63,7 @@ jobs:
6363
# Ensure this job never runs on forked repos. It's only executed for 'dspace/dspace-angular'
6464
if: github.repository == '4science/dspace-angular'
6565
# Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
66-
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2024_02_x
66+
uses: 4science/DSpace/.github/workflows/reusable-docker-build.yml@dspace-cris-2025_02_x
6767
# Must run after 'dspace-dependencies' job above
6868
needs: dspace-cris-angular-dependencies
6969
with:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# See https://github.com/DSpace/dspace-angular/tree/main/docker for usage details
33

44
ARG NODE_VERSION=22
5-
ARG DSPACE_VERSION=dspace-cris-2024_02_x
5+
ARG DSPACE_VERSION=dspace-cris-2025_02_x
66
ARG DOCKER_REGISTRY=docker.io
77

8-
FROM ${DOCKER_REGISTRY:-docker.io}/4science/dspace-cris-angular-dependencies:${DSPACE_VERSION:-dspace-cris-2024_02_x} AS dev
8+
FROM ${DOCKER_REGISTRY:-docker.io}/4science/dspace-cris-angular-dependencies:${DSPACE_VERSION:-dspace-cris-2025_02_x} AS dev
99

1010
WORKDIR /app
1111
ADD . /app/

Dockerfile.dependencies

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Test build:
2-
# docker build -f Dockerfile.dependencies -t 4science/dspace-cris-angular-dependencies:dspace-cris-2024_02_x .
2+
# docker build -f Dockerfile.dependencies -t 4science/dspace-cris-angular-dependencies:dspace-cris-2025_02_x .
33

44
# Angular 17 + Node 22 optimized Dockerfile
55
ARG NODE_VERSION=22
6-
ARG DSPACE_VERSION=dspace-cris-2024_02_x
6+
ARG DSPACE_VERSION=dspace-cris-2025_02_x
77
ARG DOCKER_REGISTRY=docker.io
88

99
FROM docker.io/node:${NODE_VERSION-22}-alpine AS dependencies

Dockerfile.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# See https://github.com/4science/dspace-angular/tree/main/docker for usage details
55

66
# Test build:
7-
# docker build -f Dockerfile.dist -t 4science/dspace-angular:dspace-cris-2024_02_x-dist .
7+
# docker build -f Dockerfile.dist -t 4science/dspace-angular:dspace-cris-2025_02_x-dist .
88

99
# Angular 17 + Node 22 optimized Dockerfile
1010
ARG NODE_VERSION=22
11-
ARG DSPACE_VERSION=dspace-cris-2024_02_x
11+
ARG DSPACE_VERSION=dspace-cris-2025_02_x
1212
ARG DOCKER_REGISTRY=docker.io
1313

14-
FROM ${DOCKER_REGISTRY:-docker.io}/4science/dspace-cris-angular-dependencies:${DSPACE_VERSION:-dspace-cris-2024_02_x} AS build
14+
FROM ${DOCKER_REGISTRY:-docker.io}/4science/dspace-cris-angular-dependencies:${DSPACE_VERSION:-dspace-cris-2025_02_x} AS build
1515

1616
COPY . /app/
1717

docker/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ the Docker compose scripts in this 'docker' folder.
2323
This Dockerfile is used to build a *development* DSpace-CRIS Angular UI image, published as '4science/dspace-cris-angular'
2424

2525
```
26-
docker build -t 4science/dspace-cris-angular:dspace-cris-2024_02_x .
26+
docker build -t 4science/dspace-cris-angular:dspace-cris-2025_02_x .
2727
```
2828

2929
This image is built *automatically* after each commit is made to the `main` branch.
3030

3131
Admins to our DockerHub repo can manually publish with the following command.
3232
```
33-
docker push 4science/dspace-cris-angular:dspace-cris-2024_02_x
33+
docker push 4science/dspace-cris-angular:dspace-cris-2025_02_x
3434
```
3535

3636
### Dockerfile.dist
@@ -39,7 +39,7 @@ The `Dockerfile.dist` is used to generate a *production* build and runtime envir
3939

4040
```bash
4141
# build the latest image
42-
docker build -f Dockerfile.dist -t 4science/dspace-cris-angular:dspace-cris-2024_02_x-dist .
42+
docker build -f Dockerfile.dist -t 4science/dspace-cris-angular:dspace-cris-2025_02_x-dist .
4343
```
4444

4545
A default/demo version of this image is built *automatically*.

docker/cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ networks:
2121
external: true
2222
services:
2323
dspace-cli:
24-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-cli:${DSPACE_VER:-dspace-cris-2024_02_x}"
24+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-cli:${DSPACE_VER:-dspace-cris-2025_02_x}"
2525
container_name: dspace-cli
2626
environment:
2727
# Below syntax may look odd, but it is how to override dspace.cfg settings via env variables.

docker/db.entities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# # Therefore, it should be kept in sync with that file
1515
services:
1616
dspacedb:
17-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2024_02_x}-loadsql"
17+
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
2020
# This SQL is available from https://github.com/4Science/DSpace-CRIS-Files/releases/download/cris-2024.02.00/db-entities.sql

docker/docker-compose-ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
# This allows us to generate statistics in e2e tests so that statistics pages can be tested thoroughly.
3434
solr__D__statistics__P__autoCommit: 'false'
3535
LOGGING_CONFIG: /dspace/config/log4j2-container.xml
36-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace}/dspace:${DSPACE_VER:-latest-test}"
36+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris:${DSPACE_VER:-dspace-cris-2025_02_x}-test"
3737
depends_on:
3838
- dspacedb
3939
networks:
@@ -53,19 +53,21 @@ services:
5353
- /bin/bash
5454
- '-c'
5555
- |
56-
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
56+
/dspace/bin/dspace database repair
57+
/dspace/bin/dspace database migrate
5758
/dspace/bin/dspace database migrate ignored
58-
java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
59+
java -XX:+UseParallelGC -XX:MaxRAMPercentage=75 org.springframework.boot.loader.launch.JarLauncher
5960
# DSpace database container
6061
# NOTE: This is customized to use our loadsql image, so that we are using a database with existing test data
6162
dspacedb:
6263
container_name: dspacedb
63-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace}/dspace-postgres-pgcrypto:${DSPACE_VER:-latest}-loadsql"
64+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2025_02_x}-loadsql"
6465
environment:
6566
# This LOADSQL should be kept in sync with the LOADSQL in
6667
# https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/db.entities.yml
6768
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
68-
LOADSQL: https://github.com/DSpace-Labs/AIP-Files/releases/download/demo-entities-data/dspace7-entities-data.sql
69+
# 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
6971
PGDATA: /pgdata
7072
POSTGRES_PASSWORD: dspace
7173
networks:
@@ -81,7 +83,7 @@ services:
8183
# DSpace Solr container
8284
dspacesolr:
8385
container_name: dspacesolr
84-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-dspace}/dspace-solr:${DSPACE_VER:-latest}"
86+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-solr:${DSPACE_VER:-dspace-cris-2025_02_x}"
8587
networks:
8688
- dspacenet
8789
ports:
@@ -93,10 +95,7 @@ services:
9395
volumes:
9496
# Keep Solr data directory between reboots
9597
- solr_data:/var/solr/data
96-
# NOTE: We are not running Solr as "root", but we need root permissions to copy our cores to the mounted
97-
# /var/solr/data directory. Then we start Solr as the "solr" user.
98-
user: root
99-
# Initialize all DSpace Solr cores, then start Solr
98+
# Initialize all DSpace Solr cores using the mounted configsets (see above), then start Solr
10099
entrypoint:
101100
- /bin/bash
102101
- '-c'
@@ -114,8 +113,11 @@ services:
114113
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
115114
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
116115
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
117-
chown -R solr:solr /var/solr
118-
runuser -u solr -- solr-foreground
116+
precreate-core dedup /opt/solr/server/solr/configsets/dedup
117+
cp -r /opt/solr/server/solr/configsets/dedup/* dedup
118+
precreate-core audit /opt/solr/server/solr/configsets/audit
119+
cp -r /opt/solr/server/solr/configsets/audit/* audit
120+
exec solr -f
119121
volumes:
120122
assetstore:
121123
pgdata:

docker/docker-compose-dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
DSPACE_REST_HOST: sandbox.dspace.org
2727
DSPACE_REST_PORT: 443
2828
DSPACE_REST_NAMESPACE: /server
29-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-angular:${DSPACE_VER:-dspace-cris-2024_02_x}-dist"
29+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-angular:${DSPACE_VER:-dspace-cris-2025_02_x}-dist"
3030
build:
3131
context: ..
3232
dockerfile: Dockerfile.dist

docker/docker-compose-rest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
# from the host machine. This IP range MUST correspond to the 'dspacenet' subnet defined above.
4141
proxies__P__trusted__P__ipranges: '172.23.0'
4242
LOGGING_CONFIG: /dspace/config/log4j2-container.xml
43-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris:${DSPACE_VER:-dspace-cris-2024_02_x}-test"
43+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris:${DSPACE_VER:-dspace-cris-2025_02_x}-test"
4444
depends_on:
4545
- dspacedb
4646
networks:
@@ -68,7 +68,7 @@ services:
6868
dspacedb:
6969
container_name: dspacedb
7070
# Uses a custom Postgres image with pgcrypto installed
71-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2024_02_x}"
71+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-postgres-pgcrypto:${DSPACE_VER:-dspace-cris-2025_02_x}"
7272
environment:
7373
PGDATA: /pgdata
7474
POSTGRES_PASSWORD: dspace
@@ -85,7 +85,7 @@ services:
8585
# DSpace Solr container
8686
dspacesolr:
8787
container_name: dspacesolr
88-
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-solr:${DSPACE_VER:-dspace-cris-2024_02_x}"
88+
image: "${DOCKER_REGISTRY:-docker.io}/${DOCKER_OWNER:-4science}/dspace-cris-solr:${DSPACE_VER:-dspace-cris-2025_02_x}"
8989
networks:
9090
- dspacenet
9191
ports:

0 commit comments

Comments
 (0)