This commit is contained in:
parent
b27be8a519
commit
4be279d03f
3 changed files with 5 additions and 15 deletions
|
@ -2,7 +2,7 @@ pipeline:
|
||||||
publish:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
registry: registry.nulo.in
|
registry: registry.nulo.in
|
||||||
repo: registry.nulo.in/sutty/CHANGEME
|
repo: registry.nulo.in/sutty/certbot
|
||||||
tags:
|
tags:
|
||||||
- ${ALPINE_VERSION}
|
- ${ALPINE_VERSION}
|
||||||
- latest
|
- latest
|
||||||
|
|
18
Dockerfile
18
Dockerfile
|
@ -3,23 +3,13 @@ ARG BASE_IMAGE=sutty/monit
|
||||||
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
||||||
MAINTAINER "f <f@sutty.nl>"
|
MAINTAINER "f <f@sutty.nl>"
|
||||||
|
|
||||||
# Install requisites
|
|
||||||
RUN apk add --no-cache certbot jq wget
|
|
||||||
|
|
||||||
# Run certbot
|
|
||||||
COPY ./monit.conf /etc/monit.d/certbot.conf
|
|
||||||
|
|
||||||
# Install certbot's script
|
|
||||||
COPY ./certbot.sh /usr/local/bin/certbot
|
|
||||||
RUN chmod +x /usr/local/bin/certbot
|
|
||||||
|
|
||||||
# Add ssl group
|
|
||||||
RUN addgroup -S -g 777 ssl
|
RUN addgroup -S -g 777 ssl
|
||||||
|
|
||||||
RUN apk add --no-cache openssh-client rsync
|
|
||||||
RUN install -dm 2750 -o root -g root /root/.ssh
|
RUN install -dm 2750 -o root -g root /root/.ssh
|
||||||
|
RUN apk add --no-cache certbot jq wget openssh-client rsync
|
||||||
|
|
||||||
|
COPY ./monit.conf /etc/monit.d/certbot.conf
|
||||||
|
COPY ./certbot.sh /usr/local/bin/certbot
|
||||||
COPY ./ssh_config /root/.ssh/config
|
COPY ./ssh_config /root/.ssh/config
|
||||||
|
|
||||||
# Access to certificates and challenges
|
|
||||||
VOLUME /etc/letsencrypt
|
VOLUME /etc/letsencrypt
|
||||||
VOLUME /var/lib/letsencrypt
|
VOLUME /var/lib/letsencrypt
|
||||||
|
|
0
certbot.sh
Normal file → Executable file
0
certbot.sh
Normal file → Executable file
Loading…
Reference in a new issue