forked from tiredofit/docker-db-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (46 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM tiredofit/alpine:edge
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
### Set Environment Variables
ENV ENABLE_CRON=FALSE \
ENABLE_SMTP=FALSE
### Dependencies
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 \
mongodb-tools \
mariadb-client \
openssl \
pigz \
postgresql \
postgresql-client \
redis \
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 /