Skip to content

Commit

Permalink
Fix #10: missing kibana in the docker image
Browse files Browse the repository at this point in the history
The npm postinstall script was failing when run by the root user during a docker build with the following:
```
npm WARN cannot run in wd [email protected] [ -f kibana/index.html ] && exit 0; mkdir -p kibana; curl https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.tar.gz | tar xvzf - -C kibana --strip-components=1 (wd=/app)
```
The docker build executes as the root user but npm downgrades its permissions during the npm install.
adding universal read and write permissions to the app folder during the build does not prevent the issue.

Running `npm install --unsafe-perm` solves the problem.
  • Loading branch information
hmalphettes committed Jan 23, 2015
1 parent 960942b commit 7bc416f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAINTAINER Hugues MALPHETTES <[email protected]>

WORKDIR /app
ADD . /app
RUN npm install
RUN npm install --unsafe-perm

EXPOSE 3003

Expand Down

0 comments on commit 7bc416f

Please sign in to comment.