Skip to content

Commit

Permalink
bbb-graphql-middleware dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alangecker committed Nov 25, 2024
1 parent 56d8f76 commit 1a79f73
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Empty file added .cache/go-build/.gitkeep
Empty file.
Empty file added .cache/go/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# enables
# - html5: webpack dev server
# - bbb-grahql-actions: watch & restart
# - bbb-graphql-middleware: building on start
DEV_MODE=true

# accept self signed certificates
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,12 @@ services:
bbb-graphql-middleware:
build:
context: mod/bbb-graphql-middleware
{{ if isTrue .Env.DEV_MODE }}
dockerfile: Dockerfile.dev
{{ else }}
additional_contexts:
- src=./repos/bigbluebutton/bbb-graphql-middleware
{{ end }}
args:
BBB_BUILD_TAG: {{ .Env.BBB_BUILD_TAG }}
restart: unless-stopped
Expand All @@ -321,6 +325,16 @@ services:
bbb-net:
ipv4_address: 10.7.7.32

{{ if isTrue .Env.DEV_MODE }}
user: ${BBB_DEV_UID}:${BBB_DEV_GID}
volumes:
- ./repos/bigbluebutton/bbb-graphql-middleware:/app/:ro
- ./repos/bigbluebutton/bbb-graphql-middleware/config/config.yml:/usr/share/bbb-graphql-middleware/config.yml:ro
- ./mod/bbb-graphql-middleware/config.yml:/etc/bigbluebutton/bbb-graphql-middleware.yml:ro
- ./.cache/go:/gopath:rw
- ./.cache/go-build:/.cache/go-build:rw
{{ end }}

collabora:
image: collabora/code:latest
restart: unless-stopped
Expand Down
8 changes: 8 additions & 0 deletions mod/bbb-graphql-middleware/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG BBB_BUILD_TAG
FROM bigbluebutton/bbb-build:$BBB_BUILD_TAG AS builder

WORKDIR /app

ENV GOPATH /gopath

CMD ["go", "run", "cmd/bbb-graphql-middleware/main.go", "--signal", "SIGTERM"]

0 comments on commit 1a79f73

Please sign in to comment.