From 0ab80169d78ed4dcab4d28f8de79194954011b41 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Wed, 11 Sep 2019 23:49:01 -0300 Subject: [PATCH] inicial --- .drone.yml | 14 ++++++++++++++ .gitignore | 7 +++++++ Dockerfile | 9 +++++++++ README.md | 5 +++++ 4 files changed, 35 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b2e996a --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45129e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# -*- mode: gitignore; -*- +*~ +\#*\# +*.elc +auto-save-list +tramp +.\#* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c938acf --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..08e849e --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Debian image with confd + +Simple Debian image with confd preinstalled. +Extend this image and add confd configuration into /etc/confd. +