-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default Dockerfile, based on Dockerfile-base-ubuntu
- Loading branch information
Philipp Potisk
committed
Jan 22, 2020
1 parent
93f1d71
commit ff384be
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Dockerfile for universalresolver/base-ubuntu | ||
|
||
FROM ubuntu:18.04 | ||
MAINTAINER Markus Sabadello <markus@danubetech.com> | ||
|
||
USER root | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y --no-install-recommends openjdk-8-jdk-headless maven git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ | ||
ENV PATH $JAVA_HOME/bin:$PATH | ||
|
||
# build dependencies | ||
|
||
RUN cd /opt/ && git clone https://github.com/decentralized-identity/did-common-java.git | ||
RUN cd /opt/did-common-java/ && mvn clean install -DskipTests | ||
|
||
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:get -DrepoUrl=https://repo.maven.apache.org/maven2 -Dartifact=org.eclipse.jetty:jetty-maven-plugin:9.4.18.v20190429 | ||
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:get -DrepoUrl=https://repo.maven.apache.org/maven2 -Dartifact=org.apache.maven.plugins:maven-war-plugin:3.2.2 | ||
|
||
# build driver | ||
|
||
ADD ./resolver/java/ /opt/uni-resolver-java | ||
|
||
RUN cd /opt/uni-resolver-java && mvn clean install -N -DskipTests && mvn clean && \ | ||
cd /opt/uni-resolver-java/uni-resolver-core && mvn clean install -N -DskipTests && mvn clean && \ | ||
cd /opt/uni-resolver-java/driver && mvn clean install -N -DskipTests && mvn clean |