Skip to content

Commit 4036a3d

Browse files
authored
Fix JDK issue (#13)
* Fix JDK installation * Controller base image
1 parent c65e62e commit 4036a3d

File tree

3 files changed

+25
-31
lines changed

3 files changed

+25
-31
lines changed

iofog-agent/Dockerfile

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
FROM jpetazzo/dind
22

3-
RUN apt-get update -qq
4-
RUN apt-get install -qqy sudo
5-
RUN apt-get install -qqy curl
6-
RUN apt-get install -qqy jq
7-
RUN apt-get install -qqy software-properties-common
8-
RUN add-apt-repository -y ppa:webupd8team/java
9-
RUN apt-get update -qq
10-
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
11-
RUN apt-get install -y oracle-java8-installer
12-
RUN apt-get update -qq
13-
RUN curl -s https://packagecloud.io/install/repositories/iofog/iofog-agent/script.deb.sh | sudo bash
14-
RUN sudo apt-get install iofog-agent
15-
RUN touch /first_run.tmp
3+
RUN apt-get update -qq && \
4+
apt-get install -qqy sudo && \
5+
apt-get install -qqy curl && \
6+
apt-get install -qqy jq
7+
8+
ADD http://www.edgeworx.io/downloads/jdk/jdk-8u211-64.tar.gz /opt
9+
10+
RUN cd /opt && \
11+
tar xzf jdk-8u211-64.tar.gz && \
12+
cd /opt/jdk1.8.0_211/ && \
13+
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_211/bin/java 1100 && \
14+
rm -R /opt/jdk-8u211-64.tar.gz && \
15+
curl -s https://packagecloud.io/install/repositories/iofog/iofog-agent/script.deb.sh | sudo bash && \
16+
sudo apt-get install iofog-agent && \
17+
touch /first_run.tmp
1618

1719
COPY start.sh /start.sh
1820
COPY config.xml /etc/iofog-agent/config.xml

iofog-connector/Dockerfile

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
FROM ubuntu:16.04
1+
FROM iofog/java-ubuntu-x86:8u211
22

3-
RUN apt-get update --fix-missing -qq
4-
RUN apt-get install -qqy sudo
5-
RUN apt-get install -qqy curl
6-
RUN apt-get install -qqy software-properties-common
7-
RUN add-apt-repository -y ppa:webupd8team/java
8-
RUN apt-get update -qq
9-
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
10-
RUN apt-get install -y oracle-java8-installer
11-
RUN apt-get update -qq
12-
RUN curl -s https://packagecloud.io/install/repositories/iofog/iofog-connector/script.deb.sh | sudo bash
13-
RUN sudo apt-get install iofog-connector
14-
RUN touch /first_run.tmp
3+
RUN apt-get update --fix-missing -qq && \
4+
apt-get install -qqy sudo curl && \
5+
curl -s https://packagecloud.io/install/repositories/iofog/iofog-connector/script.deb.sh | sudo bash && \
6+
sudo apt-get install iofog-connector && \
7+
touch /first_run.tmp
158

169
COPY . /
1710

iofog-controller/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM node:alpine
1+
FROM iofog/node-alpine-x86:8.16.0
22

3-
RUN apk add curl jq python bash
4-
RUN npm i -g iofogcontroller --unsafe-perm
5-
6-
RUN touch /first_run.tmp
3+
RUN apk add curl jq bash && \
4+
npm i -g iofogcontroller --unsafe-perm && \
5+
touch /first_run.tmp
76

87
COPY start.sh /
98

0 commit comments

Comments
 (0)