the plus one docker container (#2175)

This commit is contained in:
Peter Hedenskog 2018-10-08 09:46:12 +02:00 committed by GitHub
parent 24a0cdb312
commit 876a4ae35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

20
docker/Dockerfile-plus1 Normal file
View File

@ -0,0 +1,20 @@
FROM sitespeedio/sitespeed.io:latest
ENV SITESPEED_IO_BROWSERTIME__XVFB true
ENV SITESPEED_IO_BROWSERTIME__DOCKER true
ENV SITESPEED_IO_BROWSERTIME__VIDEO true
ENV SITESPEED_IO_BROWSERTIME__visualMetrics true
ENV SITESPEED_IO_PLUGINS__ADD /lighthouse,/gpsi
RUN sudo apt-get update && sudo apt-get install git -y
WORKDIR /gpsi
RUN git clone https://github.com/sitespeedio/plugin-gpsi.git .
RUN npm install --production
WORKDIR /lighthouse
RUN git clone https://github.com/sitespeedio/plugin-lighthouse.git .
RUN npm install --production
VOLUME /sitespeed.io
WORKDIR /sitespeed.io

View File

@ -16,10 +16,12 @@ np $* --no-yarn
PACKAGE_VERSION=$(node -e 'console.log(require("./package").version)')
docker build --no-cache -t sitespeedio/sitespeed.io:$PACKAGE_VERSION -t sitespeedio/sitespeed.io:latest .
docker push sitespeedio/sitespeed.io:$PACKAGE_VERSION
docker push sitespeedio/sitespeed.io:latest
docker build -t sitespeedio/sitespeed.io:$PACKAGE_VERSION-plus1 --file docker/Dockerfile-plus1 .
docker push sitespeedio/sitespeed.io:$PACKAGE_VERSION-plus1
# Update to latet version in the docs
bin/sitespeed.js --version | tr -d '\n' > docs/_includes/version/sitespeed.io.txt