Skip to content

Commit 3a419b7

Browse files
committed
Merge remote-tracking branch 'dspace/main' into accessibility-settings-main
2 parents b9e2ec1 + 0180b63 commit 3a419b7

File tree

231 files changed

+3515
-3813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+3515
-3813
lines changed

.eslintrc.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"eslint-plugin-rxjs",
1313
"eslint-plugin-simple-import-sort",
1414
"eslint-plugin-import-newlines",
15-
"eslint-plugin-jsonc",
1615
"dspace-angular-ts",
1716
"dspace-angular-html"
1817
],
@@ -303,10 +302,13 @@
303302
"*.json5"
304303
],
305304
"extends": [
306-
"plugin:jsonc/recommended-with-jsonc"
305+
"plugin:jsonc/recommended-with-json5"
307306
],
308307
"rules": {
309-
"no-irregular-whitespace": "error",
308+
// The ESLint core no-irregular-whitespace rule doesn't work well in JSON
309+
// See: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html
310+
"no-irregular-whitespace": "off",
311+
"jsonc/no-irregular-whitespace": "error",
310312
"no-trailing-spaces": "error",
311313
"jsonc/comma-dangle": [
312314
"error",

docker/docker-compose-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ services:
9393
volumes:
9494
# Keep Solr data directory between reboots
9595
- solr_data:/var/solr/data
96-
# Initialize all DSpace Solr cores using the mounted configsets (see above), then start Solr
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
97100
entrypoint:
98101
- /bin/bash
99102
- '-c'
@@ -111,7 +114,8 @@ services:
111114
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
112115
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
113116
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
114-
exec solr -f
117+
chown -R solr:solr /var/solr
118+
runuser -u solr -- solr-foreground
115119
volumes:
116120
assetstore:
117121
pgdata:

docker/docker-compose-rest.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,16 @@ services:
9797
volumes:
9898
# Keep Solr data directory between reboots
9999
- solr_data:/var/solr/data
100+
# NOTE: We are not running Solr as "root", but we need root permissions to copy our cores to the mounted
101+
# /var/solr/data directory. Then we start Solr as the "solr" user.
102+
user: root
100103
# Initialize all DSpace Solr cores using the mounted local configsets (see above), then start Solr
101104
# * First, run precreate-core to create the core (if it doesn't yet exist). If exists already, this is a no-op
102105
# * Second, copy configsets to this core:
103106
# Updates to Solr configs require the container to be rebuilt/restarted:
104107
# `docker compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d --build dspacesolr`
108+
# * Third, ensure all new folders are owned by "solr" user
109+
# * Finally, start Solr as the "solr" user via the provided solr-foreground script
105110
entrypoint:
106111
- /bin/bash
107112
- '-c'
@@ -119,7 +124,8 @@ services:
119124
cp -r /opt/solr/server/solr/configsets/qaevent/* qaevent
120125
precreate-core suggestion /opt/solr/server/solr/configsets/suggestion
121126
cp -r /opt/solr/server/solr/configsets/suggestion/* suggestion
122-
exec solr -f
127+
chown -R solr:solr /var/solr
128+
runuser -u solr -- solr-foreground
123129
volumes:
124130
assetstore:
125131
pgdata:

0 commit comments

Comments
 (0)