-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (25 loc) · 1.03 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
FROM centos/systemd
MAINTAINER "Karima Rafes" <karima.rafes@gmail.com>
#update the server
RUN yum -y update; yum clean all;
# Java
ARG JAVA_VERSION=1.8.0
RUN yum install -y java-$JAVA_VERSION-openjdk-devel git which
ENV JAVA_HOME /usr/lib/jvm/java
# Maven
ARG MAVEN_VERSION=3.8.1
ENV MAVEN_HOME /usr/share/maven
RUN mkdir -p $MAVEN_HOME /usr/share/maven/ref \
&& curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \
| tar -xzC $MAVEN_HOME --strip-components=1 \
&& ln -s $MAVEN_HOME/bin/mvn /usr/bin/mvn
ARG branch_blazegraph=BLAZEGRAPH_2_1_6_RC
RUN git clone --depth 1 -b $branch_blazegraph --single-branch https://github.com/blazegraph/database.git /opt/blazegraph \
&& cd /opt/blazegraph \
&& ./scripts/mavenInstall.sh
COPY startBlazegraphConfigTest.sh /opt/blazegraph/scripts
RUN chmod +x /opt/blazegraph/scripts/startBlazegraphConfigTest.sh
COPY blazegraph.service /etc/systemd/system
RUN systemctl enable blazegraph
EXPOSE 80
CMD ["/usr/sbin/init"]