Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Decrease CI build time by using a prebuild docker image (#127)
* Foo * Comment out cache * Readd the correct image * Remove cypress install. not needed anymore * Add Now.sh docker file
- Loading branch information
1 parent
c6dece9
commit cf15501
Showing
5 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM circleci/node:10-browsers | ||
|
||
RUN sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 | ||
# RUN cat /etc/passwd | ||
WORKDIR /home/circleci/temp | ||
RUN sudo chown -R circleci:circleci /home/circleci/temp | ||
USER circleci | ||
RUN echo "{}" > package.json && npm install cypress && \ | ||
cd .. && rm -rf ~/temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Prebuild docker image for now deployment | ||
# - Prebuild bs-platform | ||
# - Cache cypress's download | ||
FROM node:10.8.0 | ||
RUN npm -g config set user root | ||
RUN npm install -g bs-platform@4.0.3 | ||
WORKDIR ~/temp/ | ||
RUN echo "{}" > package.json && npm install cypress && \ | ||
cd .. && rm -rf ~/temp/ |