@@ -7,10 +7,12 @@ ARG ARCHIVESSPACE_VERSION="v3.3.1"
77ARG ARCHIVESSPACE_USER_UID="40052"
88ARG ARCHIVESSPACE_USER_GID="40052"
99ARG DWO_PLUGIN_VERSION="v1.13"
10+ ARG MT_PLUGIN_VERSION="v1.5"
1011ARG MYSQL_CONNECTOR_VERSION="8.0.23"
1112
1213ENV ARCHIVESSPACE_LOGS="/dev/null"
1314ENV 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"
1416ENV ARCHIVESSPACE_SOURCE_URL="https://github.com/archivesspace/archivesspace/releases/download/${ARCHIVESSPACE_VERSION}/archivesspace-${ARCHIVESSPACE_VERSION}.zip"
1517ENV DEBIAN_FRONTEND="noninteractive"
1618ENV 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
5970FROM 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.
7591COPY --chown=root:archivesspace docker-entrypoint.sh /bin/docker-entrypoint.sh
7692RUN chmod ug+x /bin/docker-entrypoint.sh
0 commit comments