New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim container build process. #5730
Conversation
@@ -31,6 +31,7 @@ install: | |||
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then gem install danger danger-junit; fi' | |||
|
|||
script: | |||
- docker-compose exec web bash -c "apt install -y phantomjs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we place this installation in our Dockerfile instead of executing this every build run. It would make easier when we accomplish this publiclab/mapknitter#598
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
This pulls libqt5webkit5
and hundreds of megabytes of libraries, and is not needed in production. At the moment it is saving some time and storage for building the container in production and making image more manageable for debugging it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway we can revisit when we do start using docker images (exciting!). For now this should help trim testing and simplify deployment to production (where phantomjs isn't needed).
Generated by 🚫 Danger |
Finally this sucesfully trims a few minutes out of testing by optimizing build time! I think it's ready to merge... |
Yes Awesome!!! We may be able to drop phantomjs too as system tests can
replace teaspoon/mocha tests which use it. Anyways why would we run 2
parallel chrome environments now we've started using headless chrome.
Great!!
…On Tue, May 21, 2019, 9:42 AM Sebastian Silva ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .travis.yml
<#5730 (comment)>:
> @@ -31,6 +31,7 @@ install:
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then gem install danger danger-junit; fi'
script:
+ - docker-compose exec web bash -c "apt install -y phantomjs"
Anyway we can revisit when we do start using docker images (exciting!).
For now this should help trim testing and simplify deployment to production
(where phantomjs isn't needed).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5730?email_source=notifications&email_token=AAAF6JZ2CYIAJ5BLUAS44VDPWP3YXA5CNFSM4HNJKFMKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZHOUBY#discussion_r286030702>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J2ZUHLE5E4WJDRLTSTPWP3YXANCNFSM4HNJKFMA>
.
|
Fixes #5705, addresses #5683
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!