This commit is contained in:
Mauro Torrez 2019-09-11 23:49:01 -03:00
commit 0ab80169d7
4 changed files with 35 additions and 0 deletions

14
.drone.yml Normal file
View File

@ -0,0 +1,14 @@
---
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: eumau/debian
auto_tag: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
# -*- mode: gitignore; -*-
*~
\#*\#
*.elc
auto-save-list
tramp
.\#*

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
ARG DEBIAN_VERSION=buster-slim
FROM debian:${DEBIAN_VERSION}
ARG CONFD_VERSION=0.16.0
ADD https://github.com/kelseyhightower/confd/releases/download/v${CONFD_VERSION}/confd-${CONFD_VERSION}-linux-amd64 /usr/local/bin/confd
RUN mkdir -p /start.d \
&& printf '#!/bin/bash\nset -e\n/usr/local/bin/confd -onetime -backend env\nfind /start.d -maxdepth 1 -type f -exec cmd option {} \;\nexec ${@}\n' > /entrypoint.sh \
&& mkdir -p /etc/confd/conf.d /etc/confd/templates \
&& chmod +x /usr/local/bin/confd /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# Debian image with confd
Simple Debian image with confd preinstalled.
Extend this image and add confd configuration into /etc/confd.