Skip to content

Commit 2d872f4

Browse files
committed
docker
1 parent 8e55e3a commit 2d872f4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ FROM node:4
44

55
ADD . /
66

7-
EXPOSE 44003
8-
EXPOSE 43003
7+
EXPOSE 44004
8+
EXPOSE 43004
99

1010
CMD ["node","srv/github-dev.js","--seneca.options.tag=github","--seneca.log.all"]
1111

1212
# build and run:
1313
# $ docker build -t nodezoo-github-03 .
14-
# $ docker run -d -p 44004:44004 -p 43004:43004 -e HOST=$(docker-machine ip default) nodezoo-github-03
14+
# $ docker run -d -p 44004:44004 -p 43004:43004 -e HOST=$(docker-machine ip default) -e REDIS=192.168.99.1 -e TOKEN=`cat srv/.ignore-token` --volumes-from nodezoo-level nodezoo-github-03
1515
# local docker ip:
1616
# $ docker-machine ip default
1717

srv/github-dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11

22
var HOST = process.env.HOST || 'localhost'
33
var REDIS = process.env.REDIS || 'localhost'
4+
var TOKEN = process.env.TOKEN || 'NO_TOKEN'
45

56
require('seneca')()
67

78
.use('redis-transport')
89
.use('level-store')
910

10-
.use('../github.js')
11+
.use('../github.js',{token:TOKEN})
1112

1213
.add('role:info,req:part',function(args,done){
1314
done()

0 commit comments

Comments
 (0)