fixes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-03-07 19:24:03 -03:00
parent b27be8a519
commit 4be279d03f
3 changed files with 5 additions and 15 deletions

View file

@ -2,7 +2,7 @@ pipeline:
publish:
image: plugins/docker
registry: registry.nulo.in
repo: registry.nulo.in/sutty/CHANGEME
repo: registry.nulo.in/sutty/certbot
tags:
- ${ALPINE_VERSION}
- latest

View file

@ -3,23 +3,13 @@ ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
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 apk add --no-cache openssh-client rsync
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
# Access to certificates and challenges
VOLUME /etc/letsencrypt
VOLUME /var/lib/letsencrypt

0
certbot.sh Normal file → Executable file
View file