Skip to content
Merged

Dev #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Backend CI

on:
push:
branches: ["**"]
branches: ["main", "dev"]
pull_request:
branches: ["**"]
branches: ["main", "dev"]


jobs:
Expand Down
2 changes: 1 addition & 1 deletion manifests/db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: g1-smart-glasses-db-dep
namespace: ohtuprojekti-staging
namespace: toska-playground
spec:
replicas: 1
selector:
Expand Down
2 changes: 1 addition & 1 deletion manifests/db-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: g1-smart-glasses-db-svc
namespace: ohtuprojekti-staging
namespace: toska-playground
spec:
selector:
app: g1-smart-glasses-db
Expand Down
4 changes: 2 additions & 2 deletions manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: "*"
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"g1-smart-glasses-backend-is:staging","namespace":"ohtuprojekti-staging"},"fieldPath":"spec.template.spec.containers[?(@.name==\"g1-smart-glasses-backend\")].image","pause":"false"}]
[{"from":{"kind":"ImageStreamTag","name":"g1-smart-glasses-backend-is:staging","namespace":"toska-playground"},"fieldPath":"spec.template.spec.containers[?(@.name==\"g1-smart-glasses-backend\")].image","pause":"false"}]
name: g1-smart-glasses-backend-dep
namespace: ohtuprojekti-staging
namespace: toska-playground
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions manifests/imagestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: g1-smart-glasses-backend-is
namespace: toska-playground
labels:
app: g1-smart-glasses-backend
spec:
Expand Down
4 changes: 2 additions & 2 deletions manifests/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: g1-smart-glasses-backend-route
namespace: ohtuprojekti-staging
namespace: toska-playground
labels:
app: g1-smart-glasses-backend
type: external
spec:
host: g1-smart-glasses-backend-ohtuprojekti-staging.ext.ocp-prod-0.k8s.it.helsinki.fi
host: g1-smart-glasses-backend-toska-playground.ext.ocp-prod-0.k8s.it.helsinki.fi
port:
targetPort: 8000
to:
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: g1-smart-glasses-backend-svc
namespace: ohtuprojekti-staging
namespace: toska-playground
spec:
selector:
app: g1-smart-glasses-backend
Expand Down
2 changes: 1 addition & 1 deletion manifests/volumeclaim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: g1-smart-glasses-claim
namespace: ohtuprojekti-staging
namespace: toska-playground
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions scripts/audio_streaming_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async def recv_loop(): # receive events from ws
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("audio", help="Raw LINEAR16 PCM file (16kHz mono)")
# parser.add_argument("--url", default="wss://<staging-address>/ws/")
parser.add_argument("--url", default="ws://localhost:8000/ws/")
args = parser.parse_args()
asyncio.run(stream(args.url, args.audio))
Expand Down
Loading