Skip to content

Commit

Permalink
Adjust dockerfile and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelWei committed Jan 2, 2025
1 parent 71c58fd commit 4be5b1b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions room-hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine as builder
FROM golang:1.21-alpine AS builder

WORKDIR /proj

Expand All @@ -8,12 +8,12 @@ RUN go mod download

COPY *.go ./

RUN go build -o bbb-room-hub
RUN go build

FROM scratch

COPY --from=builder /proj/bbb-room-hub /bbb-room-hub
COPY --from=builder /proj/server /server

EXPOSE 8080

CMD [ "/bbb-room-hub" ]
CMD [ "/server", "-host=0.0.0.0" ]
24 changes: 17 additions & 7 deletions room-hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,25 @@
This pairing brokers the connection between the [BBB HTML plugin](../html-plugin/) and the [appliance application](../appliance-application/)
to connect the device that is installed in a physical lecture room into the running BigBlueButton meeting.

## Running the Server from source

## Running the Server in production

TODO

### Connecting to the other Components
## Build and run the Server from source

```bash
docker build -t bbb-room-hub .
docker run -d -p 127.0.0.1:8080:8080 bbb-room-hub
```

## Running the Server in development

```bash
go run *.go
```

## Connecting to the other Components

The communication with the BBB server requires TLS.
So in order to get this to work with the HTML plugin and the appliance application you need to proxy
Expand All @@ -25,8 +39,4 @@ location /hybrid {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
```

## Running the Server in production

TODO
```

0 comments on commit 4be5b1b

Please sign in to comment.