Skip to content

Commit

Permalink
fix: docker entrypoint script (#408)
Browse files Browse the repository at this point in the history

Signed-off-by: ivelin <[email protected]>
  • Loading branch information
Ivelin Ivanov authored Dec 14, 2021
1 parent a30a280 commit 9c3a5cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ tasks:
pre-commit run --all-files
echo "Running ambianic-edge testsuite:"
source ./.gitpod.env.sh
sudo python3 -m pip install pytest pytest-mock pytest-cov
python3 -m pytest -v --log-cli-level=DEBUG --cov=ambianic --cov-report=term tests/
vscode:
Expand Down
2 changes: 1 addition & 1 deletion build/ambianic-docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ python3 -m uvicorn ambianic.webapp.fastapi_app:app --port 8778 &
if [ -f /workspace/peerjs-config.yaml ]
then
# make a backup copy of existing config file
sudo mv --force /workspace/peerjs-config.yaml /workspace//workspace/peerjs-config.yaml.bak
sudo mv --force /workspace/peerjs-config.yaml /workspace/workspace/peerjs-config.yaml.bak
fi
sudo cp /opt/ambianic-edge/peerjs-config.yaml /workspace/
# create symbolic link from .peerjsrc to .peerjsrc.json to allow dynaconf loading as config file
Expand Down
13 changes: 13 additions & 0 deletions peerjs-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ secure: true
# STUN/TURN servers info
ice_servers:
- urls: 'stun:stun.l.google.com:19302'
# NOTE: aiortc does not behave well with multiple STUN and TURN server options
# - username: "1639539168:prj_2OPKFTM1cuVGO0uq4CmBWa"
# credential: "BdT+ctWfSdy9h1xqFf/jN1OM5Wc="
# urls: "turn:globalturn.subspace.com:3478?transport=tcp"
# - username: "1639539168:prj_2OPKFTM1cuVGO0uq4CmBWa"
# credential: "BdT+ctWfSdy9h1xqFf/jN1OM5Wc="
# urls: "turns:globalturn.subspace.com:5349?transport=udp"
# - username: "1639539168:prj_2OPKFTM1cuVGO0uq4CmBWa"
# credential: "BdT+ctWfSdy9h1xqFf/jN1OM5Wc="
# urls: "turns:globalturn.subspace.com:5349?transport=tcp"
# - username: "1639539168:prj_2OPKFTM1cuVGO0uq4CmBWa"
# credential: "BdT+ctWfSdy9h1xqFf/jN1OM5Wc="
# urls: "turns:globalturn.subspace.com:443?transport=tcp"
# - urls: 'turn:numb.viagenie.ca'
# username: '[email protected]'
# credential: 'DAEidbG!xHavEX7'
Expand Down
3 changes: 1 addition & 2 deletions src/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ long_description = file: README.md
long_description_content_type = text/markdown
url = https://ambianic.ai
license = Apache Software License 2.0
classifiers =
classifiers =
Development Status :: Beta
Programming Language :: Python :: 3
OSI Approved :: Apache Software License
Expand All @@ -21,4 +21,3 @@ classifiers =
[options]
packages = find:
python_requires = >=3.7

0 comments on commit 9c3a5cd

Please sign in to comment.