Skip to content

Commit

Permalink
feat: use extras-sse-server image (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
vordimous authored Jul 12, 2024
1 parent a1a3780 commit 99441f8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
12 changes: 0 additions & 12 deletions sse.proxy.jwt/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions sse.proxy.jwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ Generates JWT tokens from the command line.
brew install mike-engel/jwt-cli/jwt-cli
```

### Build the sse-server docker image

```bash
docker build -t zilla-examples/sse-server:latest .
```

output:

```text
...
=> exporting to image 1.4s
=> => exporting layers 1.4s
=> => writing image sha256:104abb7e5a4389c50d02aaf5d9bb2fef883c82e066ac2b400c9039b35086efcc 0.0s
=> => naming to docker.io/zilla-examples/sse-server:latest
```

### Setup

The `setup.sh` script:
Expand All @@ -49,8 +33,6 @@ The `setup.sh` script:
output:

```text
+ docker image inspect zilla-examples/sse-server:latest --format 'Image Found {{.RepoTags}}'
Image Found [zilla-examples/sse-server:latest]
+ ZILLA_CHART=oci://ghcr.io/aklivity/charts/zilla
+ helm upgrade --install zilla-sse-proxy-jwt oci://ghcr.io/aklivity/charts/zilla --namespace zilla-sse-proxy-jwt --create-namespace --wait [...]
NAME: zilla-sse-proxy-jwt
Expand Down Expand Up @@ -82,14 +64,6 @@ Connection to localhost port 7143 [tcp/websm] succeeded!
Connection to localhost port 8001 [tcp/vcom-tunnel] succeeded!
```

Note: if you see the following output from `./setup.sh` then you need to first build the `zilla-examples/sse-server:latest` image, see above.

```bash
+ docker image inspect zilla-examples/sse-server --format 'Image Found {{.RepoTags}}'

Error: No such image: zilla-examples/sse-server
```

### Generate JWT token

Generate JWT token valid for `30 seconds` and signed by local private key.
Expand Down
3 changes: 1 addition & 2 deletions sse.proxy.jwt/chart/templates/service-sse-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
containers:
- name: sse-server
args: ["-v", "-p", "8001", "-i", "7001"]
image: "zilla-examples/sse-server:latest"
image: "ghcr.io/aklivity/extras-sse-server:sha-42ad67e"
ports:
- containerPort: 8001
- containerPort: 7001
Expand All @@ -27,7 +27,6 @@ spec:
initialDelaySeconds: 3
periodSeconds: 5
tty: true
imagePullPolicy: Never
---
apiVersion: v1
kind: Service
Expand Down
3 changes: 0 additions & 3 deletions sse.proxy.jwt/setup.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
set -ex

# Verify SSE Server image already available locally
docker image inspect zilla-examples/sse-server:latest --format 'Image Found {{.RepoTags}}'

# Install Zilla to the Kubernetes cluster with helm and wait for the pod to start up
ZILLA_CHART="${ZILLA_CHART:-oci://ghcr.io/aklivity/charts/zilla}"
ZILLA_VERSION="${ZILLA_VERSION:-^0.9.0}"
Expand Down

0 comments on commit 99441f8

Please sign in to comment.