Skip to content

Commit d24cdc5

Browse files
authored
Merge pull request #266 from tiredofit/4.x
Release 4.0.0
2 parents c5c026d + 2df35e4 commit d24cdc5

File tree

17 files changed

+2691
-1167
lines changed

17 files changed

+2691
-1167
lines changed

Dockerfile

Lines changed: 50 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,64 +5,69 @@ FROM docker.io/tiredofit/${DISTRO}:${DISTRO_VARIANT}
55
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
66

77
### Set Environment Variables
8-
ENV INFLUX_VERSION=1.8.0 \
9-
INFLUX2_VERSION=2.4.0 \
8+
ENV INFLUX1_CLIENT_VERSION=1.8.0 \
9+
INFLUX2_CLIENT_VERSION=2.7.3 \
1010
MSODBC_VERSION=18.3.2.1-1 \
1111
MSSQL_VERSION=18.3.1.1-1 \
12-
AWS_CLI_VERSION=1.25.97 \
12+
AWS_CLI_VERSION=1.29.78 \
1313
CONTAINER_ENABLE_MESSAGING=FALSE \
1414
CONTAINER_ENABLE_MONITORING=TRUE \
15-
CONTAINER_PROCESS_RUNAWAY_PROTECTOR=FALSE \
1615
IMAGE_NAME="tiredofit/db-backup" \
1716
IMAGE_REPO_URL="https://github.com/tiredofit/docker-db-backup/"
1817

1918
### Dependencies
2019
RUN source /assets/functions/00-container && \
2120
set -ex && \
21+
addgroup -S -g 10000 dbbackup && \
22+
adduser -S -D -H -u 10000 -G dbbackup -g "Tired of I.T! DB Backup" dbbackup && \
23+
\
2224
package update && \
2325
package upgrade && \
2426
package install .db-backup-build-deps \
25-
build-base \
26-
bzip2-dev \
27-
cargo \
28-
git \
29-
go \
30-
libarchive-dev \
31-
openssl-dev \
32-
libffi-dev \
33-
python3-dev \
34-
py3-pip \
35-
xz-dev \
36-
&& \
27+
build-base \
28+
bzip2-dev \
29+
cargo \
30+
git \
31+
go \
32+
libarchive-dev \
33+
openssl-dev \
34+
libffi-dev \
35+
python3-dev \
36+
py3-pip \
37+
xz-dev \
38+
&& \
3739
\
3840
package install .db-backup-run-deps \
39-
bzip2 \
40-
groff \
41-
libarchive \
42-
mariadb-client \
43-
mariadb-connector-c \
44-
mongodb-tools \
45-
openssl \
46-
pigz \
47-
postgresql16 \
48-
postgresql16-client \
49-
pv \
50-
py3-botocore \
51-
py3-colorama \
52-
py3-cryptography \
53-
py3-docutils \
54-
py3-jmespath \
55-
py3-rsa \
56-
py3-setuptools \
57-
py3-s3transfer \
58-
py3-yaml \
59-
python3 \
60-
redis \
61-
sqlite \
62-
xz \
63-
zip \
64-
zstd \
65-
&& \
41+
bzip2 \
42+
coreutils \
43+
gpg \
44+
gpg-agent \
45+
groff \
46+
libarchive \
47+
mariadb-client \
48+
mariadb-connector-c \
49+
mongodb-tools \
50+
openssl \
51+
pigz \
52+
postgresql16 \
53+
postgresql16-client \
54+
pv \
55+
py3-botocore \
56+
py3-colorama \
57+
py3-cryptography \
58+
py3-docutils \
59+
py3-jmespath \
60+
py3-rsa \
61+
py3-setuptools \
62+
py3-s3transfer \
63+
py3-yaml \
64+
python3 \
65+
redis \
66+
sqlite \
67+
xz \
68+
zip \
69+
zstd \
70+
&& \
6671
\
6772
apkArch="$(uname -m)"; \
6873
case "$apkArch" in \
@@ -72,10 +77,10 @@ RUN source /assets/functions/00-container && \
7277
esac; \
7378
\
7479
if [ $mssql = "true" ] ; then curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_${MSODBC_VERSION}_${mssql_arch}.apk ; curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/mssql-tools18_${MSSQL_VERSION}_${mssql_arch}.apk ; ls -l ; echo y | apk add --allow-untrusted msodbcsql18_${MSODBC_VERSION}_${mssql_arch}.apk mssql-tools18_${MSSQL_VERSION}_${mssql_arch}.apk ; else echo >&2 "Detected non x86_64 or ARM64 build variant, skipping MSSQL installation" ; fi; \
75-
if [ $influx2 = "true" ] ; then curl -sSL https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX2_VERSION}-linux-${influx_arch}.tar.gz | tar xvfz - --strip=1 -C /usr/src/ ; chmod +x /usr/src/influx ; mv /usr/src/influx /usr/sbin/ ; else echo >&2 "Unable to build Influx 2 on this system" ; fi ; \
80+
if [ $influx2 = "true" ] ; then curl -sSL https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUX2_CLIENT_VERSION}-linux-${influx_arch}.tar.gz | tar xvfz - --strip=1 -C /usr/src/ ; chmod +x /usr/src/influx ; mv /usr/src/influx /usr/sbin/ ; else echo >&2 "Unable to build Influx 2 on this system" ; fi ; \
7681
clone_git_repo https://github.com/aws/aws-cli "${AWS_CLI_VERSION}" && \
7782
python3 setup.py install --prefix=/usr && \
78-
clone_git_repo https://github.com/influxdata/influxdb "${INFLUX_VERSION}" && \
83+
clone_git_repo https://github.com/influxdata/influxdb "${INFLUX1_CLIENT_VERSION}" && \
7984
go build -o /usr/sbin/influxd ./cmd/influxd && \
8085
strip /usr/sbin/influxd && \
8186
mkdir -p /usr/src/pbzip2 && \
@@ -106,5 +111,4 @@ RUN source /assets/functions/00-container && \
106111
/tmp/* \
107112
/usr/src/*
108113

109-
110114
COPY 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) 2022 Dave Conroy
3+
Copyright (c) 2023 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)