Skip to content

Commit d7bdcbd

Browse files
committed
Release 1.17.0 - See CHANGELOG.md
1 parent 62ee7ad commit d7bdcbd

File tree

3 files changed

+49
-51
lines changed

3 files changed

+49
-51
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.17.0 2019-12-09 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Stop compiling mongodb-tools as it is back in Alpine:edge repositories
5+
- Cleanup Code
6+
7+
18
## 1.16 - 2019-06-16 - <dave at tiredofit dot ca>
29

310
* Check to see if Database Exists before performing backup

Dockerfile

Lines changed: 41 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,51 @@
1-
FROM tiredofit/mongo-builder as mongo-packages
2-
31
FROM tiredofit/alpine:edge
42
LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
53

6-
### Copy Mongo Packages
7-
COPY --from=mongo-packages / /usr/src/apk
8-
94
### Set Environment Variables
10-
ENV ENABLE_CRON=FALSE \
11-
ENABLE_SMTP=FALSE \
12-
ENABLE_ZABBIX=FALSE
5+
ENV ENABLE_CRON=FALSE \
6+
ENABLE_SMTP=FALSE \
7+
ENABLE_ZABBIX=FALSE \
8+
ZABBIX_HOSTNAME=db-backup
139

1410
### Dependencies
15-
RUN set -ex && \
16-
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
17-
apk update && \
18-
apk upgrade && \
19-
apk add --virtual .db-backup-build-deps \
20-
build-base \
21-
bzip2-dev \
22-
git \
23-
xz-dev \
24-
&& \
25-
\
26-
apk add -t .db-backup-run-deps \
27-
bzip2 \
28-
influxdb \
29-
mariadb-client \
30-
libressl \
31-
pigz \
32-
postgresql \
33-
postgresql-client \
34-
redis \
35-
xz \
36-
&& \
37-
apk add \
38-
pixz@testing \
39-
&& \
40-
\
41-
## Locally Install Mongo Package
42-
cd /usr/src/apk && \
43-
apk add -t .db-backup-mongo-deps --allow-untrusted \
44-
mongodb-tools*.apk \
45-
&& \
46-
\
47-
cd /usr/src && \
48-
mkdir -p pbzip2 && \
49-
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 && \
50-
cd pbzip2 && \
51-
make && \
52-
make install && \
53-
\
11+
RUN set -ex && \
12+
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
13+
apk update && \
14+
apk upgrade && \
15+
apk add -t .db-backup-build-deps \
16+
build-base \
17+
bzip2-dev \
18+
git \
19+
xz-dev \
20+
&& \
21+
\
22+
apk add -t .db-backup-run-deps \
23+
bzip2 \
24+
influxdb \
25+
mariadb-client \
26+
mongodb-tools \
27+
libressl \
28+
pigz \
29+
postgresql \
30+
postgresql-client \
31+
redis \
32+
xz \
33+
&& \
34+
\
35+
apk add \
36+
pixz@testing \
37+
&& \
38+
\
39+
mkdir -p /usr/src/pbzip2 && \
40+
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 && \
41+
cd /usr/src/pbzip2 && \
42+
make && \
43+
make install && \
44+
\
5445
### Cleanup
55-
rm -rf /usr/src/* && \
56-
apk del .db-backup-build-deps && \
57-
rm -rf /tmp/* /var/cache/apk/*
46+
apk del .db-backup-build-deps && \
47+
rm -rf /usr/src/* && \
48+
rm -rf /tmp/* /var/cache/apk/*
5849

5950
### S6 Setup
6051
ADD install /

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Dave Conroy
3+
Copyright (c) 2019 Dave Conroy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)