Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Minor fixes for next release (originally fixing yarn warning) #9

Merged
merged 4 commits into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s
touch /etc/inittab && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

ARG gateway_url
ENV gateway_url ${url:-https://github.com/mozilla-iot/gateway}
ARG gateway_branch
ENV gateway_branch ${branch:-master}

USER node
RUN cd /home/node && \
WORKDIR /home/node
RUN set -x && \
npm install yarn && \
mkdir mozilla-iot && \
cd mozilla-iot && \
git clone https://github.com/mozilla-iot/intent-parser && \
git clone https://github.com/mozilla-iot/gateway && \
git clone --depth 1 --recursive https://github.com/mozilla-iot/intent-parser && \
git clone --depth 1 --recursive -b ${gateway_branch} ${gateway_url} && \
cd gateway && \
/home/node/node_modules/.bin/yarn
/home/node/node_modules/.bin/yarn --verbose

USER root
ADD service /etc/service
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "2"

services:
web:
build: .
command: /home/node/mozilla-iot/gateway/run-app.sh
volumes:
- /home/node/.mozilla-iot
ports:
- "8080:8080"
- "4443:4443"