Skip to content

Commit ec37387

Browse files
Gets 4.1.1 working
1 parent 82f522b commit ec37387

File tree

12 files changed

+51
-289
lines changed

12 files changed

+51
-289
lines changed

.dockerignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.env
2-
data
2+
.git
3+
.github
4+
.gitignore
5+
db/dumps/*
6+
!db/dumps/.keep
37
init

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
APPCONFIG_DB_URL=jdbc:mysql://db:3306/archivesspace?useUnicode=true&characterEncoding=UTF-8&user=archivesspace&password=archivesspace
2+
ARCHIVESSPACE_VERSION="v4.1.1"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.env
2+
db/*
3+
~db/.keep
24
data
35
init

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# BASE Stage
44
FROM ubuntu:noble AS base
55

6-
ARG ARCHIVESSPACE_VERSION="v4.1.0"
6+
ARG ARCHIVESSPACE_VERSION="v4.1.1"
77
ARG ARCHIVESSPACE_USER_UID="40052"
88
ARG ARCHIVESSPACE_USER_GID="40052"
9-
ARG DWO_PLUGIN_VERSION="v1.13"
9+
ARG DWO_PLUGIN_VERSION="v2.1"
1010
ARG MT_PLUGIN_VERSION="v1.5"
1111
ARG MYSQL_CONNECTOR_VERSION="9.5.0"
1212

@@ -73,7 +73,7 @@ FROM base AS final
7373
COPY --from=aspace --chown=root:archivesspace /opt/app /opt/app
7474

7575
# Copy in our custom config files
76-
COPY --chown=root:archivesspace files/config/config.rb /opt/app/config/config.rb
76+
# COPY --chown=root:archivesspace files/config/config.rb /opt/app/config/config.rb
7777
COPY --chown=root:archivesspace files/plugins/local/frontend/assets/images/* /opt/app/plugins/local/frontend/assets/images/
7878
COPY --chown=root:archivesspace files/plugins/local/frontend/locales/en.rb /opt/app/plugins/local/frontend/locales/en.rb
7979

@@ -88,8 +88,7 @@ COPY --from=material_types --chown=root:archivesspace \
8888
/opt/app/plugins/material_types
8989

9090
# Install the entrypoint script.
91-
COPY --chown=root:archivesspace docker-entrypoint.sh /bin/docker-entrypoint.sh
92-
RUN chmod ug+x /bin/docker-entrypoint.sh
91+
COPY --chown=root:archivesspace --chmod=ug+x files/docker-entrypoint.sh /bin/docker-entrypoint.sh
9392
ENTRYPOINT ["/bin/docker-entrypoint.sh"]
9493

9594
USER archivesspace

docker-compose.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
22
app: &services_app
3-
build: .
3+
build:
4+
context: .
5+
args: &aspace-build-args
6+
- ARCHIVESSPACE_VERSION=${ARCHIVESSPACE_VERSION:-v4.1.1}
47
user: root
58
ports:
69
- 8080:8080
@@ -51,8 +54,10 @@ services:
5154
restart: on-failure
5255

5356
solr:
54-
image: solr:9.10
55-
command: solr-precreate archivesspace archivesspace
57+
build:
58+
context: solr
59+
args: *aspace-build-args
60+
command: solr-precreate archivesspace
5661
environment:
5762
# @see https://docs.archivesspace.org/provisioning/solr/#setup-the-environment
5863
- SOLR_MODULES=analysis-extras
@@ -62,8 +67,7 @@ services:
6267
ports:
6368
- 8983:8983
6469
volumes:
65-
- ./solr/conf:/opt/solr/server/solr/configsets/archivesspace/conf:ro
66-
- ./solr/data:/var/solr/data
70+
- solr_data:/var/solr
6771
healthcheck:
6872
test: curl --max-time 10 -f http://localhost:8983/solr/#/~cores/archivesspace || exit 1
6973
start_period: 10s
@@ -81,9 +85,12 @@ services:
8185
- MYSQL_PASSWORD=archivesspace
8286
ports:
8387
- 3306:3306
88+
secrets:
89+
- source: root-my.cnf
90+
target: /root/.my.cnf
8491
volumes:
92+
- ./db/dumps:/docker-entrypoint-initdb.d:ro
8593
- db_data:/var/lib/mysql
86-
- ./init:/docker-entrypoint-initdb.d
8794

8895
configs:
8996
config.rb:
@@ -94,6 +101,8 @@ configs:
94101
secrets:
95102
APPCONFIG_DB_URL:
96103
environment: APPCONFIG_DB_URL
104+
root-my.cnf:
105+
file: files/root-my.cnf
97106

98107
volumes:
99108
aspace_data: {}

files/root-my.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[client]
2+
user = root
3+
password = archivesspace-root

solr/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM solr:9
2+
3+
ARG ARCHIVESSPACE_VERSION="v4.1.1"
4+
ENV ARCHIVESSPACE_SOURCE_URL="https://github.com/archivesspace/archivesspace/releases/download/${ARCHIVESSPACE_VERSION}/archivesspace-${ARCHIVESSPACE_VERSION}.zip"
5+
6+
# Upgrade system packages and install wget
7+
USER root
8+
RUN apt-get -y update && \
9+
apt-get -y upgrade && \
10+
apt-get -y install --no-install-recommends \
11+
unzip \
12+
wget && \
13+
rm -rf /var/lib/apt/lists/*
14+
15+
# Create a configset for the given ASpace release
16+
RUN mkdir -p /opt/solr/server/solr/configsets/archivesspace/conf && \
17+
wget -O aspace.zip "$ARCHIVESSPACE_SOURCE_URL" && \
18+
unzip aspace.zip 'archivesspace/solr/*' && \
19+
mv archivesspace/solr/* /opt/solr/server/solr/configsets/archivesspace/conf/ && \
20+
rm -rf aspace.zip archivesspace
21+
USER solr

solr/conf/schema.xml

Lines changed: 0 additions & 218 deletions
This file was deleted.

solr/conf/solrconfig.xml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)