Build your own Docker Hub image

We are going to push your repository to Docker Hub and build image automatically. This will help our DevOps team keep updated with the latest image globally.

Let’s get started!

Create a Github account

If you already have a Github account you can use it. We assume you have already create a repository. In this example I already create a fork repository from posativ/isso to my github account, https://github.com/wahyuway/isso.

Create a Docker Hub account and Linked accounts

Go to https://hub.docker.com and create your own account. Go to Account Settings and navigate to Linked Accounts. Authenticate with Github Oauth2 then your Github account will be linked to your Docker Hub account.

Navigate to Account Settings

Linked Github account to Docker Hub

Create Docker Hub Repository

Then back to Docker Hub main dashboard. Navigate to Repositories and create new repository.

Fill respected form with your own description. You can choose Docker Hub to make an auto build image from repository. You have to configure Build Settings to enable Autobuild feature that will trigger a new build with every git push to your source code repository.

Hit Create & Build. And wait until Docker finish the building process.

After successful build, you can know access newly created Docker Hub image at https://hub.docker.com/r/wahyuway/isso/. Whenever you update your master repository, Docker Hub will automatically build to docker image.

Leave a Reply

Your email address will not be published. Required fields are marked *