Skip to content

cHolzberger/docker-debian-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Debian image

Customized version of the debian base image. Removes systemd and udev and adds them to the ignore list.

Does not install documentation of packages.

This Documentation is unfinished and needs some cleanup

Selections

This images provides an easy way to add packages to a derived image create a dir /selections add place a file inside this dir e.g. yourPackages which looks like: git install zsh install

then call RUN set-selections yourPackages inside your derived Dockerfile.

apt and dpkg preferences

place apt settings in config/apt and dpkg preferences in config/dpkg the will be included in the new image automaticaly.

confd

Including confd. See: https://github.com/kelseyhightower/confd/blob/master/docs/quick-start-guide.md

periodic

Including a cron like wrapper

entrypoint commands

this image contains some predefined commands:

shell -> Starts a bash inside the container init -> runs scripts in /container-init

By default it will start the command defined in CMD inside your Dockerfile using dinit.

init

you can init this container using the entrypoint "init" it will run /docker/container_init.d scripts using run-parts.

Periodic tasks

all tasks in /docker/periodic_hourly.d and /docker/periodic_daily.d will be run. they should be executable and will be run unsing run-parts.

http://manpages.ubuntu.com/manpages/trusty/de/man8/run-parts.8.html

Example

Integration daily script:

echo "run/whatever" >> /srv/runme.sh 
chmod a+x /srv/runme.sh

docker run -v /srv/runme.sh /docker/periodic_daily.d/runme.sh

Build Scripts

on every build process the directorys /config, /build.d and /sections are copied from the context. you need to have at least one file in each of these directories

Adding more layers of build scripts

COPY /something /build-xx
RUN run-build /build-xx

About

Motion docker container with confd support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages