Docker for frontend development

Hi I'm Tiago!

 

@trodrigues

trodrigues.net

Why?

Reproducible dev environments

Disadvantages

  • Slower
  • More cumbersome when trying dependencies

How?

This was an interesting experiment but until a way to fix the NFS file share issue comes along, I probably won't be using Docker for any kind of front end development.

It got better!

Docker for Mac/Windows

Not Docker Toolbox

New Docker

  • OSX 10.10 (Yosemite), 2010 or later Mac
  • Windows 10 Pro 64 bit (with HyperV enabled)

The secret sauce

  • Hypervisor based virtualization
    • No more Virtualbox!
  • osxfs: 🎉
    • https://docs.docker.com/docker-for-mac/osxfs/
  • Windows: 😱
    • https://docs.docker.com/docker-for-windows/troubleshoot/#inotify-on-shared-drives-does-not-work

Setting it up

Demo time

https://github.com/trodrigues/docker-frontend-example

Thanks!

Docker for frontend development

By trodrigues

Docker for frontend development

  • 1,529