Swap out openssl for libressl

This commit is contained in:
Dave Conroy
2018-11-03 07:48:19 -07:00
parent 02cd355025
commit 5d1ae25828
3 changed files with 39 additions and 25 deletions

View File

@@ -1,3 +1,11 @@
## 1.9 - 2018-11-03 - <dave at tiredofit dot ca>
* Switch from OpenSSL to LibreSSL
## 1.8 - 2018-07-18 - <dave at tiredofit dot ca>
* Fix warnings on startup related to 1.7 Changes
## 1.7 - 2018-06-06 - <dave at tiredofit dot ca> ## 1.7 - 2018-06-06 - <dave at tiredofit dot ca>
* Added ability for Manual Backup (enter container and type `backup-now`) * Added ability for Manual Backup (enter container and type `backup-now`)

View File

@@ -6,44 +6,43 @@ LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
ENABLE_SMTP=FALSE ENABLE_SMTP=FALSE
### Dependencies ### Dependencies
RUN set -ex ; \ RUN set -ex && \
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories ; \ echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk update ; \ apk update && \
apk upgrade ; \ apk upgrade && \
apk add --virtual .db-backup-build-deps \ apk add --virtual .db-backup-build-deps \
build-base \ build-base \
bzip2-dev \ bzip2-dev \
git \ git \
xz-dev \ xz-dev \
; \ && \
\ \
apk add --virtual .db-backup-run-deps \ apk add --virtual .db-backup-run-deps \
bzip2 \ bzip2 \
mongodb-tools \ mongodb-tools \
mariadb-client \ mariadb-client \
openssl \ libressl \
pigz \ pigz \
postgresql \ postgresql \
postgresql-client \ postgresql-client \
redis \ redis \
xz \ xz \
; \ && \
\
apk add \ apk add \
influxdb@testing \ influxdb@testing \
pixz@testing \ pixz@testing \
; \ && \
\ \
cd /usr/src ; \ cd /usr/src && \
mkdir -p pbzip2 ; \ mkdir -p pbzip2 && \
curl -ssL https://launchpad.net/pbzip2/1.1/1.1.13/+download/pbzip2-1.1.13.tar.gz | tar xvfz - --strip=1 -C /usr/src/pbzip2 ; \ curl -ssL https://launchpad.net/pbzip2/1.1/1.1.13/+download/pbzip2-1.1.13.tar.gz | tar xvfz - --strip=1 -C /usr/src/pbzip2 && \
cd pbzip2 ; \ cd pbzip2 && \
make ; \ make && \
make install ; \ make install && \
\ \
# Cleanup # Cleanup
rm -rf /usr/src/* ; \ rm -rf /usr/src/* && \
apk del .db-backup-build-deps ; \ apk del .db-backup-build-deps && \
rm -rf /tmp/* /var/cache/apk/* rm -rf /tmp/* /var/cache/apk/*
### S6 Setup ### S6 Setup

View File

@@ -1,5 +1,12 @@
# tiredofit/db-backup # tiredofit/db-backup
[![Build Status](https://img.shields.io/docker/build/tiredofit/db-backup.svg)](https://hub.docker.com/r/tiredofit/db-backup)
[![Docker Pulls](https://img.shields.io/docker/pulls/tiredofit/db-backup.svg)](https://hub.docker.com/r/tiredofit/db-backup)
[![Docker Stars](https://img.shields.io/docker/stars/tiredofit/db-backup.svg)](https://hub.docker.com/r/tiredofit/db-backup)
[![Docker Layers](https://images.microbadger.com/badges/image/tiredofit/db-backup.svg)](https://microbadger.com/images/tiredofit/db-backup)
# Introduction # Introduction
This will build a container for backing up multiple type of DB Servers This will build a container for backing up multiple type of DB Servers
@@ -16,8 +23,7 @@ Currently backs up CouchDB, InfluxDB, MySQL, MongoDB Postgres, Redis, Rethink se
* select how often to run a dump * select how often to run a dump
* select when to start the first dump, whether time of day or relative to container start time * select when to start the first dump, whether time of day or relative to container start time
This Container uses a [customized version of](https://hub.docker.com/r/tiredofit/alpine) alpine:edge as a base. This Container uses Alpine:Edge as a base.
[Changelog](CHANGELOG.md) [Changelog](CHANGELOG.md)
@@ -45,7 +51,8 @@ You must have a working DB server or container available for this to work proper
# Installation # Installation
Automated builds of the image are available on [Docker Hub](https://hub.docker.com/tiredofit/db-backup) and is the recommended method of installation. Automated builds of the image are available on [Docker Hub](https://hub.docker.com/r/tiredofit/db-backup) and is the recommended
method of installation.
```bash ```bash
@@ -80,7 +87,7 @@ Along with the Environment Variables from the [Base image](https://hub.docker.co
| Parameter | Description | | Parameter | Description |
|-----------|-------------| |-----------|-------------|
| `DB_TYPE` | Type of DB Server to backup `couch` `influx` `mysql` `pgsql` `mongo` `redis` `rethink` | `DB_TYPE` | Type of DB Server to backup `couch` `influx` `mysql` `pgsql` `mongo` `redis` `rethink`
| `DB_HOST` | Server Hostname e.g. `mariadb` | `DB_SERVER` | Server Hostname e.g. `mariadb`
| `DB_NAME` | Schema Name e.g. `database` | `DB_NAME` | Schema Name e.g. `database`
| `DB_USER` | username for the database - use `root` to backup all MySQL of them. | `DB_USER` | username for the database - use `root` to backup all MySQL of them.
| `DB_PASS` | (optional if DB doesn't require it) password for the database | `DB_PASS` | (optional if DB doesn't require it) password for the database
@@ -89,7 +96,7 @@ Along with the Environment Variables from the [Base image](https://hub.docker.co
| | Absolute HHMM, e.g. `2330` or `0415` | | Absolute HHMM, e.g. `2330` or `0415`
| | Relative +MM, i.e. how many minutes after starting the container, e.g. `+0` (immediate), `+10` (in 10 minutes), or `+90` in an hour and a half | | Relative +MM, i.e. how many minutes after starting the container, e.g. `+0` (immediate), `+10` (in 10 minutes), or `+90` in an hour and a half
| `DB_DUMP_DEBUG` | If set to `true`, print copious shell script messages to the container log. Otherwise only basic messages are printed. | `DB_DUMP_DEBUG` | If set to `true`, print copious shell script messages to the container log. Otherwise only basic messages are printed.
| `DB_DUMP_TARGET` | Where to put the dump file, should be a directory. Default - `/backups` | | `DB_DUMP_TARGET` | Where to put the dump file, should be a directory. Supports three formats |
| | Local If the value of `DB_DUMP_TARGET` starts with a `/` character, will dump to a local path, which should be volume-mounted. | | Local If the value of `DB_DUMP_TARGET` starts with a `/` character, will dump to a local path, which should be volume-mounted.
| `DB_CLEANUP_TIME` | Value in minutes to delete old backups (only fired when dump freqency fires). 1440 would delete anything above 1 day old. You don't need to set this variable if you want to hold onto everything. | `DB_CLEANUP_TIME` | Value in minutes to delete old backups (only fired when dump freqency fires). 1440 would delete anything above 1 day old. You don't need to set this variable if you want to hold onto everything.
| `COMPRESSION` | Use either Gzip `GZ`, Bzip2 `BZ`, XZip `XZ`, or none `NONE` - Default `GZ` | `COMPRESSION` | Use either Gzip `GZ`, Bzip2 `BZ`, XZip `XZ`, or none `NONE` - Default `GZ`