mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-24 06:28:16 +01:00
Release 1.17.0 - See CHANGELOG.md
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
## 1.17.0 2019-12-09 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Stop compiling mongodb-tools as it is back in Alpine:edge repositories
|
||||||
|
- Cleanup Code
|
||||||
|
|
||||||
|
|
||||||
## 1.16 - 2019-06-16 - <dave at tiredofit dot ca>
|
## 1.16 - 2019-06-16 - <dave at tiredofit dot ca>
|
||||||
|
|
||||||
* Check to see if Database Exists before performing backup
|
* Check to see if Database Exists before performing backup
|
||||||
|
|||||||
91
Dockerfile
91
Dockerfile
@@ -1,60 +1,51 @@
|
|||||||
FROM tiredofit/mongo-builder as mongo-packages
|
|
||||||
|
|
||||||
FROM tiredofit/alpine:edge
|
FROM tiredofit/alpine:edge
|
||||||
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
||||||
|
|
||||||
### Copy Mongo Packages
|
|
||||||
COPY --from=mongo-packages / /usr/src/apk
|
|
||||||
|
|
||||||
### Set Environment Variables
|
### Set Environment Variables
|
||||||
ENV ENABLE_CRON=FALSE \
|
ENV ENABLE_CRON=FALSE \
|
||||||
ENABLE_SMTP=FALSE \
|
ENABLE_SMTP=FALSE \
|
||||||
ENABLE_ZABBIX=FALSE
|
ENABLE_ZABBIX=FALSE \
|
||||||
|
ZABBIX_HOSTNAME=db-backup
|
||||||
|
|
||||||
### 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 -t .db-backup-build-deps \
|
||||||
build-base \
|
build-base \
|
||||||
bzip2-dev \
|
bzip2-dev \
|
||||||
git \
|
git \
|
||||||
xz-dev \
|
xz-dev \
|
||||||
&& \
|
&& \
|
||||||
\
|
\
|
||||||
apk add -t .db-backup-run-deps \
|
apk add -t .db-backup-run-deps \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
influxdb \
|
influxdb \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
libressl \
|
mongodb-tools \
|
||||||
pigz \
|
libressl \
|
||||||
postgresql \
|
pigz \
|
||||||
postgresql-client \
|
postgresql \
|
||||||
redis \
|
postgresql-client \
|
||||||
xz \
|
redis \
|
||||||
&& \
|
xz \
|
||||||
apk add \
|
&& \
|
||||||
pixz@testing \
|
\
|
||||||
&& \
|
apk add \
|
||||||
\
|
pixz@testing \
|
||||||
## Locally Install Mongo Package
|
&& \
|
||||||
cd /usr/src/apk && \
|
\
|
||||||
apk add -t .db-backup-mongo-deps --allow-untrusted \
|
mkdir -p /usr/src/pbzip2 && \
|
||||||
mongodb-tools*.apk \
|
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 /usr/src/pbzip2 && \
|
||||||
\
|
make && \
|
||||||
cd /usr/src && \
|
make install && \
|
||||||
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 && \
|
|
||||||
cd pbzip2 && \
|
|
||||||
make && \
|
|
||||||
make install && \
|
|
||||||
\
|
|
||||||
### Cleanup
|
### Cleanup
|
||||||
rm -rf /usr/src/* && \
|
apk del .db-backup-build-deps && \
|
||||||
apk del .db-backup-build-deps && \
|
rm -rf /usr/src/* && \
|
||||||
rm -rf /tmp/* /var/cache/apk/*
|
rm -rf /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
### S6 Setup
|
### S6 Setup
|
||||||
ADD install /
|
ADD install /
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2016 Dave Conroy
|
Copyright (c) 2019 Dave Conroy
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
Reference in New Issue
Block a user