-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dockerfile to download emulator from github release (#129)
- Loading branch information
1 parent
5fdc2aa
commit 38b6c0a
Showing
9 changed files
with
68 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM python:3.6-alpine | ||
MAINTAINER Vapor IO <vapor@vapor.io> | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN set -e -x \ | ||
&& apk --update --no-cache add \ | ||
bash libstdc++ \ | ||
&& apk --update --no-cache --virtual .build-dep add \ | ||
build-base \ | ||
&& pip install --upgrade pip \ | ||
&& pip install -r requirements.txt \ | ||
&& apk del .build-dep | ||
|
||
COPY . /synse | ||
WORKDIR /synse | ||
|
||
# Create directories for plugin sockets and configuration | ||
RUN mkdir -p /tmp/synse/procs \ | ||
&& mkdir -p /synse/config | ||
|
||
# install synse_server python package | ||
# TODO - since we are pretty much just using the package, what | ||
# if on build, we just pass in the tarball for synse_server.. then | ||
# we don't have to also include the source code which isn't actually | ||
# used (other than some of the configurations and runserver.py | ||
RUN python setup.py install | ||
|
||
ENTRYPOINT ["bin/synse.sh"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# Configuration for the emulator plugin built-in to Synse Server | ||
version: 1.0 | ||
name: emulator | ||
debug: true | ||
network: | ||
type: unix | ||
address: emulator.sock | ||
settings: | ||
loop_delay: 1000 # run the loop on a 1s delay | ||
mode: parallel | ||
read: | ||
interval: 1s | ||
write: | ||
interval: 1s |
Binary file not shown.