mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-04-05 06:08:20 +02:00
bbb-graphql-middleware dev mode
This commit is contained in:
parent
56d8f768e4
commit
1a79f73fe3
0
.cache/go-build/.gitkeep
Normal file
0
.cache/go-build/.gitkeep
Normal file
0
.cache/go/.gitkeep
Normal file
0
.cache/go/.gitkeep
Normal file
1
dev.env
1
dev.env
@ -3,6 +3,7 @@
|
|||||||
# enables
|
# enables
|
||||||
# - html5: webpack dev server
|
# - html5: webpack dev server
|
||||||
# - bbb-grahql-actions: watch & restart
|
# - bbb-grahql-actions: watch & restart
|
||||||
|
# - bbb-graphql-middleware: building on start
|
||||||
DEV_MODE=true
|
DEV_MODE=true
|
||||||
|
|
||||||
# accept self signed certificates
|
# accept self signed certificates
|
||||||
|
@ -307,8 +307,12 @@ services:
|
|||||||
bbb-graphql-middleware:
|
bbb-graphql-middleware:
|
||||||
build:
|
build:
|
||||||
context: mod/bbb-graphql-middleware
|
context: mod/bbb-graphql-middleware
|
||||||
|
{{ if isTrue .Env.DEV_MODE }}
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
|
{{ else }}
|
||||||
additional_contexts:
|
additional_contexts:
|
||||||
- src=./repos/bigbluebutton/bbb-graphql-middleware
|
- src=./repos/bigbluebutton/bbb-graphql-middleware
|
||||||
|
{{ end }}
|
||||||
args:
|
args:
|
||||||
BBB_BUILD_TAG: {{ .Env.BBB_BUILD_TAG }}
|
BBB_BUILD_TAG: {{ .Env.BBB_BUILD_TAG }}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -321,6 +325,16 @@ services:
|
|||||||
bbb-net:
|
bbb-net:
|
||||||
ipv4_address: 10.7.7.32
|
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:
|
collabora:
|
||||||
image: collabora/code:latest
|
image: collabora/code:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
8
mod/bbb-graphql-middleware/Dockerfile.dev
Normal file
8
mod/bbb-graphql-middleware/Dockerfile.dev
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user