Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Groovy container w/ examples and Redpanda #4673

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions containers/groovy-examples-redpanda/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Overview

A Docker Compose deployment for [Deephaven](https://deephaven.io).

## Features

- [Deephaven](https://deephaven.io)
- [Groovy](https://groovy-lang.org/) scripting
- [Deephaven Examples](https://github.com/deephaven/examples)
- [Redpanda](https://vectorized.io/), a Kakfa-compatible event streaming platform.

## Launch Deephaven

For instructions on launching and using Kafka, see [Kafka in Deephaven: an introduction](https://deephaven.io/core/docs/conceptual/kafka-in-deephaven/) and [Simple Kafka import](https://deephaven.io/core/docs/how-to-guides/kafka-simple/). For full instructions to work with Deephaven, see the [Quick start](https://deephaven.io/core/docs/tutorials/quickstart).

To launch Deephaven, execute the following in your deployment directory:

```bash
compose_file=https://raw.githubusercontent.com/deephaven/deephaven-core/main/containers/groovy-examples-redpanda/docker-compose.yml
curl -O "${compose_file}"
jjbrosnan marked this conversation as resolved.
Show resolved Hide resolved

docker-compose pull
docker-compose up -d
jjbrosnan marked this conversation as resolved.
Show resolved Hide resolved
```
49 changes: 49 additions & 0 deletions containers/groovy-examples-redpanda/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: "3.4"

services:
deephaven:
image: ghcr.io/deephaven/server-slim:${VERSION:-latest}
ports:
- "${DEEPHAVEN_PORT:-10000}:10000"
volumes:
- ./data:/data
environment:
- START_OPTS=-Xmx4g

examples:
image: ghcr.io/deephaven/examples
volumes:
- ./data:/data
command: initialize

redpanda:
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
image: docker.redpanda.com/vectorized/redpanda:v22.2.2
ports:
- 9092:9092
- 29092:29092

registry:
image: apicurio/apicurio-registry-mem:1.2.2.Final
jjbrosnan marked this conversation as resolved.
Show resolved Hide resolved
expose:
- 8080
ports:
- "8081:8080"
environment:
QUARKUS_PROFILE: prod
KAFKA_BOOTSTRAP_SERVERS: redpanda:9092
APPLICATION_ID: registry_id
APPLICATION_SERVER: localhost:9000
Loading