We've got some doctor file and a doctor ignore wired up to our post service.
We now need to make sure that we can dock writes all of our other services as well because all these
other services are just about identical in nature to posts.
In other words they use node and they all have the same start up command of NPM start.
We can really just use the exact same doctor ignore in Docker file with all the other ones.
So really just going to take those two files and copy paste them all around.
This is true even of the react project.
The HREOC project uses node as a base environment and also get started with NPM start as well.
So let's get to it inside my post directory.
I'll find the doc or ignore in Docker files.
I'm going to highlight both them copy them and I will paste them into query I will paste them into moderation
I'll paste them into event plus into comments and finally into client so naturally.
If we had all these services being created using different languages or even some kind of subtle different
environment or something like that like let's say a different version of node or maybe these start up
command was different.
Who knows then we would want to customize the docker file for every service but because we were designing
this project ahead of time and we had a pretty good idea of what was going to happen at some point in
the future I said hey let's just go ahead and make these Docker files or write each these projects so
we can have identical Docker files for each one but again for a neural project you would probably end
up doing some kind of customization.
All right.
So just to make sure that everything works correctly.
Let's just pick one these services at random and make sure that we can build an image out of it.
So how about How about the event bus.
Let's try that out.
Back at my terminal I going to change into the event bus directory.
And let's just go ahead and try to build an image.
I don't really expect to see in the air.
We're just doing this to make sure nothing's going to go wrong.
So inside the event bus directory I'll do a docker build dot.
And of course if we wanted to we could also tag this like so if we wanted to.
Go ahead run that command.
We're gonna go through the same steps.
So we start off with node as our base image set up the working directory.
Copy over Pakistan based on install dependencies.
Copy over all the other source code from our project and then set up the default command.
And now we can take either the image I.D. or just the tag right here.
And do a docker run and then put in the image I.D. or the tag and there we go.
All right.
So we've now Doc arised.
More or less we have actually created images out of all these other services but we certainly have the
means to do so.
So we've now more or less Dr. Rice our entire project.
Which means we're now going to take a pause making next video and start to discuss Coober nettles.
We're gonna start to see how we can use Cuban eddies beyond what we just discussed about how it works
over here a little bit ago to run all these different containers and get all these containers communicating
together very easily.