Skip to content

Commit e6c61f8

Browse files
authored
Merge pull request datafold#41 from datafold/presto-docker
2 parents 7e0b672 + c5312ae commit e6c61f8

File tree

14 files changed

+801
-715
lines changed

14 files changed

+801
-715
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get install -y \
55
RUN pip install --no-cache-dir poetry==1.1.13
66
COPY . /app
77
WORKDIR /app
8-
# For now while we are in heavy development we install the latest with Poetry
8+
# For now while we are in heavy development we install the latest with Poetry
99
# and execute directly with Poetry. Later, we'll move to the released Pip package.
10-
RUN poetry install -E preql -E mysql -E pgsql -E snowflake
10+
RUN poetry install
1111
ENTRYPOINT ["poetry", "run", "python3", "-m", "data_diff"]

dev/Dockerfile.prestosql.340

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM openjdk:11-jdk-slim-buster
2+
3+
ENV PRESTO_VERSION=340
4+
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
5+
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
6+
ENV PRESTO_HOME=/opt/presto
7+
ENV PATH=${PRESTO_HOME}/bin:${PATH}
8+
9+
WORKDIR $PRESTO_HOME
10+
11+
RUN set -xe \
12+
&& apt-get update \
13+
&& apt-get install -y curl less python \
14+
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
15+
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
16+
&& chmod +x ./bin/presto \
17+
&& apt-get remove -y curl \
18+
&& rm -rf /var/lib/apt/lists/*
19+
20+
VOLUME /data
21+
22+
EXPOSE 8080
23+
24+
ENTRYPOINT ["launcher"]
25+
CMD ["run"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
connector.name=jmx
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
connector.name=memory
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
connector.name=postgresql
2+
connection-url=jdbc:postgresql://postgres:5432/postgres
3+
connection-user=postgres
4+
connection-password=Password1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
connector.name=tpcds
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
connector.name=tpch
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coordinator=true
2+
node-scheduler.include-coordinator=true
3+
http-server.http.port=8080
4+
query.max-memory=5GB
5+
query.max-memory-per-node=1GB
6+
query.max-total-memory-per-node=2GB
7+
discovery-server.enabled=true
8+
discovery.uri=http://127.0.0.1:8080
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-server
2+
-Xmx16G
3+
-XX:+UseG1GC
4+
-XX:G1HeapRegionSize=32M
5+
-XX:+UseGCOverheadLimit
6+
-XX:+ExplicitGCInvokesConcurrent
7+
-XX:+HeapDumpOnOutOfMemoryError
8+
-XX:+ExitOnOutOfMemoryError
9+
-XX:OnOutOfMemoryError=kill -9 %p
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
com.facebook.presto=INFO

0 commit comments

Comments
 (0)