Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Docker: Use a wrapper graph for ParkingProvider
Browse files Browse the repository at this point in the history
Needed to pass the hostname data

If could pass IIPs on commandline, would not be needed:
noflo/noflo-nodejs#17
  • Loading branch information
jonnor committed Nov 14, 2017
1 parent df0f930 commit 4bb88fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env-default
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PORT=5000
HOSTNAME=http://localhost:5000
BIGIOT_PROVIDER_ID=id
BIGIOT_PROVIDER_SECRET=secret
REDIS_URL=redis://localhost:6379
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ USER flowuser
# Note: EXPOSE is not supported by Heroku, application must respect $PORT
EXPOSE 5000

CMD ["node", "./node_modules/.bin/noflo-nodejs", "--register", "false", "--graph", "graphs/ParkingProvider.json"]
CMD ["node", "./node_modules/.bin/noflo-nodejs", "--register", "false", "--graph", "graphs/RunParkingProvider.fbp"]
3 changes: 3 additions & 0 deletions graphs/RunParkingProvider.fbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'server running' -> STRING ServerReady(strings/SendString) -> out(core/Output)
Provider(ParkingProvider) APP -> IN ServerReady
'HOSTNAME' -> KEY ReadHostname(core/ReadEnv) -> HOSTNAME Provider

0 comments on commit 4bb88fa

Please sign in to comment.