Skip to content

Commit

Permalink
tweaked to include openshift things
Browse files Browse the repository at this point in the history
  • Loading branch information
dudash committed Jan 30, 2022
1 parent d5bb6ca commit e6b16d2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ Backend service that provides WebRTC signaling for connecting clients together.
* User registration and management
* A basic chat feature whereby a user can send a message to all other connected users
* Generic message handling for signaling and ICE negotiation to support a WebRTC session between two users
## Getting started

## Running this app
There are many ways to run this Quarkus app, but likely you want it available on the internet so it is widely accessible. You have options but our typical way of running this is in [an OpenShift Developer Sandbox](https://developers.redhat.com/developer-sandbox/get-started). We are working on a deployment of a versioned container release but aren't quite polished enough yet. For now you have a few steps to follow:
1. Download or clone this git repo locally
2. oc login to your account
3. edit the `resources/application.properties` to set the `quarkus.container-image.group` to your namespace
4. run `mvnw clean package`

It should do everything needed to create all the Kubernetes reqsources and deploy the app

## Developers
### Running the application in dev mode
You can run your application in dev mode that enables live coding using:
```shell script
Expand Down Expand Up @@ -58,6 +68,7 @@ This repository is currently private, so in order to import it with CodeReady Wo
EOF
```
3. Create a new workspace using the `devfile.yaml` in this repository.
## Message Schema
The server expects most messages to take the form of a JSON object, giving particular regard to the following attributes:
* **type**: the message type. Supported values:
Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-openshift</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-health</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
quarkus.container-image.build = true
quarkus.container-image.group = dudash-dev
quarkus.kubernetes.deploy = true
quarkus.kubernetes.deployment-target = openshift
quarkus.openshift.expose = true
quarkus.openshift.replicas = 1
quarkus.openshift.labels.app = clivrt-signaling-svc

0 comments on commit e6b16d2

Please sign in to comment.