Skip to content

Commit

Permalink
Merge pull request #11 from gguridi/develop
Browse files Browse the repository at this point in the history
Multiarch (#10)
  • Loading branch information
gguridi authored Dec 6, 2022
2 parents 3ca8cc1 + 0518010 commit 03addd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
kafka_version: [2.8.2, 3.0.2, 3.1.2, 3.2.3, 3.3.1]
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"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": "yarn run build && docker push $KAFKA_IMAGE",
"build-multiarch": "docker buildx build --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-multiarch && 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"
Expand Down

0 comments on commit 03addd4

Please sign in to comment.