1
00:00:00,920 --> 00:00:05,120
In the last section we spoke about how we're going to take our multa container project and update it

2
00:00:05,120 --> 00:00:10,640
to use Kooper Nettie's as opposed to the doc or compose or elastic beanstalks set up that it currently

3
00:00:10,640 --> 00:00:11,520
has.

4
00:00:11,660 --> 00:00:17,270
Now you will notice that in the last lecture I posted the zip file for the complex project.

5
00:00:17,390 --> 00:00:20,860
I put it there just in case you made any changes to the project.

6
00:00:20,900 --> 00:00:24,970
That is a backup of my exact files as they stand right now.

7
00:00:25,100 --> 00:00:31,490
So I took my exact complex folder directory with the server the client the worker the whole nine yards

8
00:00:31,520 --> 00:00:33,490
and I put it into that zip file.

9
00:00:33,500 --> 00:00:38,240
So again if you made any changes to the project whatsoever between the last video that we were working

10
00:00:38,240 --> 00:00:43,580
on it and right now I highly encourage you to download that sig file and use that as the starting point

11
00:00:43,580 --> 00:00:45,850
for all this Cabernets stuff.

12
00:00:45,920 --> 00:00:50,720
Now in this section we're going to take the complex project or the multa container project and we're

13
00:00:50,720 --> 00:00:55,700
going to start it up with docker compose the reason that we're going to do this is to just make sure

14
00:00:55,880 --> 00:01:00,860
that everything is still working the way we expect because if we start building out all this Kuber Nettie's

15
00:01:00,860 --> 00:01:05,600
stuff but some of the underlying project code got changed by you at some point in time or it's in a

16
00:01:05,600 --> 00:01:11,940
broken state doing the cooper and then the stuff is going to be basically impossible completely impossible.

17
00:01:11,990 --> 00:01:16,070
So we just need to make sure that the code that you're using and the code I'm using is still working

18
00:01:16,130 --> 00:01:18,260
and 100 percent up to date.

19
00:01:18,290 --> 00:01:18,590
All right.

20
00:01:18,590 --> 00:01:22,430
So you'll notice that I'm inside of my complex project folder right here.

21
00:01:22,430 --> 00:01:29,640
The other thing I want you to triple triple check mixture that you are not using a copy of Takhar that

22
00:01:29,640 --> 00:01:35,610
has been configured to run inside of or to access the docker server inside of your node so you can very

23
00:01:35,610 --> 00:01:41,370
easily do that by doing a doc or a piece and you should see that you have very few or absolutely no

24
00:01:41,370 --> 00:01:43,080
containers running whatsoever.

25
00:01:43,320 --> 00:01:49,200
If you see a ton of printout that means that your doctor client is still configured to access the doc

26
00:01:49,200 --> 00:01:54,660
or server inside the node we do not want to start up doc or compose inside the node whatsoever.

27
00:01:55,590 --> 00:02:00,990
If you are still using the updated copy of doc or the reconfigured version remember all you have to

28
00:02:00,990 --> 00:02:05,290
do to get back to the non configured version is open up a new terminal window.

29
00:02:05,340 --> 00:02:06,030
That's pretty much it.

30
00:02:06,030 --> 00:02:08,160
Just open a new terminal window and do it.

31
00:02:08,160 --> 00:02:13,490
Dr. P.S. again and you'll be back to using your local copy of Gawker server.

32
00:02:13,490 --> 00:02:17,900
Ok so again I'm inside of my multa container project directory.

33
00:02:17,900 --> 00:02:20,740
I see the docker composed on YAML file right here.

34
00:02:20,770 --> 00:02:24,600
I'm going to run doc or compose up and rebuild all these images.

35
00:02:24,610 --> 00:02:29,800
And again we're just doing this to make sure that all the existing code works as we expect.

36
00:02:29,800 --> 00:02:36,550
So I'm going to do a doc or compose up shash built because I want to explicitly rebuild everything and

37
00:02:36,580 --> 00:02:40,990
I'm going to let that run it's going to take a couple minutes to rebuild everything and launch it all.

38
00:02:40,990 --> 00:02:45,310
Now you'll notice in my case I kind of just very recently rebuilt all this stuff so it launches very

39
00:02:45,310 --> 00:02:46,210
quickly.

40
00:02:46,210 --> 00:02:51,190
I do want to remind you that the very first time you launch all these containers if you cleared out

41
00:02:51,220 --> 00:02:55,570
all of the cached version of the containers and whatnot it might crash a little bit.

42
00:02:55,570 --> 00:02:56,850
The very first time you launch it.

43
00:02:56,980 --> 00:03:03,960
So I do encourage you to stop Daker compose immediately after it starts up and do a docker compose up

44
00:03:04,180 --> 00:03:05,450
a second time.

45
00:03:05,460 --> 00:03:08,770
And the second time you don't need to add on the dash dash build flag.

46
00:03:09,660 --> 00:03:11,320
All right so I'm going to launch that.

47
00:03:11,480 --> 00:03:16,980
I'm going to wait just a second for the development server to start up and then you'll recall that we

48
00:03:16,980 --> 00:03:20,860
can access all this stuff on localhost port 30 50.

49
00:03:21,060 --> 00:03:24,120
I already open up my code editor inside that complex directory.

50
00:03:24,150 --> 00:03:25,850
Here's the docker compose file.

51
00:03:26,070 --> 00:03:30,190
Here's the engine X-server that we are using for routing inside of our application.

52
00:03:30,300 --> 00:03:35,160
And you'll recall that we had set up localhost 30 50 as being the central point to access everything

53
00:03:35,160 --> 00:03:36,330
inside of your.

54
00:03:36,340 --> 00:03:38,400
So I'm going to very quickly test this out.

55
00:03:38,880 --> 00:03:41,640
I open up my browser and go into localhost 30 50.

56
00:03:41,730 --> 00:03:44,940
And again I should still see all of my numbers here.

57
00:03:44,980 --> 00:03:50,030
Any previous values that I had entered unless you had of course deleted or completely stopped and deleted

58
00:03:50,060 --> 00:03:52,590
the read in the postscripts containers.

59
00:03:53,010 --> 00:03:57,080
And just to make sure that everything's working the way I expect I going to enter in a new index here

60
00:03:57,150 --> 00:03:58,120
of 12.

61
00:03:58,320 --> 00:04:05,040
I'm going to submit it all then refresh and I'll seen 12 added it here and I'll see a calculated value

62
00:04:05,040 --> 00:04:06,990
for 12 down there as well.

63
00:04:07,130 --> 00:04:07,360
OK.

64
00:04:07,380 --> 00:04:12,210
So hopefully you see something like this again if you don't see everything updated and still working

65
00:04:12,300 --> 00:04:17,880
like so then I really encourage you to go back to the previous lecture download that zip file and use

66
00:04:17,880 --> 00:04:22,620
that as the starting point for all this Cabernets stuff just to make sure that you and I are on 100

67
00:04:22,620 --> 00:04:23,950
percent equal footing.

68
00:04:24,310 --> 00:04:24,550
OK.

69
00:04:24,570 --> 00:04:25,700
So let's take a pause right here.

70
00:04:25,710 --> 00:04:31,200
When we come back the next section we'll get started with taking all of our existing images and migrating

71
00:04:31,200 --> 00:04:33,180
them into the world of Kooper Nettie's.

72
00:04:33,180 --> 00:04:35,170
So quick break and I'll see you in just a minute.
