Skip to content

Commit

Permalink
fix Dockerfile putting tar under /opt/presto-server
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Nov 20, 2023
1 parent dfd33a3 commit 39456c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PRESTO_VERSION=${{ inputs.version }}
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ FROM amazoncorretto:11-alpine
EXPOSE 8080

ENV PRESTO_HOME=/opt/presto-server
WORKDIR /opt/presto-server

CMD ["/bin/sh", "-c", "./bin/launcher run"]

ARG PRESTO_VERSION=0.281
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}

Expand All @@ -27,4 +24,7 @@ RUN apk add --no-cache \
&& ln -s /opt/presto-cli /usr/local/bin/presto \
&& apk del curl tar

ADD etc etc/
ADD etc /opt/presto-server/etc/

WORKDIR /opt/presto-server
CMD ["/bin/sh", "-c", "./bin/launcher run"]

0 comments on commit 39456c0

Please sign in to comment.