Compare commits

...

6 Commits
2.7.0 ... 2.8.2

Author SHA1 Message Date
Dave Conroy
2e0c0d9248 Release 2.8.2 - See CHANGELOG.md 2021-10-15 09:52:25 -07:00
Dave Conroy
c81d8e2713 Release 2.8.1 - See CHANGELOG.md 2021-09-01 07:43:01 -07:00
Dave Conroy
b808b35624 Release 2.8.0 - See CHANGELOG.md 2021-08-27 07:22:59 -07:00
Dave Conroy
e060aeb0e5 Merge pull request #70 from the1ts/master
Fix syntax error - Issue #69
2021-06-22 08:26:58 -07:00
Paul Mansfield
03c16cc582 Fix syntax error
Case statement is missing double semi-colon.
2021-06-22 14:06:07 +01:00
Dave Conroy
e45d916b00 Release 2.7.0 - See CHANGELOG.md 2021-06-17 08:45:57 -07:00
5 changed files with 42 additions and 19 deletions

View File

@@ -1,3 +1,31 @@
## 2.8.2 2021-10-15 <dave at tiredofit dot ca>
### Changed
- Change to using aws cli from Alpine repositories (fixes #81)
## 2.8.1 2021-09-01 <dave at tiredofit dot ca>
### Changed
- Modernize image with updated environment varialbes from upstream
## 2.8.0 2021-08-27 <dave at tiredofit dot ca>
### Added
- Alpine 3.14 Base
### Changed
- Fix for syntax error in 2.7.0 Release (Credit the1ts@github)
- Cleanup image and leftover cache with AWS CLI installation
## 2.7.0 2021-06-17 <dave at tiredofit dot ca>
### Added
- MongoDB Authentication Database support (DB_AUTH)
## 2.6.1 2021-06-08 <jwillmer@github> ## 2.6.1 2021-06-08 <jwillmer@github>
### Changed ### Changed

View File

@@ -1,11 +1,11 @@
FROM tiredofit/alpine:3.14 FROM docker.io/tiredofit/alpine:3.14
### Set Environment Variables ### Set Environment Variables
ENV MSSQL_VERSION=17.5.2.1-1 \ ENV MSSQL_VERSION=17.5.2.1-1 \
ENABLE_CRON=FALSE \ CONTAINER_ENABLE_SCHEDULING=FALSE \
ENABLE_SMTP=FALSE \ CONTAINER_ENABLE_MESSAGING=FALSE \
ENABLE_ZABBIX=TRUE \ CONTAINER_ENABLE_MONITORING=TRUE \
ZABBIX_HOSTNAME=db-backup CONTAINER_NAME=db-backup
### Dependencies ### Dependencies
RUN set -ex && \ RUN set -ex && \
@@ -20,6 +20,7 @@ RUN set -ex && \
&& \ && \
\ \
apk add --no-cache -t .db-backup-run-deps \ apk add --no-cache -t .db-backup-run-deps \
aws-cli \
bzip2 \ bzip2 \
influxdb \ influxdb \
libarchive \ libarchive \
@@ -61,13 +62,7 @@ RUN set -ex && \
### Cleanup ### Cleanup
apk del .db-backup-build-deps && \ apk del .db-backup-build-deps && \
rm -rf /usr/src/* && \ rm -rf /usr/src/* && \
rm -rf /tmp/* /var/cache/apk/* rm -rf /root/.cache /tmp/* /var/cache/apk/*
RUN apk add --no-cache \
python3 \
py3-pip \
&& pip3 install --upgrade pip \
&& pip3 install awscli
### S6 Setup ### S6 Setup
ADD install / ADD install /

View File

@@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2020 Dave Conroy Copyright (c) 2021 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

View File

@@ -1,4 +1,3 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
pkill bash pkill bash

View File

@@ -35,6 +35,7 @@ case "$dbtype" in
dbport=${DB_PORT:-27017} dbport=${DB_PORT:-27017}
[[ ( -n "${DB_USER}" ) || ( -n "${DB_USER_FILE}" ) ]] && file_env 'DB_USER' [[ ( -n "${DB_USER}" ) || ( -n "${DB_USER_FILE}" ) ]] && file_env 'DB_USER'
[[ ( -n "${DB_PASS}" ) || ( -n "${DB_PASS_FILE}" ) ]] && file_env 'DB_PASS' [[ ( -n "${DB_PASS}" ) || ( -n "${DB_PASS_FILE}" ) ]] && file_env 'DB_PASS'
;;
"mysql" | "MYSQL" | "mariadb" | "MARIADB") "mysql" | "MYSQL" | "mariadb" | "MARIADB")
dbtype=mysql dbtype=mysql
dbport=${DB_PORT:-3306} dbport=${DB_PORT:-3306}
@@ -496,7 +497,7 @@ print_debug "Backup routines Initialized on $(date)"
esac esac
### Zabbix ### Zabbix
if var_true "$ENABLE_ZABBIX" ; then if var_true "$CONTAINER_ENABLE_MONITORING}" ; then
print_notice "Sending Backup Statistics to Zabbix" print_notice "Sending Backup Statistics to Zabbix"
silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.size -o "$(stat -c%s "${DB_DUMP_TARGET}"/"${target}")" silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.size -o "$(stat -c%s "${DB_DUMP_TARGET}"/"${target}")"
silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.datetime -o "$(date -r "${DB_DUMP_TARGET}"/"${target}" +'%s')" silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.datetime -o "$(date -r "${DB_DUMP_TARGET}"/"${target}" +'%s')"