Go to file
Jan Christian Grünhage f68e76056c
the build was successful Details
ci: add downstream build triggers
2018-03-26 21:37:32 +02:00
root/etc/s6.d feat: add su-exec 2017-12-13 16:28:27 +01:00
.drone.yml ci: add downstream build triggers 2018-03-26 21:37:32 +02:00
.gitignore docs: add documentation 2017-12-13 18:07:18 +01:00
Dockerfile refactor: move --no-cache to line above 2018-01-08 21:48:22 +01:00
README.md docs: add documentation 2017-12-13 18:07:18 +01:00

README.md

docker.jcg.re/base-alpine

Build Status

A small base image based on Alpine Linux (current stable release) and s6.

Building on top of this

To build on top of this image, you can base a Dockerfile on this:

FROM docker.jcg.re/base-alpine
MAINTAINER Your Name <your@email.adress>

RUN echo "install stuff here"

ADD root /

The folder structure of root should look kinda like this, every of these parts is optional:

root
|-- etc
|   |-- s6
|   |   |-- your-service
|   |   |   |-- run
|   |   |   |-- finish
|   |   |   |-- crash
|   |-- periodic
|   |   |-- hourly
|   |   |   |-- somescript

The folder your-service should contain three executables:

  • run, is run when the service is started (container startup)
  • finish, is run when the service is stopped
  • crash, is run when the service crashes

Also, your-service is an example name, you should replace it with the name of the software running in there.

Inside the /etc/periodic folder, there are 5 folders:

  • 15min
  • hourly
  • daily
  • weekly
  • monthly

Inside those, you can put executable shell scripts (starting with #!/bin/sh), and they'll be executed regularly in the specified interval.

For custom intervals, you can always edit crontab.