-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (19 loc) · 1.23 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
FROM resin/armv7hf-debian
MAINTAINER Shaun Mulligan <[email protected]>
RUN apt-get update && apt-get -y install wget git
RUN wget --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-arm32-vfp-hflt.tar.gz && \
mkdir /opt/jdk && \
tar -zxf jdk-8u101-linux-arm32-vfp-hflt.tar.gz -C /opt/jdk && \
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_101/bin/java 100 && \
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_101/bin/javac 100 && \
rm -rf jdk-8u101-linux-arm32-vfp-hflt.tar.gz
ENV JAVA_HOME /opt/jdk/jdk1.8.0_101/
RUN wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz && \
tar -zxf apache-maven-3.3.9-bin.tar.gz -C /opt/ && \
rm -rf apache-maven-3.3.9-bin.tar.gz
ENV PATH /opt/apache-maven-3.3.9/bin:$PATH
RUN cd opt && \
git clone https://github.com/iqrfsdk/resin-demo-apps.git resin-demo-apps
WORKDIR /opt/resin-demo-apps/resin-open-gateway
RUN mvn -U clean install
CMD ["/usr/bin/java", "-Djava.library.path=natives/armhf/osgi", "-Dlogback.configurationFile=config/logback/logback.xml", "-jar", "target/open-gateway-1.0.0.jar"]