Now we're going to set up shop using Dukkha, and there are actually many ways to set up shop.
But setting up a docker container, where do you shop is running is the recommended approach because
your server will include all the dependencies, all of the files it needs to run.
And you can also learn how Docker works in the process.
So it's a double win.
So the first thing you need to do is log into the juice shop.
These are Naji's and we'll put in the password next week.
And of course, we're just going to update.
So my host computer, I have Docker up in the browser and the easiest way to install it is to go to
get that docker dot com.
And this is a bad script for Linux.
You know, you need to do is run this command and then is a little play on this command to make it work.
But I'll show you how to get it to work.
So it's very, very straightforward.
And let me show you how to do that now.
So what we're going to do is we're going to run.
Well, first, let's go ahead and install the OpenOffice.org server, because I want to be able to access
to this box from PC.
So it looks like it is already listening.
If it's not listening on your computer, what you can do is you can say you don't have to install on
a stage server.
Taqua OK, and then you would just do a pseudo system.
CTL sagd start always confuse that start SAHD and then you can do status as HD and you can see it's
active.
Right.
So what we should be able to do, you look at the IP address, we can see 10 100 091 we flip over to
our PC, we should be able to tuned into that box.
As Jews,
all right.
OK, so this is good.
So now what we're going to do is we're going to curl get that, Dr. Lacka.
The tackle makes it forward, the it follow the redirect request.
All right, let's grow up.
So here we're seeing it was moved permanently or Puttock L to tell it to follow the three to one move
request.
So we're going to do this.
We're going to grab this.
All right, so now we've got the file, make it executable
and then we can run it
and we'll come back once this finishes.
All right, so now we're going to start the service and enable it to auto start on Bhoot with one command.
All right, and we are currently the user juice, so we want to use user mod to add the user in the
dollar user variable to the Docker group.
I can say user mod add this group.
We want this user to go in there, OK?
And what we want to do is we want to change our current session to that group.
We basically want to log our session into the group called Docker is the one we just added our Dukkha
account to.
And then what we're going to do is some docker magic.
OK, so a docker just to kind of break it down.
Docker's, not virtualization.
So with our VM where workstation hypervisor, we are virtualizing the hardware docker virtualize apps.
So with VMware you can have multiple operating systems running on the same host operating system.
In Docker, you have one operating system which is called the host.
In this case, it's going to be about 220 and you can have multiple apps or containers that are completely
isolated from each other, sharing the same kernel, sharing the same operating system apart.
So what we're going to do in Docker is we're going to say, Docker, run, run means pull down the latest
container that actually what run does.
Actually, what it's saying is pull down the latest Docker image.
Think about it image kind of like an ice or file for a CD.
You don't actually run the image.
Usually you make a copy of it and then the copy is the container.
So the CD itself is like an image, the copy of that eye.
So it's like a container and we can run it.
Dash, dash, R.M. just as clean up after it ends.
What we're doing is we just want to make sure that Docker works.
That is DTAP completed that name there and I'm going to press enter in a moment.
I just want to explain what this does here.
This is the preference for our ports and networking.
We're saying we want to take.
So in the container, Liston's dewdrop listens on Port 3000.
And we want to map it to Port 3000 when our host, which is our number TVM, if we left this part off,
then we would back up 3000 to a random port on our host.
So we're just basically saying when we hit Port 3000 on our host them for that Port 320 in a container.
All right, what about Iran?
Oh, I think I forgot to add a tech.
All right, Sweets, we've got that running, so I'm going to press control, see to end this process
for now.
And then in the next lecture, we are going to set up to shop completely.
So we're going to do something that's kind of difficult and a little bit advanced because we need to
forward the logs from within our container.
To the host, and then we have to set up a Splunk forwarder to ingest the logs in the house and ship
it to Splunk.
Sounds complicated and actually it kind of is.
So I'm not gonna lie about that.
But if you just follow me step by step, you should be able to pull this off this way.
And if you have any questions, just hit me up in the comments and I'll be sure to help you out.
All right.
So it's going to take control in this for now.
And we'll come back and pick this up in the next lecture right by.