1 00:00:00,860 --> 00:00:03,210 We are almost done with this remote cluster setup. 2 00:00:03,210 --> 00:00:05,860 We just have to go through a handful of additional steps. 3 00:00:06,030 --> 00:00:11,520 I listed the steps out right here just so it's really clear exactly what we have to do as a quick reminder. 4 00:00:11,540 --> 00:00:15,440 We're going to use Google Cloud built to build all of our images from now on. 5 00:00:15,440 --> 00:00:19,790 So we spoke about that when we were taking a look at this diagram right here. 6 00:00:19,790 --> 00:00:23,950 So Google cloud build is going to be in charge of building all of our images using our source code in 7 00:00:23,960 --> 00:00:25,400 their company Docker file. 8 00:00:25,400 --> 00:00:29,510 And again the reason we are doing this is because good cloud build can generally build these images 9 00:00:29,720 --> 00:00:34,450 more quickly than we can on our local machine particularly as we get on to some stuff later on where 10 00:00:34,460 --> 00:00:38,840 we're going to be downloading some rather large dependencies you'll see why when we get to that point 11 00:00:40,590 --> 00:00:46,100 after that we're going to update update our scaffold gamble file to tell it to use good cloud build. 12 00:00:46,110 --> 00:00:47,670 Let's give you a very very easy update. 13 00:00:47,670 --> 00:00:49,280 Don't worry that's not challenging at all. 14 00:00:50,280 --> 00:00:55,270 After that we're gonna make sure that we set up ingress engine X on our Google Cloud cluster. 15 00:00:55,320 --> 00:01:00,660 So we set up the ingress engine X on our local cluster but none that configuration carries over to the 16 00:01:00,660 --> 00:01:02,260 cluster that we just created. 17 00:01:02,340 --> 00:01:07,110 We have to go through those same initialization commands that we ran a while ago on our local machine 18 00:01:09,070 --> 00:01:09,610 after that. 19 00:01:09,610 --> 00:01:14,560 We're going to update our host file again yet again because we need to make sure that whenever we go 20 00:01:14,560 --> 00:01:18,000 to ticketing dot Dev we no longer go to our local machine. 21 00:01:18,010 --> 00:01:22,390 Instead we want to go to the IP address that's been assigned to our remote cluster. 22 00:01:22,390 --> 00:01:26,710 And then finally we will go ahead and restart scaffold and we'll start to build all these images and 23 00:01:26,710 --> 00:01:27,460 all that kind of stuff. 24 00:01:28,440 --> 00:01:30,240 So let's go to this step by step. 25 00:01:30,240 --> 00:01:33,030 We're going to first enable Google Cloud built. 26 00:01:33,030 --> 00:01:38,940 So back at my group cloud console I'm gonna go to the menu once again on the top left then scroll down 27 00:01:39,000 --> 00:01:47,930 a pretty good bit until I find tools right here a click on cloud built and then we'll click on enable 28 00:01:50,810 --> 00:01:52,180 and that should be it. 29 00:01:52,190 --> 00:01:55,740 Now this might take a couple of seconds so I'll just go ahead and let it do its thing. 30 00:01:56,060 --> 00:02:01,200 While that is running let's go back over to our code Ed where we are going to update our scaffold GMO 31 00:02:01,220 --> 00:02:06,830 file and again we're going to tell it that we wanted to use Google Cloud built it's going to open up 32 00:02:06,830 --> 00:02:13,880 my editor I've already got my scaffold file open right here we're gonna make just two small changes 33 00:02:13,880 --> 00:02:15,060 inside of here. 34 00:02:15,200 --> 00:02:20,360 So first off I'm going find where we specify the build section and then right after where it says local 35 00:02:20,360 --> 00:02:28,470 push false I'm gonna add in a new section that says Google Cloud builds I'll then specify a project 36 00:02:28,530 --> 00:02:35,880 I.D. notice that the D an I.D. is case and we're going to enter our project I.D. right there. 37 00:02:35,990 --> 00:02:40,620 Now remember our actual project I.D. is not exactly what it says at the top left hand side. 38 00:02:40,620 --> 00:02:42,420 It is not ticketing def. 39 00:02:42,420 --> 00:02:47,610 Instead we probably got assigned to you probably as well got assigned an I.D. randomly and that's what 40 00:02:47,610 --> 00:02:49,980 you see over here on the right hand column. 41 00:02:49,980 --> 00:02:55,380 So I'm going to take that I.D. copy it and then paste it over at Project I.D. 42 00:02:58,340 --> 00:03:03,780 then after that we're also going to update the image right there. 43 00:03:03,930 --> 00:03:06,510 So we kind of randomly decided on that name. 44 00:03:06,570 --> 00:03:10,830 The first part of the image name makes a lot of sense it's our doctor I.D. but the second part is again 45 00:03:10,860 --> 00:03:19,210 more or less random when we pass this building process off to Google cloud build so the thing that we 46 00:03:19,210 --> 00:03:23,440 were just out this thing right here it looks like the API is now been enabled Google cloud build is 47 00:03:23,440 --> 00:03:28,720 going to essentially more or less assign a somewhat random name was not really random it is a structured 48 00:03:28,720 --> 00:03:31,060 name to the images that it builds. 49 00:03:31,090 --> 00:03:35,500 So when you just specify the Image Name that Google cloud is going to assign to our image when it gets 50 00:03:35,500 --> 00:03:41,860 built the formats that Google Cloud uses to decide what to call your image is always the exact same 51 00:03:41,860 --> 00:03:42,270 format. 52 00:03:42,280 --> 00:03:50,880 It is always going to be us not GC R dot Io flash then the name of your project. 53 00:03:51,010 --> 00:03:55,330 So you're gonna put the urgency of the project I.D. you're gonna put your project I.D. the same thing 54 00:03:55,330 --> 00:04:01,980 we just paste it in a moment ago right after that slash and then after that we'll put in the name of 55 00:04:01,980 --> 00:04:02,990 our project directory. 56 00:04:03,000 --> 00:04:04,380 So in this case it's off. 57 00:04:04,460 --> 00:04:05,910 It's all put in off over there. 58 00:04:08,800 --> 00:04:09,630 And that's it. 59 00:04:11,490 --> 00:04:11,760 OK. 60 00:04:11,770 --> 00:04:17,000 So I'm gonna save this file and that's all we should have to change inside of our scaffold GMO file 61 00:04:18,440 --> 00:04:22,370 and then going to go back over to my diagram really quickly. 62 00:04:22,490 --> 00:04:25,890 So we just achieved step one and step two right there. 63 00:04:25,910 --> 00:04:30,950 Let's take another brief pause and we'll make sure that we do that initial setup of ingress and X on 64 00:04:30,950 --> 00:04:33,820 our Google Cloud cluster again in the next video.