Skip to content

Commit

Permalink
Add presto-cli to sandbox image (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
joheriks authored Dec 22, 2023
1 parent d7177c8 commit e2f268a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ ENV PRESTO_HOME=/opt/presto-server
ARG PRESTO_VERSION
ARG PRESTO_PKG=presto-server-${PRESTO_VERSION}.tar.gz
ARG PRESTO_PKG_URL=https://repo1.maven.org/maven2/com/facebook/presto/presto-server/${PRESTO_VERSION}/${PRESTO_PKG}
ARG PRESTO_CLI=presto-cli-${PRESTO_VERSION}-executable.jar
ARG PRESTO_CLI_URL=https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/${PRESTO_VERSION}/${PRESTO_CLI}

RUN apk add --no-cache \
curl \
Expand All @@ -21,6 +23,8 @@ RUN apk add --no-cache \
&& mkdir -p ${PRESTO_HOME}/etc \
&& mkdir -p ${PRESTO_HOME}/etc/catalog \
&& mkdir -p /var/lib/presto/data \
&& curl -o /opt/presto-cli ${PRESTO_CLI_URL} \
&& chmod +x /opt/presto-cli \
&& ln -s /opt/presto-cli /usr/local/bin/presto-cli \
&& ln -s /opt/presto-cli /usr/local/bin/presto \
&& apk del curl tar
Expand Down

0 comments on commit e2f268a

Please sign in to comment.