This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- add jason/demo app - extend Makefile commands Additionally: - create 1k rooms on Medea start - increase logger buffer to 2048 and block on logger overflow - dockerize Yarn usage in Makefile
- Loading branch information
Showing
16 changed files
with
413 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--cache-folder ".cache/yarn/" | ||
--non-interactive true | ||
|
||
network-timeout 600000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules/ | ||
|
||
/yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Stage 'dist' creates project distribution. | ||
# | ||
|
||
# https://hub.docker.com/_/node | ||
FROM node:alpine AS dist | ||
|
||
COPY / /npm/ | ||
|
||
RUN cd /npm/ \ | ||
&& yarn install --pure-lockfile | ||
|
||
|
||
|
||
|
||
# | ||
# Stage 'runtime' creates final Docker image to use in runtime. | ||
# | ||
|
||
# https://hub.docker.com/_/nginx | ||
FROM nginx:stable-alpine AS runtime | ||
|
||
COPY conf/nginx.vh.conf /etc/nginx/conf.d/default.conf | ||
|
||
COPY index.html /app/ | ||
COPY --from=dist /npm/node_modules/jason-alexlapa/ /app/js/ | ||
|
||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Medea Demo | ||
========== | ||
|
||
Demo application for performing video calls via [Medea] media server. | ||
|
||
|
||
|
||
|
||
|
||
[Medea]: https://github.com/instrumentisto/medea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
server { | ||
listen 80 default_server; | ||
server_name _; | ||
|
||
root /app; | ||
index index.html; | ||
charset utf-8; | ||
|
||
location = /js/jason_alexlapa_bg.wasm { | ||
types { } default_type "application/wasm"; | ||
} | ||
|
||
# Disable unnecessary access logs. | ||
location = /favicon.ico { | ||
access_log off; | ||
log_not_found off; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "2" | ||
|
||
services: | ||
webclient: | ||
container_name: demo-webclient | ||
image: instrumentisto/medea-demo:dev | ||
ports: | ||
- "80:80" | ||
- "6379:6379" # coturn redis | ||
- "8080:8080" # medea ws | ||
volumes: | ||
- ./conf/nginx.vh.conf:/etc/nginx/conf.d/default.conf | ||
medea: | ||
container_name: demo-medea | ||
image: instrumentisto/medea:dev | ||
depends_on: ["coturn-db"] | ||
environment: | ||
MEDEA_LOG.LEVEL: "DEBUG" | ||
network_mode: service:webclient | ||
coturn: | ||
container_name: demo-coturn | ||
image: instrumentisto/coturn:4.5 | ||
depends_on: ["coturn-db"] | ||
command: | ||
- --log-file=stdout | ||
volumes: | ||
- ../../dev/coturn/turnserver.conf:/etc/coturn/turnserver.conf:ro | ||
- ../../.cache/coturn/data:/var/lib/coturn | ||
network_mode: host | ||
coturn-db: | ||
container_name: demo-coturn-db | ||
image: redis:alpine | ||
command: ["redis-server", "/etc/redis.conf"] | ||
volumes: | ||
- ../../dev/coturn/redis.conf:/etc/redis.conf:ro | ||
network_mode: service:webclient |
Oops, something went wrong.