1 00:00:04,450 --> 00:00:10,620 ‫OK. Now that we've learned how to add build environment configurations to our compose file, we're going 2 00:00:10,620 --> 00:00:15,420 ‫to start an assignment that is going to build on the last assignment. 3 00:00:16,350 --> 00:00:20,580 ‫We're going to use the same compose file you had before. This time, we're actually going to create 4 00:00:20,580 --> 00:00:26,450 ‫a custom, Drupal image from the official repository, and we're going to add some stuff to it. 5 00:00:26,460 --> 00:00:29,980 ‫The scenario here would be is that you're not actually a developer this time. 6 00:00:30,270 --> 00:00:34,890 ‫Maybe you're a sysadmin, or maybe you're a software tester, or maybe you're just wanting to learn Drupal and 7 00:00:34,890 --> 00:00:39,080 ‫you just want to be a Drupal admin. Docker is great for that, too. 8 00:00:39,090 --> 00:00:41,980 ‫Compose can really make things so much easier. 9 00:00:42,030 --> 00:00:48,240 ‫If you can imagine before, just a few years ago, if you had a Mac or Windows machine and someone said, 10 00:00:48,270 --> 00:00:52,500 ‫'hey, you need to learn Drupal,' now you've got to get postgres or MySQL installed. Then you've 11 00:00:52,500 --> 00:00:57,180 ‫got to get PHP and Apache installed. Then you got to get Drupal installed and all the modules that go 12 00:00:57,180 --> 00:00:57,670 ‫with it. 13 00:00:57,690 --> 00:01:02,640 ‫Then the templating. You know, it just it goes on and on. The complexity there really discourages 14 00:01:02,640 --> 00:01:06,240 ‫people from actually trying to run it themselves, which is a shame. 15 00:01:06,240 --> 00:01:11,610 ‫Compose solves that problem for those people, and you might be one of them, where you just want to 16 00:01:11,610 --> 00:01:13,250 ‫run a piece of software to use it. 17 00:01:13,260 --> 00:01:14,640 ‫You don't want to develop on it. 18 00:01:14,640 --> 00:01:17,910 ‫You're not trying to change it. You just want to try it. 19 00:01:17,910 --> 00:01:23,190 ‫But the complexity of getting it running was so much before, that it would discourage some people from 20 00:01:23,190 --> 00:01:24,280 ‫even trying it. 21 00:01:24,750 --> 00:01:28,620 ‫Again, we're going to start with your compose file that you built in the previous assignment for this 22 00:01:28,620 --> 00:01:35,610 ‫section. We're going to create a Dockerfile first, that is a custom image of a Drupal, with a template added 23 00:01:35,610 --> 00:01:35,970 ‫in it. 24 00:01:35,970 --> 00:01:41,040 ‫Basically, all we're doing here is we're creating the same thing as before, only we're going to build 25 00:01:41,040 --> 00:01:47,910 ‫that Dockerfile with a bootstrap template. That's the name of the template, and it's going to allow you to 26 00:01:47,910 --> 00:01:50,790 ‫add the template into the GUI of Drupal. 27 00:01:50,880 --> 00:01:52,510 ‫This really isn't about learning Drupal. 28 00:01:52,530 --> 00:01:54,030 ‫Obviously, we're here to learn Docker. 29 00:01:54,150 --> 00:01:58,680 ‫But I wanted you to go through this exercise of understanding how this could be useful for someone who is 30 00:01:58,680 --> 00:02:05,040 ‫not a developer. And how we can add build environment options to our Compose so that we can still just 31 00:02:05,040 --> 00:02:11,190 ‫do the single, one line, docker compose up, just like we did before, but now it's actually on the fly building 32 00:02:11,190 --> 00:02:13,340 ‫images if it needs them. 33 00:02:13,380 --> 00:02:16,750 ‫We're going to use Drupal and postgres just like before. 34 00:02:16,770 --> 00:02:21,720 ‫Inside our Repo, the compose assignment 2 directory, will have a readme, and you're going to use the 35 00:02:21,720 --> 00:02:22,380 ‫compose file. 36 00:02:22,380 --> 00:02:24,360 ‫Hope you saved it from last time. 37 00:02:24,450 --> 00:02:25,830 ‫You're going to put that in there. 38 00:02:25,980 --> 00:02:29,910 ‫Then also build a Dockerfile. Then follow the instructions in the readme. 39 00:02:30,000 --> 00:02:34,740 ‫I'm just going to pull up that readme real quick so we can just quickly review it. 40 00:02:34,750 --> 00:02:40,360 ‫OK. As you can see, it's actually quite wordy. I tried to give you as much information as I could 41 00:02:40,360 --> 00:02:43,290 ‫without completely answering the whole thing for you. 42 00:02:43,510 --> 00:02:46,780 ‫Most of the lines for the Dockerfile are in here. 43 00:02:47,260 --> 00:02:51,970 ‫It should be very explicit about exactly what you have to do. Then you're using the compose file before 44 00:02:51,970 --> 00:02:54,070 ‫and you're only changing a few lines of it. 45 00:02:54,190 --> 00:02:59,390 ‫Of course, if you get stuck or you just want to see how I would do it, watch the next lecture. 46 00:02:59,530 --> 00:03:04,350 ‫You can watch me run through it as I would do it. Hopefully, you'll take a few minutes and give this a try 47 00:03:04,750 --> 00:03:05,840 ‫and have some fun.