diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 000000000..706bebcb5 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,13 @@ +steps: + - name: Build + command: docker build -t js-ipfs:$BUILDKITE_COMMIT . + + - wait + + - name: Test + command: docker run -it js-ipfs:$BUILDKITE_COMMIT --entrypoint=npm test + + - wait + + - name: Push + command: echo "Eh, pushing I guess?" diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..c2658d7d1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..6cc697497 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM victorbjelkholm/chromium-xvfb-js:latest + +# Dependency for phantomjs +RUN apt-get update && apt-get install bzip2 + +WORKDIR /usr/src/app + +COPY package.json /usr/src/app/package.json + +RUN npm install --loglevel=http + +COPY . /usr/src/app