Skip to content

Commit d97efb9

Browse files
committed
fix(influxdb3-core, influxdb3-enterprise): allow running of arbitrary shell commands
1 parent 223fd54 commit d97efb9

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

influxdb3-core/3.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN case "$(dpkg --print-architecture)" in \
3333
"influxdb3-core-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
3434
# Install InfluxDB3 Core \
3535
tar --strip-components 1 -C /usr/lib/influxdb3 -xvf "influxdb3-core-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
36+
mv /usr/lib/influxdb3/influxdb3 /usr/bin/influxdb3 && \
3637
chown -R influxdb3:influxdb3 /var/lib/influxdb3 /plugins && \
3738
chown -R root:root /usr/lib/influxdb3 && \
3839
# Cleanup \
@@ -52,4 +53,4 @@ ENV LOG_FILTER=info
5253
EXPOSE 8181
5354

5455
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
55-
CMD ["serve"]
56+
CMD ["influxdb3", "serve"]

influxdb3-core/3.0/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ for i in "${!args[@]}"; do
66
args[${i}]="$(echo "${args[${i}]}" | envsubst)"
77
done
88

9-
exec /usr/lib/influxdb3/influxdb3 "${args[@]}"
9+
exec "${args[@]}"

influxdb3-enterprise/3.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN case "$(dpkg --print-architecture)" in \
3333
"influxdb3-enterprise-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
3434
# Install InfluxDB3 Enterprise \
3535
tar --strip-components 1 -C /usr/lib/influxdb3 -xvf "influxdb3-enterprise-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
36+
mv /usr/lib/influxdb3/influxdb3 /usr/bin/influxdb3 && \
3637
chown -R influxdb3:influxdb3 /var/lib/influxdb3 /plugins && \
3738
chown -R root:root /usr/lib/influxdb3 && \
3839
# Cleanup \
@@ -52,4 +53,4 @@ ENV LOG_FILTER=info
5253
EXPOSE 8181
5354

5455
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
55-
CMD ["serve"]
56+
CMD ["influxdb3", "serve"]

influxdb3-enterprise/3.0/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ for i in "${!args[@]}"; do
66
args[${i}]="$(echo "${args[${i}]}" | envsubst)"
77
done
88

9-
exec /usr/lib/influxdb3/influxdb3 "${args[@]}"
9+
exec "${args[@]}"

0 commit comments

Comments
 (0)