npm ERR! tar.unpack untar error /tmp/lambci/home/.npm/lodash/4.17.4/package.tgz
npm ERR! tar.unpack untar error /tmp/lambci/home/.npm/lodash/4.17.4/package.tgz
npm ERR! tar.unpack untar error /tmp/lambci/home/.npm/core-js/2.4.1/package.tgz
Any ideas what's going on?
git+https://<token>:x-oauth-basic@github.com/<user>/<repo>.git
. lambci would have to preprocess package.json and replace all github:
or git+ssh...github
entries with the access token version.
. ~/init/gcc && npm install && npm test
. output is$ . ~/init/gcc && npm install && npm run test
Installing GCC 4.8.5...
++ curl -sSL https://lambci.s3.amazonaws.com/binaries/gcc-4.8.5.tgz
++ tar -xz -C /tmp
++ set +x
GCC setup complete
/bin/bash: line 1: 33 Segmentation fault (core dumped) npm install
Build #1 failed: Command ". ~/init/gcc && npm install && npm run test" failed with code 139
. ~/init/gcc
part, then build will succeed
FROM mhart/alpine-node:6
RUN apk update && \
apk upgrade && \
apk add \
util-linux \
pciutils \
usbutils \
coreutils \
binutils \
findutils \
grep \
curl \
bash \
git
RUN apk add \
python \
py-pip \
&& \
pip install --upgrade awscli
WORKDIR /tmp/lambci/build
USER root
# Build node_modules
ADD package.json /buildserver/
RUN cd /buildserver && npm install
# Now add the rest, the above layers will be cached if package.json doesn't change
ADD . /tmp/lambci/build
# Move npm modules over
RUN rm -rf /tmp/lambci/build/server/node_modules && mv /buildserver/node_modules /tmp/lambci/build/server/
RUN cd /tmp/lambci/build && ./lambci.sh
build
followed by run
, but it is not clear to me how to pass a shell script to the run stage. Maybe if I could leverage $LAMBCI_DOCKER_RUN_ARGS?