Skip to content

Commit

Permalink
FIX: switch back
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkisse authored Mar 30, 2024
1 parent 3d37097 commit 8f96faa
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions src/Tre-SQL-Trino/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
# Use a base image with Trino CLI installed
#FROM openjdk:11-jre-slim
FROM trinodb/trino:422
FROM openjdk:11-jre-slim
#FROM trinodb/trino:422

# Install Trino CLI
#RUN apt-get update && \
# apt-get install -y wget && \
# wget https://repo1.maven.org/maven2/io/trino/trino-cli/440/trino-cli-440-executable.jar -O /usr/local/bin/trino && \
# chmod +x /usr/local/bin/trino && \
# apt-get remove -y wget && \
# apt-get clean
RUN apt-get update && \
apt-get install -y wget && \
wget https://repo1.maven.org/maven2/io/trino/trino-cli/440/trino-cli-440-executable.jar -O /usr/local/bin/trino && \
chmod +x /usr/local/bin/trino && \
apt-get remove -y wget && \
apt-get clean

# Set working directory
WORKDIR /workspace

# Copy entrypoint script
#COPY entrypoint.sh /usr/local/bin/entrypoint.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

# Make entrypoint script executable
#RUN chmod +x /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Set entrypoint
#ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

# Copy entrypoint script
COPY entrypoint.sh /tmp/entrypoint.sh

# Make entrypoint script executable
RUN chmod +x /tmp/entrypoint.sh

# Set entrypoint
ENTRYPOINT ["/tmp/entrypoint.sh"]
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

0 comments on commit 8f96faa

Please sign in to comment.