-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
18 lines (14 loc) · 960 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM centos:6.6
ENV JAVA_VERSION_MAJOR=8 \
JAVA_VERSION_MINOR=171 \
JAVA_VERSION_BUILD=11 \
JAVA_URL_HASH=512cd62ec5174c3487ac17c61aaa89e8
RUN yum install -y wget && \
wget -q --no-cookies --no-check-certificate \
--header 'Cookie:oraclelicense=accept-securebackup-cookie' \
"http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_URL_HASH}/jre-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm" && \
yum install -y jre-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.rpm && rm -f jre-*.rpm && yum clean all
COPY mci-api/build/distributions/mci-*.noarch.rpm /tmp/mci.rpm
RUN yum install -y /tmp/mci.rpm && rm -f /tmp/mci.rpm && yum clean all
COPY env/docker_mci /etc/default/mci
ENTRYPOINT . /etc/default/mci && java -jar /opt/mci/lib/mci-schema-*.jar && java -Dserver.port=$MCI_PORT -DMCI_LOG_LEVEL=$MCI_LOG_LEVEL -jar /opt/mci/lib/mci-api.war