-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |