Setting up your code

The first step to creating an automated build is to set up your GitHub or Bitbucket repository. These are the two options you have while selecting where to store your code. For our example, I will be using GitHub, but the setup will be the same for GitHub and Bitbucket. In fact, I will be using the repository for this book, which you can find at https://github.com/russmckendrick/mastering-docker/.

As the repository is publicly available, you could fork it and follow along using your own GitHub account:

In Chapter 2, Building Container Images, we worked through a Dockerfile. We will be using that as the base for our automated build. If you remember, we installed ngnix and added a simple page with the message Hello world! This is being served from Docker.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset