Skip to content

Commit

Permalink
v5.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Mar 14, 2022
1 parent 5cb0ab6 commit 5b3fd0b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM debian:11-slim

ARG CUBESQL_VERSION=5.8.0
ARG CUBESQL_VERSION=latest
ARG CUBESQL_VERSION_REQUIRED=5.8.5

ENV CUBESQL_VERSION=${CUBESQL_VERSION}

LABEL version="${CUBESQL_VERSION}" \
description="Docker image for CubeSQL." \
LABEL version="${CUBESQL_VERSION_REQUIRED}" \
description="Docker image for CubeSQL 5." \
maintainer="Jose Quintana <joseluisq.net>"

RUN set -eux \
Expand All @@ -26,6 +27,15 @@ RUN set -eux \
&& mkdir -p /usr/local/bin \
&& tar xvfz /tmp/cubesql.tar.gz -C /usr/local/bin --strip-components=2 cubesql_64bit/data/cubesql \
&& chmod +x /usr/local/bin/cubesql \
&& ver_match=$(cubesql -y) \
&& if [ "${CUBESQL_VERSION_REQUIRED}" != "${ver_match}" ]; then \
echo "Cubesql installed version doesn't match"; \
echo "Installed version:"; \
cubesql -y; \
echo "Required version:"; \
echo "${CUBESQL_VERSION_REQUIRED}"; \
false; \
fi \
&& rm -rf /tmp/cubesql.tar.gz \
&& mkdir -p /data \
&& true
Expand All @@ -41,7 +51,7 @@ STOPSIGNAL SIGQUIT
# Metadata
LABEL org.opencontainers.image.vendor="Jose Quintana" \
org.opencontainers.image.url="https://github.com/joseluisq/docker-cubesql" \
org.opencontainers.image.title="Docker cubeSQL" \
org.opencontainers.image.title="Docker cubeSQL 5" \
org.opencontainers.image.description="A Linux Docker image for the cubeSQL server." \
org.opencontainers.image.version="${CUBESQL_VERSION}" \
org.opencontainers.image.version="${CUBESQL_VERSION_REQUIRED}" \
org.opencontainers.image.documentation="https://github.com/joseluisq/docker-cubesql"

0 comments on commit 5b3fd0b

Please sign in to comment.