-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
26 lines (26 loc) · 1.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "kafka-server",
"version": "1.0.0",
"description": "Docker images with Kafka to be used in testing/development environment",
"scripts": {
"start": "mockserver -p 80 -q -m /opt/api",
"build": "docker build -t $KAFKA_IMAGE --build-arg SCALA_VERSION=$SCALA_VERSION --build-arg KAFKA_VERSION=$KAFKA_VERSION .",
"publish-multiarch": "docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t $KAFKA_IMAGE --build-arg SCALA_VERSION=$SCALA_VERSION --build-arg KAFKA_VERSION=$KAFKA_VERSION .",
"publish": "yarn run build && docker push $KAFKA_IMAGE",
"docker-run": "docker run --name kafka-local -d -p 2181:2181 -p 9092:9092 -e KAFKA__ADVERTISED_HOST_NAME=localhost -e KAFKA__ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 $KAFKA_IMAGE",
"docker-stop": "docker rm -f kafka-local || true",
"test": "node ./node_modules/jest/bin/jest.js --forceExit --detectOpenHandles"
},
"license": "ISC",
"devDependencies": {
"jest": "^29.3.1",
"node-rdkafka": "^2.14.0"
},
"jest": {
"verbose": true,
"testEnvironment": "node",
"testMatch": [
"**/*.spec.js"
]
}
}