From 709294ed2f50e6a9c27f20bddb479d47e8cc2ea5 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 1 Jul 2023 17:31:49 +0700 Subject: [PATCH] feat: breaking change on redpanda --- redpanda/Dockerfile | 4 ++-- redpanda/README.md | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 redpanda/README.md diff --git a/redpanda/Dockerfile b/redpanda/Dockerfile index 1399fc7..a5c5b0b 100644 --- a/redpanda/Dockerfile +++ b/redpanda/Dockerfile @@ -1,7 +1,7 @@ -FROM docker.redpanda.com/vectorized/redpanda:v23.1.12 +FROM docker.redpanda.com/vectorized/redpanda:v23.1.13 WORKDIR / RUN mkdir -p /var/lib/redpanda/data/ -CMD ["redpanda", "start", "--smp 1", "--memory 1G", "--reserve-memory 0M", "--overprovisioned", "--node-id 0", "--check=false", "--pandaproxy-addr PLAINTEXT://0.0.0.0:28082,OUTSIDE://0.0.0.0:8082", "--advertise-pandaproxy-addr PLAINTEXT://kafka:28082,OUTSIDE://localhost:8082", "--kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092", "--rpc-addr 0.0.0.0:33145", "--advertise-kafka-addr PLAINTEXT://kafka:29092,OUTSIDE://localhost:9092", "--advertise-rpc-addr kafka:33145"] +CMD ["redpanda", "start", "--smp 1", "--memory 1G", "--reserve-memory 0M", "--overprovisioned", "--node-id 0", "--check=false", "--pandaproxy-addr PLAINTEXT://redpanda:8082,OUTSIDE://localhost:8082", "--advertise-pandaproxy-addr PLAINTEXT://redpanda:8082,OUTSIDE://0.0.0.0:8082", "--kafka-addr PLAINTEXT://redpanda:9092,OUTSIDE://localhost:9092", "--rpc-addr 0.0.0.0:33145", "--advertise-kafka-addr PLAINTEXT://redpanda:9092,OUTSIDE://0.0.0.0:9092", "--advertise-rpc-addr redpanda:33145"] diff --git a/redpanda/README.md b/redpanda/README.md new file mode 100644 index 0000000..ddb9015 --- /dev/null +++ b/redpanda/README.md @@ -0,0 +1,20 @@ +# Redpanda + +How to use this image: +```yml +jobs: + job_name: + services: + redpanda: # YES, the name MUST BE "redpanda" + image: ghcr.io/aldy505/redpanda-ci:latest + options: >- + --health-cmd "rpk cluster health" + --health-interval 10s + --health-timeout 5s + --health-retries 10 + --health-start-period 30s + --restart on-failure:10 +``` + +Connect to `redpanda:9092` to access the Kafka native API. +Connect to `redpanda:8082` to access the Pandaproxy API (see https://redpanda.com/blog/pandaproxy)