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.

mirto (20) [Avatar] Offline
#1
I was confused and cannot follow this section.

I was not able to write the files needed by docker build. I have some questions:

Which file names should have the three dockerfiles? (Pag. 51 multiple Dockerfile)

What should contain the package.json file used in listing 3.3?

Thanks

aidanhs (25) [Avatar] Offline
#2
Hi mirto

Sorry you found this technique confusing - the latest revision of the book currently contains an additional note:

.Simplified Dockerfiles
NOTE: These exampes are for elucidation purposes, and have been simplified
accordingly. Trying to run them directly won't necessarily work.


I'm not sure if this is in the version of the book you've been looking at.

In short, this technique is intended to demonstrate the principles behind splitting up a monolithic container - there are so many subtleties with different setups, it wouldn't be possible to cover all the fine detail! We're just trying to explain the key ideas behind the process. If you do want to try converting a monolithic container into microservices and would like additional help, feel free to post here or on the Docker mailing list!

Aidan