Skip to content

Commit

Permalink
chore: update redpanda (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette authored Jan 24, 2025
1 parent 8aafa8f commit 7171225
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ to abide to the `TypeStream` [code of conduct](/CODE_OF_CONDUCT.md).
- [Go](https://go.dev)
- [Protobuf](https://protobuf.dev/)
- [Make](https://www.gnu.org/software/make/)
- [Redpanda](https://redpanda.com/) (you need `rpk` locally)
- [Redpanda](https://redpanda.com/) (you need `rpk` locally. Min version: `v24.1.2`)

## Set up your machine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.typestream.testing.kafka.KafkaProducerWrapper
import io.typestream.testing.model.TestRecord
import org.testcontainers.redpanda.RedpandaContainer

class TestKafka : RedpandaContainer("docker.redpanda.com/vectorized/redpanda:v23.3.2") {
class TestKafka : RedpandaContainer("docker.redpanda.com/vectorized/redpanda:v24.2.9") {
fun produceRecords(topic: String, encoding: String, vararg records: TestRecord): List<TestRecord> {
val adminClient = AdminClientWrapper(bootstrapServers)
adminClient.createTopics(topic)
Expand Down
2 changes: 1 addition & 1 deletion scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.toml
*.auto.toml
6 changes: 1 addition & 5 deletions scripts/dev/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Scripts
# Dev scripts

Scripts for local development.

Mostly hacky scripts at the moment because we're waiting for [this
issue](https://github.com/redpanda-data/redpanda/pull/4966) to be merged and
released.
18 changes: 1 addition & 17 deletions scripts/dev/kafkastart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,4 @@
set -euo pipefail
IFS=$'\n\t'

script_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)

rpk container start

kafka_port=$(docker port "$(docker ps --filter name=rp-node-0 --format '{{.ID}}')" | grep 9093 | cut -d: -f2)
registry_port=$(docker port "$(docker ps --filter name=rp-node-0 --format '{{.ID}}')" | grep 8081 | cut -d: -f2)

{
echo "[grpc]"
echo "port=4242"
echo "[sources.kafka.local]"
echo "bootstrapServers=\"localhost:$kafka_port\""
echo "schemaRegistry.url=\"http://localhost:$registry_port\""
echo "fsRefreshRate=10"
} > "$script_dir"/typestream.toml

echo "export BOOTSTRAP_SERVER=localhost:$kafka_port"
rpk container start --kafka-ports 9092 --schema-registry-ports 8081 --console-port 8080
6 changes: 6 additions & 0 deletions scripts/dev/typestream.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[grpc]
port=4242
[sources.kafka.local]
bootstrapServers="localhost:9092"
schemaRegistry.url="http://localhost:8081"
fsRefreshRate=10

0 comments on commit 7171225

Please sign in to comment.