Skip to main content

Posts

Showing posts from April, 2018

Docker Automated Builds

When it comes to " dockerization " of your application, it might be possible that your apps are under continuous development and needs to generate new docker image frequently based on the app updation. So, if haven't gone through my previous Articles regarding  Docker Overview  and  Docker Basics , then please go through those first. Solution : Automation of the Docker Build using Docker Automated Build feature of hub.docker.com How? Let's find out. All we have to do is to link Docker and Github to automate the build process. Following steps will teach you to do so with a sample project on Github. Step 1 : Create account on both Github.com and hub.docker.com Step 2 : Create a repository on the Github as per your requirements. Step 3 : Create a file named as "Dockerfile" with the following contents FROM ubuntu:16.04 USER root WORKDIR /root RUN apt-get update -y \     && apt-get install -y apache2 RUN