-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
118 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.git | ||
.circleci | ||
images | ||
tests | ||
LICENSE | ||
VERSION | ||
README.md | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM python:alpine3.7 | ||
FROM python:alpine3.8 | ||
LABEL maintainer="Adrien Ferrand <[email protected]>" | ||
|
||
# Scripts in /scripts are required to be in the PATH to run properly as certbot's hooks | ||
ENV PATH /scripts:$PATH | ||
|
||
# Versioning | ||
ENV LEXICON_VERSION 2.7.0 | ||
ENV CERTBOT_VERSION 0.26.1 | ||
ENV LEXICON_VERSION 2.7.3 | ||
ENV CERTBOT_VERSION 0.27.1 | ||
|
||
# Let's Encrypt configuration | ||
ENV LETSENCRYPT_STAGING false | ||
|
@@ -27,26 +27,28 @@ ENV CERTS_USER_OWNER root | |
ENV CERTS_GROUP_OWNER root | ||
|
||
# Install dependencies, certbot, lexicon, prepare for first start and clean | ||
RUN apk --no-cache --update add rsyslog git libffi libxml2 libxslt openssl supervisor docker \ | ||
&& apk --no-cache --update --virtual build-dependencies add libffi-dev libxml2-dev libxslt-dev openssl-dev python-dev build-base \ | ||
&& pip install "certbot==$CERTBOT_VERSION" \ | ||
&& pip install "dns-lexicon==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[namecheap]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[route53]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[softlayer]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[subreg]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[transip]==$LEXICON_VERSION" \ | ||
&& mkdir -p /var/lib/letsencrypt/hooks \ | ||
&& mkdir -p /etc/supervisord.d \ | ||
&& apk del build-dependencies | ||
RUN apk --no-cache --update add rsyslog git libffi libxml2 libxslt libstdc++ openssl docker ethtool \ | ||
&& apk --no-cache --update --virtual build-dependencies add libffi-dev libxml2-dev libxslt-dev openssl-dev build-base linux-headers \ | ||
&& pip install "certbot==$CERTBOT_VERSION" \ | ||
&& pip install "dns-lexicon==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[namecheap]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[route53]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[softlayer]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[subreg]==$LEXICON_VERSION" \ | ||
&& pip install "dns-lexicon[transip]==$LEXICON_VERSION" \ | ||
&& pip install circus \ | ||
&& mkdir -p /var/lib/letsencrypt/hooks \ | ||
&& mkdir -p /etc/circus.d \ | ||
&& apk del build-dependencies | ||
|
||
# Copy configuration files | ||
COPY files/run.sh /scripts/run.sh | ||
COPY files/watch-domains.sh /scripts/watch-domains.sh | ||
COPY files/autorestart-containers.sh /scripts/autorestart-containers.sh | ||
COPY files/autocmd-containers.sh /scripts/autocmd-containers.sh | ||
COPY files/crontab /etc/crontab | ||
COPY files/supervisord.conf /etc/supervisord.conf | ||
COPY files/circus.ini /etc/circus.ini | ||
COPY files/letsencrypt-dns.ini /etc/circus.d/letsencrypt-dns.ini | ||
COPY files/authenticator.sh /var/lib/letsencrypt/hooks/authenticator.sh | ||
COPY files/cleanup.sh /var/lib/letsencrypt/hooks/cleanup.sh | ||
COPY files/deploy-hook.sh /scripts/deploy-hook.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5.3 | ||
2.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[circus] | ||
httpd = false | ||
include_dir = /etc/circus.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[watcher:crond] | ||
cmd = /usr/sbin/crond -f | ||
copy_env = True | ||
stdout_stream.class = FancyStdoutStream | ||
stdout_stream.color = white | ||
stderr_stream.class = FancyStdoutStream | ||
stderr_stream.color = red | ||
|
||
[watcher:watch-domains] | ||
cmd = /scripts/watch-domains.sh | ||
copy_env = True | ||
stdout_stream.class = FancyStdoutStream | ||
stdout_stream.color = white | ||
stderr_stream.class = FancyStdoutStream | ||
stderr_stream.color = red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
file: | ||
/etc/letsencrypt/domains.conf: | ||
exists: true | ||
mode: "0644" | ||
size: 0 | ||
owner: root | ||
group: root | ||
filetype: file | ||
contains: [] | ||
port: | ||
tcp:5555: | ||
listening: true | ||
ip: | ||
- 127.0.0.1 | ||
tcp:5556: | ||
listening: true | ||
ip: | ||
- 127.0.0.1 | ||
udp:12027: | ||
listening: true | ||
ip: | ||
- 0.0.0.0 | ||
process: | ||
circusd: | ||
running: true | ||
crond: | ||
running: true | ||
sleep: | ||
running: true | ||
watch-domains.s: | ||
running: true |