Live data from Hacker News

Faster Builds with Container-Based Infrastructure and Docker

blog.travis-ci.com

1–10 of 10 posts

Re: Faster Builds with Container-Based Infrastructure and Docker

#5
Some rough numbers: bundle install has gone from ~50s to 3s for my Jekyll + s3_website setup. The overall build has dropped from ~120s to 45s thanks to that and using a cached version of Ruby.

One gotcha for anyone with a similar setup: make sure Jekyll's _config.yml is set to exclude/ignore the vendor directory. Oops.

Re: Faster Builds with Container-Based Infrastructure and Docker

#6
post #4

That's a great news. I see ppl setup their own CI, b/c they need some custom stuff. With Travis CI supporting docker, it is way easier to do that with them.

At the moment it will be harder, since granting someone root-access in a container is pretty dangerous, containers are not very good for security (yet). If you read the article, they state that using custom images is not yet possible.

Re: Faster Builds with Container-Based Infrastructure and Docker

#8
This is exciting news - it's a shame that sudo isn't supported in the Travis-CI Docker containers (is this common for all Docker containers?). Uploading binaries to S3 and then downloading them to use in the build process seems like a total faff - I use Travis-CI to avoid that kind of hassle...

Re: Faster Builds with Container-Based Infrastructure and Docker

#9
post #5

Some rough numbers: bundle install has gone from ~50s to 3s for my Jekyll + s3_website setup. The overall build has dropped from ~120s to 45s thanks to that and using a cached version of Ruby. One gotcha for anyone with a similar setup: make sure Jekyll's _config.yml is set to exclude/ignore the vendor directory. Oops.

Are you sure those speedups are docker related, those sound like they're bundler/caching related?

( as in http://docs.travis-ci.com/user/caching/ )

Re: Faster Builds with Container-Based Infrastructure and Docker

#10
post #9
post #5

Some rough numbers: bundle install has gone from ~50s to 3s for my Jekyll + s3_website setup. The overall build has dropped from ~120s to 45s thanks to that and using a cached version of Ruby. One gotcha for anyone with a similar setup: make sure Jekyll's _config.yml is set to exclude/ignore the vendor directory. Oops.

Are you sure those speedups are docker related, those sound like they're bundler/caching related? ( as in http://docs.travis-ci.com/user/caching/ )

Correct, the speedups are directly due to bundle caching (which previously had only been available for private/paid repos). Indirectly, I would assume this caching is now implemented via Docker's use of filesystem layers.