Skip to content
Snippets Groups Projects
Commit d97efb90 authored by Brandon Pfeifer's avatar Brandon Pfeifer
Browse files

fix(influxdb3-core, influxdb3-enterprise): allow running of arbitrary shell commands

parent 223fd541
Branches
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ RUN case "$(dpkg --print-architecture)" in \
"influxdb3-core-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
# Install InfluxDB3 Core \
tar --strip-components 1 -C /usr/lib/influxdb3 -xvf "influxdb3-core-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
mv /usr/lib/influxdb3/influxdb3 /usr/bin/influxdb3 && \
chown -R influxdb3:influxdb3 /var/lib/influxdb3 /plugins && \
chown -R root:root /usr/lib/influxdb3 && \
# Cleanup \
......@@ -52,4 +53,4 @@ ENV LOG_FILTER=info
EXPOSE 8181
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
CMD ["serve"]
CMD ["influxdb3", "serve"]
......@@ -6,4 +6,4 @@ for i in "${!args[@]}"; do
args[${i}]="$(echo "${args[${i}]}" | envsubst)"
done
exec /usr/lib/influxdb3/influxdb3 "${args[@]}"
exec "${args[@]}"
......@@ -33,6 +33,7 @@ RUN case "$(dpkg --print-architecture)" in \
"influxdb3-enterprise-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
# Install InfluxDB3 Enterprise \
tar --strip-components 1 -C /usr/lib/influxdb3 -xvf "influxdb3-enterprise-${INFLUXDB_VERSION}_linux_${ARCH}.tar.gz" && \
mv /usr/lib/influxdb3/influxdb3 /usr/bin/influxdb3 && \
chown -R influxdb3:influxdb3 /var/lib/influxdb3 /plugins && \
chown -R root:root /usr/lib/influxdb3 && \
# Cleanup \
......@@ -52,4 +53,4 @@ ENV LOG_FILTER=info
EXPOSE 8181
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
CMD ["serve"]
CMD ["influxdb3", "serve"]
......@@ -6,4 +6,4 @@ for i in "${!args[@]}"; do
args[${i}]="$(echo "${args[${i}]}" | envsubst)"
done
exec /usr/lib/influxdb3/influxdb3 "${args[@]}"
exec "${args[@]}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment