JSPM do not work inside the docker service

Hello!

I have working project using docker and docker-compose locally. But inside the circleci its does not build the second service on the “jspm install” command, it throw:

warn Error on download for npm:babel-runtime
Error: EINVAL: invalid argument, chown '/root/.jspm/packages/npm/babel-runtime@5.8.38/package.json’
at Error (native)

err Error downloading npm:babel-runtime.

warn Installation changes not saved.
ERROR: Service ‘frontend’ failed to build: The command ‘/bin/sh -c mkdir ~/.jspm && chmod 666 ~/.jspm && cp ./jspm-config ~/.jspm/config && chmod 666 ~/.jspm/config && jspm install’ returned a non-zero code: 1

Inside the circleci I’m using docker 1.10.0

Docker file with an issue:

FROM node:6.0.0

WORKDIR /stapp
RUN apt-get update && apt-get install -y python3 && apt-get clean
RUN npm install -g jspm
RUN npm install -g gulp
RUN npm install -g typings
ADD package.json /stapp/package.json
ADD tsconfig.json /stapp/tsconfig.json
ADD typings.json /stapp/typings.json

RUN npm install

ADD . /stapp

RUN typings install
RUN mkdir ~/.jspm && chmod 666 ~/.jspm && cp ./jspm-config ~/.jspm/config && chmod 666 ~/.jspm/config && jspm install
RUN jspm update
RUN gulp deploy

EXPOSE 8080

WORKDIR /stapp/target/production

CMD [“python3”, “-m”, “http.server”, “8080”]

Also I have aufs locally, circleci btrfs.

Any thoughts?

Seeing the same issue in https://circleci.com/gh/cockroachdb/cockroach/tree/pull%2F7165

Looks like this is https://github.com/jspm/jspm-cli/issues/1902, which is caused by https://github.com/npm/node-tar/issues/39, which needs an upstream change https://github.com/npm/fstream/issues/52.

1 Like