the plus one docker container (#2175)
This commit is contained in:
parent
24a0cdb312
commit
876a4ae35e
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue