mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-24 06:28:16 +01:00
Sync with Private Repo
This commit is contained in:
54
Dockerfile
54
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM tiredofit/alpine:edge
|
||||
FROM registry.selfdesign.org/docker/alpine:edge
|
||||
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
||||
|
||||
### Set Environment Variables
|
||||
@@ -6,26 +6,44 @@ LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
|
||||
ENABLE_SMTP=FALSE
|
||||
|
||||
### Dependencies
|
||||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk add \
|
||||
RUN set -ex ; \
|
||||
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories ; \
|
||||
apk update ; \
|
||||
apk upgrade ; \
|
||||
apk add --virtual .db-backup-build-deps \
|
||||
build-base \
|
||||
bzip2-dev \
|
||||
git \
|
||||
xz-dev \
|
||||
; \
|
||||
\
|
||||
apk add --virtual .db-backup-run-deps \
|
||||
bzip2 \
|
||||
influxdb@testing \
|
||||
mongodb-tools \
|
||||
mysql-client \
|
||||
postgresql \
|
||||
postgresql-client \
|
||||
mariadb-client \
|
||||
openssl \
|
||||
pigz \
|
||||
postgresql \
|
||||
postgresql-client \
|
||||
redis \
|
||||
xz \
|
||||
&& \
|
||||
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
xz \
|
||||
; \
|
||||
apk add \
|
||||
influxdb@testing \
|
||||
pixz@testing \
|
||||
; \
|
||||
\
|
||||
cd /usr/src ; \
|
||||
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
|
||||
rm -rf /usr/src/* ; \
|
||||
apk del .db-backup-build-deps ; \
|
||||
rm -rf /tmp/* /var/cache/apk/*
|
||||
|
||||
### S6 Setup
|
||||
ADD install /
|
||||
|
||||
### Entrypoint Configuration
|
||||
ENTRYPOINT ["/init"]
|
||||
|
||||
ADD install /
|
||||
|
||||
Reference in New Issue
Block a user