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

Commit

Permalink
build: Support docker-compose
Browse files Browse the repository at this point in the history
Usage:

   docker-compose up

Change-Id: Iae65fe96fa64765cad0478ecd83e01c9439f0e18
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Aug 10, 2018
1 parent c66b452 commit 20a0e1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

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

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "2"

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

0 comments on commit 20a0e1a

Please sign in to comment.