Skip to content

Commit 517daa8

Browse files
committed
chore(influxdb): Refactor image to use ubuntu-slim
1 parent 6bfc880 commit 517daa8

3 files changed

Lines changed: 26 additions & 36 deletions

File tree

influxdb/rootfs/Dockerfile

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
#This dockerfile is based on https://github.com/jalateras/docker-influxdb
2-
FROM alpine:3.3
3-
MAINTAINER Jonathan Chauncey "<jchauncey@deis.com>"
1+
FROM quay.io/deis/base:0.2.0
2+
3+
RUN adduser --system \
4+
--shell /bin/bash \
5+
--disabled-password \
6+
--home /home/influxdb \
7+
--group \
8+
influxdb
9+
10+
COPY . /
11+
12+
RUN curl -SL -o /home/influxdb/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
13+
&& chmod +x /home/influxdb/envtpl \
14+
&& curl -SL -o /tmp/influxdb.deb https://dl.influxdata.com/influxdb/releases/influxdb_0.13.0_amd64.deb \
15+
&& dpkg -i /tmp/influxdb.deb \
16+
&& rm /tmp/influxdb.deb \
17+
&& mkdir -p /data \
18+
&& chown influxdb:influxdb /data \
19+
&& chown -R influxdb:influxdb /home/influxdb \
20+
&& chmod +x /home/influxdb/start-influx
421

5-
ENV INFLUX_VERSION 0.12.2
22+
VOLUME /data
23+
24+
USER influxdb
25+
WORKDIR /home/influxdb
26+
CMD ["./start-influx"]
627

728
# Expose the admin port
829
EXPOSE 8083
@@ -11,35 +32,4 @@ EXPOSE 8084
1132
# Expose the http api port
1233
EXPOSE 8086
1334

14-
RUN \
15-
addgroup -S influxdb && \
16-
adduser -S -s /bin/bash -G influxdb influxdb
17-
18-
RUN \
19-
mkdir -p /usr/local/bin/ && \
20-
apk add -U ca-certificates wget curl bash
21-
22-
RUN curl -sSL https://raw.githubusercontent.com/andyshinn/alpine-pkg-glibc/master/andyshinn.rsa.pub -o /etc/apk/keys/andyshinn.rsa.pub && \
23-
curl -sSL https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-2.23-r1.apk -O && \
24-
apk add glibc-2.23-r1.apk && rm /glibc-2.23-r1.apk
25-
26-
RUN curl -SL https://dl.influxdata.com/influxdb/releases/influxdb-${INFLUX_VERSION}-1_linux_amd64.tar.gz | tar xzC / && \
27-
chown influxdb:influxdb /usr/bin/influx* && \
28-
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
29-
30-
RUN \
31-
mkdir -p /data && \
32-
chown influxdb:influxdb /data
33-
34-
VOLUME /data
35-
36-
ADD https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 /home/influxdb/envtpl
37-
COPY config.toml.tpl /home/influxdb/config.toml.tpl
38-
COPY start-influx /home/influxdb/start-influx
39-
40-
RUN chmod +x /home/influxdb/envtpl
41-
RUN chmod +x /home/influxdb/start-influx
42-
43-
USER influxdb
44-
WORKDIR /home/influxdb
45-
ENTRYPOINT ["./start-influx"]
35+
ENV WORKFLOW_RELEASE 2.0.0
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)