Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Nov 24, 2023
0 parents commit aaa773e
Show file tree
Hide file tree
Showing 19 changed files with 988 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
*.iml
*.ipr
*.iws
target/
/var
/*/var/
/presto-product-tests/**/var/
pom.xml.versionsBackup
test-output/
test-reports/
/atlassian-ide-plugin.xml
.idea
.DS_Store
.classpath
.settings
.project
temp-testng-customsuite.xml
test-output
.externalToolBuilders
*~
benchmark_outputs
*.pyc
*.class
.checkstyle
.mvn/timing.properties
.editorconfig
node_modules
presto-docs-venv/

#==============================================================================#
# presto-native-execution
#==============================================================================#
_build/
cmake-build-*/
*.swp
*~
a.out

# Compiled Object files
*.slo
*.lo
*.o
*.cuo

# Compiled Dynamic libraries
*.so
*.dylib

# Compiled Static libraries
*.lai
*.la
*.a

# Compiled protocol buffers
*.pb.h
*.pb.cc
*_pb2.py
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM openjdk:11 as builder

RUN --mount=type=bind,src=.,dst=/usr/src/presto-iris,rw \
--mount=type=cache,target=/root/.m2 \
cd /usr/src/presto-iris && \
./mvnw package && \
mkdir /tmp/presto-iris && \
cp target/presto-iris-*-plugin.tar.gz /tmp/presto-iris/presto-iris-plugin.tar.gz

FROM prestodb/presto

RUN --mount=type=bind,from=builder,src=/tmp/presto-iris,dst=/tmp/presto-iris \
mkdir /opt/presto-server/plugin/iris/ && \
tar -zxvf /tmp/presto-iris/presto-iris-plugin.tar.gz -C /opt/presto-server/plugin/iris/ --strip-components=1

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Dmitry Maslennikov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Presto InterSystems IRIS Connector

29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '3'
services:
iris:
image: intersystemsdc/iris-community
ports:
- 1972
- 52773
environment:
IRIS_USERNAME: _SYSTEM
IRIS_PASSWORD: SYS
presto:
build: .
volumes:
- ./iris.properties:/opt/presto-server/etc/catalog/iris.properties
ports:
- 8080:8080
superset:
image: apache/superset:3.0.2
platform: linux/amd64
environment:
SUPERSET_SECRET_KEY: supersecret
# SUPERSET_SQLALCHEMY_EXAMPLES_URI: presto://admin@presto:8080/postgres
SUPERSET_SQLALCHEMY_EXAMPLES_URI: iris://_SYSTEM:SYS@iris:1972/USER
volumes:
- ./superset_entrypoint.sh:/superset_entrypoint.sh
- ./superset_config.py:/app/pythonpath/superset_config.py
ports:
- 8088:8088
entrypoint: /superset_entrypoint.sh
4 changes: 4 additions & 0 deletions iris.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
connector.name=iris
connection-url=jdbc:IRIS://iris:1972/USER
connection-user=_SYSTEM
connection-password=SYS
Loading

0 comments on commit aaa773e

Please sign in to comment.