Skip to content

Commit

Permalink
Changed the host to docker host and install python based on nodejs/do…
Browse files Browse the repository at this point in the history
  • Loading branch information
khoadp committed Dec 9, 2017
1 parent 249631c commit f7260e4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
6 changes: 6 additions & 0 deletions docker/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz

RUN apk --no-cache add --virtual native-deps \
g++ gcc libgcc libstdc++ linux-headers make python && \
npm install --quiet node-gyp -g &&\
npm install --quiet && \
apk del native-deps

# COPY setup script
COPY ./docker/nodejs/docker-setup.sh /

Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@
"express": "*",
"couchbase": "*",
"body-parser": "*",
"progress":"*",
"progress": "*",
"request": "*",
"jsonwebtoken":"*",
"haversine":"*",
"faye":"*",
"ottoman":"*"
"jsonwebtoken": "*",
"haversine": "*",
"faye": "*",
"ottoman": "*"
},
"scripts":{
"build":"node utils/provision.js",
"start":"node app.js"
"scripts": {
"build": "node utils/provision.js",
"start": "node app.js"
},
"contributors": [
{
"name": "Todd Greenstein",
"email": "todd@couchbase.com"
},
{
"name": "Nic Raboy",
"email": "nic@couchbase.com"
"name": "Nic Raboy",
"email": "nic@couchbase.com"
}
]
}
8 changes: 4 additions & 4 deletions utils/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"couchbase": {
"endPoint": "localhost:8091",
"n1qlService": "localhost:8093",
"ftsService": "localhost:8094",
"hostName": "127.0.0.1",
"endPoint": "couchbasedb:8091",
"n1qlService": "couchbasedb:8093",
"ftsService": "couchbasedb:8094",
"hostName": "couchbasedb",
"bucket": "travel-sample",
"user": "Administrator",
"password": "password",
Expand Down

0 comments on commit f7260e4

Please sign in to comment.