forked from folio-org/mod-copycat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 960 Bytes
/
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
FROM folioci/alpine-jre-openjdk11:latest
USER root
RUN apk add --no-cache swig openjdk11 maven \
bison gnutls-dev libxslt-dev libxml2-dev make build-base git
# Compile yaz (there's no apk package for it)
USER folio
RUN curl -s https://ftp.indexdata.com/pub/yaz/yaz-5.30.3.tar.gz |tar xzf -
RUN cd yaz-5.30.3 && ./configure --prefix=/usr --disable-static --enable-shared && make
# Install yaz
USER root
RUN cd yaz-5.30.3 && make install
# Compile yaz4j
USER folio
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
RUN git clone https://github.com/indexdata/yaz4j.git
RUN cd yaz4j && git checkout v1.6.0 && mvn compile
# install yaz4j
USER root
RUN cp yaz4j/target/native/libyaz4j.so /usr/lib/
ENV VERTICLE_FILE mod-copycat-fat.jar
# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles
# Copy your fat jar to the container
COPY target/${VERTICLE_FILE} ${VERTICLE_HOME}/${VERTICLE_FILE}
# Expose this port locally in the container.
EXPOSE 8081