Skip to content

Commit

Permalink
Dockerfile added.
Browse files Browse the repository at this point in the history
  • Loading branch information
npeditto committed Mar 27, 2018
1 parent 4be1abc commit c585678
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:carbon-slim

RUN apt-get update && apt-get install -y \
git python-dev python-setuptools libyaml-dev libpython2.7-dev nmap unzip socat bridge-utils python-pip python-httplib2 libssl-dev libffi-dev \
&& rm -rf /var/lib/apt/lists/*

RUN npm install -g --unsafe @mdslab/wstun [email protected] requestify mysql nconf ip express node-uuid autobahn q body-parser ps-node nodemailer nodemailer-smtp-transport swagger-jsdoc cors bcrypt optimist jsonwebtoken \
&& npm cache --force clean

RUN mkdir -p /var/lib/iotronic/plugins \
&& mkdir -p /var/lib/iotronic/drivers/ \
&& mkdir -p /var/log/iotronic/ \
&& touch /var/log/iotronic/s4t-iotronic.log

WORKDIR /usr/local/lib/node_modules/@mdslab/

RUN git clone --depth=1 git://github.com/MDSLab/s4t-iotronic-standalone.git ./iotronic-standalone

ENV NODE_PATH=/usr/local/lib/node_modules
ENV IOTRONIC_HOME=/var/lib/iotronic

WORKDIR /usr/local/lib/node_modules/@mdslab/iotronic-standalone/

VOLUME /var/lib/iotronic

CMD [ "./bin/server"]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ IoTronic (in the standalone version) has been tested to work on:

* [Installation guide for Ubuntu 16.04](docs/installation_ubuntu_16.04.md)
* [Installation guide for Ubuntu 14.04](docs/installation_ubuntu_14.04.md)
<!-- * [Installation guide for Ubuntu 14.04](docs/installation_ubuntu_14.04.md) -->

### LXD container
If you want to install IoTronic within an LXD container, you can find a guide [here](docs/installation_lxd.md).

## API documentation
Expand Down

0 comments on commit c585678

Please sign in to comment.