@@ -5,7 +5,8 @@ FROM docker.io/tiredofit/${DISTRO}:${DISTRO_VARIANT}
5
5
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
6
6
7
7
# ## Set Environment Variables
8
- ENV INFLUX2_VERSION=2.4.0 \
8
+ ENV INFLUX_VERSION=1.8.0 \
9
+ INFLUX2_VERSION=2.4.0 \
9
10
MSSQL_VERSION=18.0.1.1-1 \
10
11
CONTAINER_ENABLE_MESSAGING=FALSE \
11
12
CONTAINER_ENABLE_MONITORING=TRUE \
@@ -22,6 +23,7 @@ RUN source /assets/functions/00-container && \
22
23
build-base \
23
24
bzip2-dev \
24
25
git \
26
+ go \
25
27
libarchive-dev \
26
28
openssl-dev \
27
29
libffi-dev \
@@ -33,7 +35,6 @@ RUN source /assets/functions/00-container && \
33
35
package install .db-backup-run-deps \
34
36
aws-cli \
35
37
bzip2 \
36
- influxdb \
37
38
libarchive \
38
39
mariadb-client \
39
40
mariadb-connector-c \
@@ -60,7 +61,9 @@ RUN source /assets/functions/00-container && \
60
61
\
61
62
if [ $mssql = "true" ] ; then curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_${MSSQL_VERSION}_amd64.apk ; curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/mssql-tools18_${MSSQL_VERSION}_amd64.apk ; echo y | apk add --allow-untrusted msodbcsql18_${MSSQL_VERSION}_amd64.apk mssql-tools18_${MSSQL_VERSION}_amd64.apk ; else echo >&2 "Detected non x86_64 build variant, skipping MSSQL installation" ; fi; \
62
63
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 ; \
63
- \
64
+ clone_git_repo https://github.com/influxdata/influxdb "${INFLUX_VERSION}" && \
65
+ go build -o /usr/sbin/influxd ./cmd/influxd && \
66
+ strip /usr/sbin/influxd && \
64
67
mkdir -p /usr/src/pbzip2 && \
65
68
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 && \
66
69
cd /usr/src/pbzip2 && \
@@ -85,6 +88,7 @@ RUN source /assets/functions/00-container && \
85
88
/*.apk \
86
89
/etc/logrotate.d/* \
87
90
/root/.cache \
91
+ /root/go \
88
92
/tmp/* \
89
93
/usr/src/*
90
94
0 commit comments