Skip to content

Commit fbaa042

Browse files
author
David Zuckerman
authored
Merge pull request #6 from BerkeleyLibrary/material_types
Added material_types plugin
2 parents d667ff3 + c903187 commit fbaa042

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ ARG ARCHIVESSPACE_VERSION="v3.3.1"
77
ARG ARCHIVESSPACE_USER_UID="40052"
88
ARG ARCHIVESSPACE_USER_GID="40052"
99
ARG DWO_PLUGIN_VERSION="v1.13"
10+
ARG MT_PLUGIN_VERSION="v1.5"
1011
ARG MYSQL_CONNECTOR_VERSION="8.0.23"
1112

1213
ENV ARCHIVESSPACE_LOGS="/dev/null"
1314
ENV ARCHIVESSPACE_PLUGIN_DWO_URL="https://github.com/hudmol/digitization_work_order/archive/refs/tags/${DWO_PLUGIN_VERSION}.zip"
15+
ENV ARCHIVESSPACE_PLUGIN_MT_URL="https://github.com/hudmol/material_types/archive/refs/tags/${MT_PLUGIN_VERSION}.zip"
1416
ENV ARCHIVESSPACE_SOURCE_URL="https://github.com/archivesspace/archivesspace/releases/download/${ARCHIVESSPACE_VERSION}/archivesspace-${ARCHIVESSPACE_VERSION}.zip"
1517
ENV DEBIAN_FRONTEND="noninteractive"
1618
ENV LANG="C.UTF-8"
@@ -54,6 +56,15 @@ RUN wget -O digitization_work_order.zip "$ARCHIVESSPACE_PLUGIN_DWO_URL" && \
5456
/opt/app/scripts/initialize-plugin.sh digitization_work_order && \
5557
rm -f digitization_work_order.zip
5658

59+
# ============================================================
60+
# Install the Material Types plugin
61+
FROM aspace AS material_types
62+
WORKDIR /tmp
63+
RUN wget -O material_types.zip "$ARCHIVESSPACE_PLUGIN_MT_URL" && \
64+
unzip material_types.zip && \
65+
mv material_types-* /opt/app/plugins/material_types && \
66+
rm -f material_types.zip
67+
5768
# ============================================================
5869
# FINAL Stage
5970
FROM base AS final
@@ -71,6 +82,11 @@ COPY --from=digitization_work_order --chown=root:archivesspace \
7182
/opt/app/plugins/digitization_work_order \
7283
/opt/app/plugins/digitization_work_order
7384

85+
# Copy the built Materials Type plugin
86+
COPY --from=material_types --chown=root:archivesspace \
87+
/opt/app/plugins/material_types \
88+
/opt/app/plugins/material_types
89+
7490
# Install the entrypoint script.
7591
COPY --chown=root:archivesspace docker-entrypoint.sh /bin/docker-entrypoint.sh
7692
RUN chmod ug+x /bin/docker-entrypoint.sh

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ services:
3232
#APPCONFIG_FRONTEND_BRANDING_IMG: "assets/images/banner_logo.png"
3333
- APPCONFIG_FRONTEND_BRANDING_IMG=assets/images/aspace_lit_development.png
3434
- APPCONFIG_FRONTEND_BRANDING_IMG_ALT_TEXT=ArchivesSpace Local Development Logo
35-
- APPCONFIG_PLUGINS_OVERRIDE=local,lcnaf,digitization_work_order
35+
- APPCONFIG_PLUGINS_OVERRIDE=local,lcnaf,digitization_work_order,material_types
3636
- APPCONFIG_ENABLE_PUBLIC=false
3737
- APPCONFIG_SOLR_URL=http://solr:8983/solr/archivesspace
3838
- APPCONFIG_SOLR_VERIFY_CHECKSUMS=false

0 commit comments

Comments
 (0)