The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

nutpeg (1) [Avatar] Offline
Any chance you could consider switching to a Docker solution rather than Vagrant? I've tried all morning to sort out the issues with your vagrant set up, but I keep coming up against issues, and have so far failed. Using Docker of course is the in thing smilie and would have the side benefit of helping people (like me) who'd like to have an example of getting a working docker environment set up with several moving parts.

Just as an FYI, here are the issues I've had with the vagrant set up:

- Used the git instructions from the book, without the --recursive flag
- Used the instructions from the README (without using VirtualBox Guest Additions) and had a problem with a conflicting Postgres port.
- Fixed postgres port in Vagrant file, but then had a problem with another port from previous vagrant vm still running (I'm new to vagrant). So removed previous vm
- Problem with ansible-cache not being writeable. Fixed that in Vagrant file.
- Read that problems with writing to files are often due to mismatched guest additions (whatever they are) so decided to install the VirtualBox Guest Additions vagrant plugin as recommended in the README. No idea if this is connected, but now have the following error message "Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly."

I don't know how to proceed from here, and have to say, I'm feeling a little bit frustrated with the process. I'm assuming that a Docker setup may be easier for the the end user, but of course it could be a nightmare for you - no idea, but thought I'd throw out the suggestion.
alexander.dean (12) [Avatar] Offline
Re: Vagrant issues - docker?
Hi nutpeg - really sorry to hear you've been having trouble with Vagrant! I have created a ticket to improve the Vagrant setup here:

As I understand it, Docker is more of a deployment solution than a development solution:

I haven't heard of people doing their coding/compilation inside of Docker.

Also, because Docker depends on Linux innards, any readers on Windows or OS X would have to start by installing a VM inside Virtualbox or similar before running Docker anyway [1], [2] so I think that is probably a non-starter.

I've been meaning to try out Docker and it looks like there's a nice Docker-Kafka project here: I've created a ticket to potentially explore Docker later in the book: