Skip to content

Commit

Permalink
Inital docker compose file setup
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrik Saly <[email protected]>
  • Loading branch information
salyh committed Aug 30, 2024
1 parent cc52b1c commit ab62d27
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
76 changes: 76 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
services:
ppl-opensearch-node:
image: opensearchproject/opensearch:latest
container_name: ppl-opensearch-node
environment:
- cluster.name=ppl-opensearch-cluster
- node.name=ppl-opensearch-node
- discovery.type=single-node
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=pplOSLocal@1
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ppl-opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
networks:
- ppl-opensearch-net
ppl-opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
container_name: ppl-opensearch-dashboards
ports:
- 5601:5601
expose:
- '5601'
environment:
OPENSEARCH_HOSTS: '["https://ppl-opensearch-node:9200"]'
networks:
- ppl-opensearch-net
ppl-spark:
build:
context: docker-compose
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_USER=spark
volumes:
- ./docker/spark-defaults.conf:/opt/bitnami/spark/conf/spark-defaults.conf
ports:
- '8080:8080'
networks:
- ppl-opensearch-net
ppl-spark-worker:
build:
context: docker-compose
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://ppl-spark:7077
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
- SPARK_USER=spark
volumes:
- ./docker/spark-defaults.conf:/opt/bitnami/spark/conf/spark-defaults.conf
ports:
- '8081:8081'
networks:
- ppl-opensearch-net
volumes:
ppl-opensearch-data:

networks:
ppl-opensearch-net:
4 changes: 4 additions & 0 deletions docker-compose/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM bitnami/spark:3.5
USER root
USER 1001
#TODO: Add additional jars for spark
1 change: 1 addition & 0 deletions docker-compose/spark-defaults.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spark.sql.extensions org.opensearch.flint.spark.FlintPPLSparkExtensions,org.opensearch.flint.spark.FlintSparkExtensions

0 comments on commit ab62d27

Please sign in to comment.