Skip to content

Commit 989ea31

Browse files
authored
chore: add build-images.sh script (#35)
So that we can also work with typestream local commands
1 parent b89fb4a commit 989ea31

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ to push the beta images to the local registry. Finally, run:
9696
```sh
9797
cd cli
9898
make
99-
./typestream k8s create
99+
./typestream k8s create # add --redpanda to also start a Redpanda cluster inside k8s
100100
```
101101

102102
to create a local k8s cluster with

scripts/dev/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Scripts
22

3-
In this directory, we have scripts for local development.
3+
Scripts for local development.
44

5-
It's a bunch of hacky scripts at the moment because we're waiting for [this
5+
Mostly hacky scripts at the moment because we're waiting for [this
66
issue](https://github.com/redpanda-data/redpanda/pull/4966) to be merged and
77
released.

scripts/dev/build-images.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
gradlew -Pversion=beta -Djib.to.image=localhost:5000/typestream/server:beta :server:jibDockerBuild
7+
gradlew -Pversion=beta -Djib.to.image=localhost:5000/typestream/tools-seeder:beta :tools:jibDockerBuild

scripts/dev/push-images.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
set -euo pipefail
44
IFS=$'\n\t'
55

6-
gradlew -Pversion=beta -Djib.to.image=localhost:5000/typestream/server:beta :server:jibDockerBuild
7-
gradlew -Pversion=beta -Djib.to.image=localhost:5000/typestream/tools-seeder:beta :tools:jibDockerBuild
6+
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
7+
8+
"$script_dir"/build-images.sh
89

910
docker push localhost:5000/typestream/server:beta
1011
docker push localhost:5000/typestream/tools-seeder:beta

0 commit comments

Comments
 (0)