forked from projectcs13/sensor-cloud
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
42 lines (31 loc) · 1.11 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:14.04.2
MAINTAINER Konstantinos Vandikas (konstantinos.vandikas@ericsson.com)
# install git and checkout source-code from github
RUN apt-get install -yq git software-properties-common curl wget
WORKDIR /opt
RUN git clone https://github.com/EricssonResearch/iot-framework-engine.git
# configure repositories
RUN add-apt-repository ppa:chris-lea/node.js
RUN add-apt-repository "deb http://ftp.sunet.se/pub/lang/CRAN/bin/linux/ubuntu trusty/"
# update/upgrade base system
RUN apt-get update
RUN apt-get -yq upgrade
# install misc dependencies
RUN apt-get install -yq xsltproc python-pip libpython-dev
# install erlang
RUN apt-get install -yq erlang
# install nodejs
RUN apt-get install -yq python-software-properties python g++ make
RUN apt-get install -yq nodejs
# install R
RUN apt-get install -yq r-base --force-yes
# install semantic-adapter
WORKDIR /opt/iot-framework-engine
RUN pip install -r semantic-adapter/pip-freeze.txt
# compilation
WORKDIR /opt/iot-framework-engine
RUN make install
# expose port
EXPOSE 8000
# Start the IoT-Framework
CMD cd /opt/iot-framework-engine && ./scripts/sensec_light.sh start