‫OK. This is me walking through the assignment on bind mounts. I start out here in the bind mount sample
‫1 directory. If I look here, I see some markdown files and other things. I don't really have to
‫care about those, but those are the standard template files from a Jekyll website.
‫I know normally if I was going to use Jekyll on my machine, I'd have to actually install Jekyll,
‫which requires a specific version of Ruby and other tools.
‫The nice thing here is I don't have to do any of that. I can type the docker run.
‫We can also type docker container run, but I'm going to use the shorthand form here. I'm going to forward
‫port 80 to port 4000 in the container like we specified.
‫Then I need to mount this directory into the container,
‫into that site directory, and then I need to run
‫the Jekyll serve image.
‫OK. I can see what happened here was when it actually started up Jekyll, it actually built this website
‫from those source files.
‫I don't have to know what all that means, but I can tell down here at the bottom, that it's actually started
‫and the server is running.
‫I can press Control c to stop.
‫Then let me go over to my browser and type localhost.
‫OK. Default website. It looks like it has one post, which is this page here.
‫All right.
‫Now I'm going to go over to my code editor, and I'm going to pull up that post file like we talked about,
‫and I'm going to change something in here.
‫I'm actually going to change the title.
‫And I'm going to save it.
‫It looks like my logs back here say it's detected the changes in that file.
‫If I go back over to my browser and hit refresh...there we go.
‫As you can see here, my files are correctly being mapped into the container.
‫The container sees the file changes on the host and then updates its code.
‫There we go.
‫If you're interested in Jekyll, Jekyll is actually a really cool Static Site Generator. It's great
‫for making websites on GitHub, which are free by the way.
‫You can find more information about it here.
‫Instead of actually installing it the way they're suggesting, you can go ahead and use mycontainer
‫or build your own.
‫If you wanted to use mycontainer to play around with Jekyll on your own time, you can actually
‫see all the information I've provided, and documentation on how to use it, on Docker Hub or on GitHub.