Skip to content

Commit

Permalink
Add major todo to clean up leaked semaphore objects
Browse files Browse the repository at this point in the history
Add a docker-compose file for speech-synthesis
Add a container name for speech-synthesis API
  • Loading branch information
dormant-user committed Sep 17, 2024
1 parent 76af329 commit 5a72ed9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
speech-synthesis:
image: thevickypedia/speech-synthesis:latest
container_name: speech-synthesis
restart: always
ports:
- "5002:5002"
environment:
HOME: "${HOME}"
working_dir: "${PWD}"
volumes:
- "${HOME}:${HOME}"
- /usr/share/ca-certificates:/usr/share/ca-certificates
- /etc/ssl/certs:/etc/ssl/certs
user: "${UID}:${GID}"
stdin_open: true
tty: true
1 change: 1 addition & 0 deletions jarvis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
version = "5.1.0"


# todo: gather and join all processes that are triggered
def __preflight_check__() -> Callable:
"""Startup validator that imports Jarvis' main module to validate all dependencies' installation status.
Expand Down
1 change: 1 addition & 0 deletions jarvis/modules/audio/speech_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def run_new_container(client: DockerClient) -> str:
# This may take a while depending on image availability
logger.info("Spinning up a new docker container to run speech-synthesis API")
result = client.containers.run(
name="speech-synthesis",
image="thevickypedia/speech-synthesis",
ports={"5002/tcp": models.env.speech_synthesis_port},
environment=[f"HOME={models.env.home}"],
Expand Down

0 comments on commit 5a72ed9

Please sign in to comment.