-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.1 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
FROM ubuntu:trusty
MAINTAINER Mark Cooper <[email protected]>
ENV ARCHIVESSPACE_REPOSITORY https://github.com/archivesspace/archivesspace.git
ENV ARCHIVESSPACE_DB_TYPE demo
ENV ARCHIVESSPACE_DB_NAME archivesspace
ENV ARCHIVESSPACE_DB_USER archivesspace
ENV ARCHIVESSPACE_DB_PASS archivesspace
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
git \
mysql-client \
openjdk-7-jre-headless \
wget \
unzip
RUN wget http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.24/mysql-connector-java-5.1.24.jar
RUN mkdir -p /source
RUN git clone $ARCHIVESSPACE_REPOSITORY /source/archivesspace
# PROCESS BUILD
WORKDIR /source/archivesspace
RUN ./scripts/build_release -t
RUN mv ./*.zip /
RUN rm -rf /source
# UNPACK BUILD
WORKDIR /
RUN unzip /*.zip -d /
RUN rm /*.zip
RUN rm -rf /archivesspace/plugins/*
RUN chmod 755 /archivesspace/archivesspace.sh
# FINALIZE SETUP
RUN cp /mysql-connector-java-5.1.24.jar /archivesspace/lib/
ADD plugins/ /archivesspace/plugins
ADD setup.sh /setup.sh
RUN chmod u+x /*.sh
EXPOSE 8080 8081 8089 8090
CMD ["/setup.sh"]