generated from odpi/egeria-template-newrepo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from dwolfson/base_compose
Updates to make the widgets easier to use and provide alternate pytho…
- Loading branch information
Showing
11 changed files
with
986 additions
and
652 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
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
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
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
95 changes: 95 additions & 0 deletions
95
egeria-platform-jupyter-compose/z-egeria-platform-jupyter-compose.yaml
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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright Contributors to the Egeria project | ||
|
||
|
||
# To run | ||
# * Ensure Docker is installed and running | ||
# * Start Egeria Platform stack from the 'coco-lab-docker-compose' folder using: | ||
# 'docker compose -f ./egeria-platform-jupyter-uc-compose.yaml up --build' | ||
# * Subsequent startups can be performed without the '--build' at the end | ||
# * Uninstall the containers by issuing 'docker compose -f ./egeria-platform-jupyter-uc-compose.yaml down' | ||
# | ||
# Assumptions: | ||
# * Ports 7443, 7444, 7445 and 9192 are available on the host system - these are the default ports for Kafka and Egeria. | ||
# * by default, the jupyter notebooks in the 'coco-jupyter-labs' folder are mounted and available for use by the jupyter noteboos | ||
# * by default, strict SSL validation is turned off | ||
# | ||
# | ||
|
||
services: | ||
jupyter-hub: | ||
depends_on: | ||
egeria-main: | ||
condition: service_healthy | ||
|
||
image: quay.io/jupyter/scipy-notebook | ||
container_name: jupyter-work | ||
ports: | ||
- 8888:8888 | ||
environment: | ||
JUPYTER_ENABLE_LAB: "yes" | ||
JUPYTER_TOKEN: "egeria" | ||
build: | ||
dockerfile: Dockerfile-jupyter | ||
|
||
volumes: | ||
- ./before-notebook.d:/usr/local/bin/before-notebook.d | ||
- ../work:/home/jovyan/work | ||
- ../workspaces:/home/jovyan/workspaces | ||
|
||
|
||
kafka: | ||
image: 'bitnami/kafka:latest' | ||
ports: | ||
- '9092:9092' | ||
|
||
environment: | ||
- KAFKA_CFG_NODE_ID=0 | ||
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true | ||
- KAFKA_CFG_PROCESS_ROLES=controller,broker | ||
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093 | ||
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | ||
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093 | ||
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER | ||
|
||
|
||
|
||
egeria-main: | ||
depends_on: | ||
- kafka | ||
image: 'egeria-platform:uc1' | ||
# image: 'docker.io/odpi/egeria-platform:stable' | ||
ports: | ||
- '9443:9443' | ||
environment: | ||
- XTDB_ENABLE_BYTEUTILS_SHA1=True | ||
- XTDB_DISABLE_LIBCRYPTO=True | ||
- startup.server.list=active-metadata-store,engine-host,integration-daemon,view-server,simple-metadata-store | ||
- server.port=9443 | ||
|
||
healthcheck: | ||
test: curl -k -X GET "https://localhost:9443/open-metadata/platform-services/users/garygeeke/server-platform/origin" || exit 1 | ||
interval: 20s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 10s | ||
start_interval: 5s | ||
|
||
volumes: | ||
- ../landing_area:/deployments/landing-area | ||
- ../logs:/deployments/logs | ||
# - "YOUR EXTRA LIBRARY DIRECTORY"/extra:/deployments/extra | ||
# - "ANOTHER DIRECTOR TO MOUNT"/:/deployments/user_mount | ||
|
||
|
||
# | ||
# Change external to true and create volumes manually if you wish to persist between runs | ||
# | ||
volumes: | ||
zookeeper-data: | ||
external: false | ||
kafka-data: | ||
external: false | ||
db_home: | ||
external: false |
Oops, something went wrong.