Skip to content

Commit

Permalink
fix: create "/usr/local/share/influxdb3" before becoming "influxdb3" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bnpfeife authored Mar 28, 2024
1 parent 46065f2 commit ba41bd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ RUN apt update \
&& groupadd --gid 1500 influxdb3 \
&& useradd --uid 1500 --gid influxdb3 --shell /bin/bash --create-home influxdb3

RUN mkdir /usr/local/share/influxdb3 && \
chown influxdb3:influxdb3 /usr/local/share/influxdb3

USER influxdb3

RUN mkdir ~/.influxdb3
Expand All @@ -56,8 +59,6 @@ COPY docker/entrypoint.sh /usr/bin/entrypoint.sh

EXPOSE 8080 8082

RUN mkdir /usr/local/share/influxdb3

# TODO: Make this and other env vars not specific to IOx
ENV INFLUXDB_IOX_OBJECT_STORE=file
ENV INFLUXDB_IOX_DB_DIR=/usr/local/share/influxdb3
Expand Down

0 comments on commit ba41bd2

Please sign in to comment.