Skip to content

Docker baseimage based on phusion/baseimage-docker

License

Notifications You must be signed in to change notification settings

OneZoom/docker-base

This branch is 1 commit ahead of madharjan/docker-base:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bf70754 · Dec 26, 2021

History

41 Commits
Sep 26, 2021
May 5, 2019
May 4, 2019
Dec 26, 2021
Oct 4, 2016
May 4, 2019
May 21, 2019
Apr 27, 2019
Sep 26, 2021
Sep 26, 2021
Sep 26, 2021
Aug 1, 2016
Sep 26, 2021
Sep 26, 2021

Repository files navigation

docker-base

Build Status

Docker baseimage based on phusion/baseimage-docker

Changes

  • Removed ssh service
  • Updated to Ubuntu 20.04

Features

  • Environment variables to disable services
  • Using scripts in my_init.d to initialize services (e.g 10-startup.sh, 20-nginx.sh .. etc)
  • Using scripts in my_shutdown.d to cleanup services before container stop (e.g 80-postfix.sh ..etc)
  • Bats (bats-core/bats-core) based test cases

Ubuntu 20.04 (docker-base)

Environment

Variable Default Example
DISABLE_SYSLOG 0 1 (to disable)
DISABLE_CRON 0 1 (to disable)

Build

# clone project
git clone https://github.com/madharjan/docker-base
cd docker-base

# build
make

# tests
make run
make test

# clean
make clean

Run

# stop & remove previous instances
docker stop base
docker rm base

# run container
docker run -d \
  -e DEBUG=false \
  -e DISABLE_SYSLOG=0 \
  -e DISABLE_CRON=0 \
  --name base madharjan/docker-base:20.04 \
  /sbin/my_init --log-level 3

About

Docker baseimage based on phusion/baseimage-docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 52.1%
  • Shell 37.8%
  • Makefile 7.9%
  • Dockerfile 2.2%