diff --git a/README.md b/README.md index 870e5e9..5a38067 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,24 @@ # docker-base -[![](https://images.microbadger.com/badges/image/madharjan/docker-base.svg)](http://microbadger.com/images/madharjan/docker-base "Get your own image badge on microbadger.com") +[![Build Status](https://travis-ci.com/madharjan/docker-base.svg?branch=master)](https://travis-ci.com/madharjan/docker-base) +[![Layers](https://images.microbadger.com/badges/image/madharjan/docker-base.svg)](http://microbadger.com/images/madharjan/docker-base) Docker baseimage based on [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker) -**Changes** +## Changes + * Removed `ssh` service -**Features** +## Features + * Environment variables to disable services * Using scripts in `my_init.d` to initialize services (e.g base-startup.sh, nginx-startup.sh .. etc) * Using scripts in `my_shutdown.d` to cleanup services before container stop (e.g postfix-stop.sh ..etc) * Bats ([sstephenson/bats](https://github.com/sstephenson/bats/)) based test cases Example: -``` + +```bash docker run -d \ -e DISABLE_SYSLOG=1 \ -e DISABLE_CRON=0 \ @@ -23,7 +27,7 @@ docker run -d \ ## Ubuntu 14.04 (docker-base) -**Environment** +### Environment | Variable | Default | Set to disable | |----------------|---------|----------------| @@ -33,13 +37,15 @@ docker run -d \ ## Build ### Clone this project -``` + +```bash git clone https://github.com/madharjan/docker-base cd docker-base ``` ### Build Container `baseimage` -``` + +```bash # login to DockerHub docker login @@ -59,8 +65,9 @@ make tag_latest make release ``` -**Tag and Commit to Git** -``` +### Tag and Commit to Git + +```bash git tag 14.04 git push origin 14.04 ```