-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
62 lines (47 loc) · 2.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Dockerfile for generating the ArchivesSpace application Docker image
#
# To build:
#
# docker build -t docker.lib.umd.edu/aspace:<VERSION> -f Dockerfile .
#
# where <VERSION> is the Docker image version to create.
# This Dockerfile is largely taken from
# https://github.com/archivesspace/archivesspace/blob/v3.1.0/Dockerfile
# and https://github.com/dartmouth-dltg/aspace-docker
FROM openjdk:8u265-jre
ENV LANG=C.UTF-8
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get -y install --no-install-recommends \
git \
wget \
unzip && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /apps/aspace && \
cd /apps/aspace && \
wget https://github.com/archivesspace/archivesspace/releases/download/v3.5.1/archivesspace-v3.5.1.zip -O archivesspace.zip && \
unzip archivesspace.zip && \
cd /apps/aspace/archivesspace && \
wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar -O mysql-connector-java-5.1.39.jar && \
mv mysql-connector-java-5.1.39.jar lib/
# Copy in archivesspace customizations from the "archivesspace" directory
COPY docker_config/archivesspace/archivesspace/ /apps/aspace/archivesspace
# Copy plugins customizations
COPY docker_config/archivesspace/files /apps/aspace/files
# Copy config files to
COPY docker_config/archivesspace/config /apps/aspace/config
# Copy plugins customizations
COPY docker_config/archivesspace/scripts /apps/aspace/scripts
# # Copy Solr files into /apps/aspace/archivesspace/solr, for Solr checksum verification
COPY docker_config/solr/conf /apps/aspace/archivesspace/solr
RUN groupadd -g 1000 aspace && \
useradd -l --create-home --uid 1000 --gid aspace aspace && \
chown -R aspace:aspace /apps
USER aspace
RUN cd /apps/aspace && \
chmod u+x archivesspace/docker-startup.sh && \
scripts/plugins.sh
# See archivesspace/config/config.rb for list of ports to export
EXPOSE 8080 8081 8083
# docker-startup script includes running /apps/aspace/archivesspace/scripts/setup-database.sh
CMD ["/apps/aspace/archivesspace/docker-startup.sh"]