Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 1bd1db7

Browse files
committed
New: Add image build scripts
1 parent a4cae96 commit 1bd1db7

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

haproxy/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM haproxy:2.1.3-alpine
2+
3+
# Packages
4+
RUN apk add --no-cache certbot
5+
6+
# Copy backup/cleanup scripts
7+
COPY backup /usr/local/bin/backup
8+
COPY cleanup /usr/local/bin/cleanup
9+
10+
# GP service identification
11+
RUN echo "haproxy" > /gp.service

haproxy/backup

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
mkdir -p /var/backups/gp/haproxy
6+
rsync -a --relative --delete /usr/local/etc/haproxy.cfg /var/backups/gp/haproxy/
7+
rsync -a --relative --delete /etc/letsencrypt/ /var/backups/gp/haproxy/

haproxy/cleanup

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/bin/bash

0 commit comments

Comments
 (0)