Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DP-1242 Bump influxdb version #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
ARG DOCKER_REGISTRY="registry.cloud.mov.ai"
ARG INFLUXDB_VERSION="1.8.10-alpine"
ARG INFLUXDB_VERSION="2.7-alpine"
FROM influxdb:${INFLUXDB_VERSION}

# Labels
LABEL description="MOV.AI InfluxDB Base Image"
LABEL maintainer="[email protected]"
LABEL movai="influxdb"

# see https://docs.influxdata.com/influxdb/v2/install/upgrade/v1-to-v2/docker/
# v2 needs upgrading the database and the configuration
ENV DOCKER_INFLUXDB_INIT_MODE="upgrade"
# v2 needs authentication parameters
ENV DOCKER_INFLUXDB_INIT_USERNAME="admin" \
DOCKER_INFLUXDB_INIT_PASSWORD="admin@123" \
DOCKER_INFLUXDB_INIT_ORG="movai" \
DOCKER_INFLUXDB_INIT_BUCKET="test"
# v2 needs the token to be set
# v2 might need new volumes to be mounted


# Files
COPY files/influxdb.conf /etc/influxdb/influxdb.conf
# Copy entrypoint script
Expand Down
Loading