Skip to content

Commit aaa773e

Browse files
committed
initial commit
0 parents  commit aaa773e

File tree

19 files changed

+988
-0
lines changed

19 files changed

+988
-0
lines changed

.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
*.iml
2+
*.ipr
3+
*.iws
4+
target/
5+
/var
6+
/*/var/
7+
/presto-product-tests/**/var/
8+
pom.xml.versionsBackup
9+
test-output/
10+
test-reports/
11+
/atlassian-ide-plugin.xml
12+
.idea
13+
.DS_Store
14+
.classpath
15+
.settings
16+
.project
17+
temp-testng-customsuite.xml
18+
test-output
19+
.externalToolBuilders
20+
*~
21+
benchmark_outputs
22+
*.pyc
23+
*.class
24+
.checkstyle
25+
.mvn/timing.properties
26+
.editorconfig
27+
node_modules
28+
presto-docs-venv/
29+
30+
#==============================================================================#
31+
# presto-native-execution
32+
#==============================================================================#
33+
_build/
34+
cmake-build-*/
35+
*.swp
36+
*~
37+
a.out
38+
39+
# Compiled Object files
40+
*.slo
41+
*.lo
42+
*.o
43+
*.cuo
44+
45+
# Compiled Dynamic libraries
46+
*.so
47+
*.dylib
48+
49+
# Compiled Static libraries
50+
*.lai
51+
*.la
52+
*.a
53+
54+
# Compiled protocol buffers
55+
*.pb.h
56+
*.pb.cc
57+
*_pb2.py

.mvn/wrapper/maven-wrapper.jar

49.5 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM openjdk:11 as builder
2+
3+
RUN --mount=type=bind,src=.,dst=/usr/src/presto-iris,rw \
4+
--mount=type=cache,target=/root/.m2 \
5+
cd /usr/src/presto-iris && \
6+
./mvnw package && \
7+
mkdir /tmp/presto-iris && \
8+
cp target/presto-iris-*-plugin.tar.gz /tmp/presto-iris/presto-iris-plugin.tar.gz
9+
10+
FROM prestodb/presto
11+
12+
RUN --mount=type=bind,from=builder,src=/tmp/presto-iris,dst=/tmp/presto-iris \
13+
mkdir /opt/presto-server/plugin/iris/ && \
14+
tar -zxvf /tmp/presto-iris/presto-iris-plugin.tar.gz -C /opt/presto-server/plugin/iris/ --strip-components=1
15+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Dmitry Maslennikov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Presto InterSystems IRIS Connector
2+

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3'
2+
services:
3+
iris:
4+
image: intersystemsdc/iris-community
5+
ports:
6+
- 1972
7+
- 52773
8+
environment:
9+
IRIS_USERNAME: _SYSTEM
10+
IRIS_PASSWORD: SYS
11+
presto:
12+
build: .
13+
volumes:
14+
- ./iris.properties:/opt/presto-server/etc/catalog/iris.properties
15+
ports:
16+
- 8080:8080
17+
superset:
18+
image: apache/superset:3.0.2
19+
platform: linux/amd64
20+
environment:
21+
SUPERSET_SECRET_KEY: supersecret
22+
# SUPERSET_SQLALCHEMY_EXAMPLES_URI: presto://admin@presto:8080/postgres
23+
SUPERSET_SQLALCHEMY_EXAMPLES_URI: iris://_SYSTEM:SYS@iris:1972/USER
24+
volumes:
25+
- ./superset_entrypoint.sh:/superset_entrypoint.sh
26+
- ./superset_config.py:/app/pythonpath/superset_config.py
27+
ports:
28+
- 8088:8088
29+
entrypoint: /superset_entrypoint.sh

iris.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
connector.name=iris
2+
connection-url=jdbc:IRIS://iris:1972/USER
3+
connection-user=_SYSTEM
4+
connection-password=SYS

0 commit comments

Comments
 (0)