-
Notifications
You must be signed in to change notification settings - Fork 79
/
Dockerfile_ibmjdk
22 lines (19 loc) · 1008 Bytes
/
Dockerfile_ibmjdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM maven:3.5.0-ibmjava-8-alpine
# Temporarily switching to ibm jave due to issue in openjdk-alpine:
# https://bugs.alpinelinux.org/issues/7372
#
# FROM maven:3.5.0-jdk-7-alpine
EXPOSE 8080
MAINTAINER Ilia Naryzhny ([email protected])
WORKDIR /tmp/src/
ADD . /tmp/src/
RUN mvn -P dockerbuild -s /usr/share/maven/ref/settings-docker.xml -pl !orienteer-archetype-war,!orienteer-archetype-jar,!orienteer-standalone,!orienteer-birt,!orienteer-bpm,!orienteer-camel,!orienteer-etl,!orienteer-taucharts,!orienteer-architect clean install && \
mkdir -p /app/runtime/ && \
mv orienteer-war/target/orienteer.war /app/ && \
mv target/jetty-runner.jar /app/ && \
cp orienteer.properties /app/ && \
rm -rf /tmp/src/ && \
ln -s /app/orienteer.war /app/active.war
WORKDIR /app/runtime/
VOLUME ["/app/runtime/"]
CMD ["java", "-server", "-DORIENTDB_HOME=/app/runtime", "-Dorientdb.url=plocal:databases/Orienteer", "-Dorienteer.loader.repository.local=/root/.m2/repository", "-jar", "../jetty-runner.jar", "../active.war"]