-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Peter Mangiafico edited this page Dec 16, 2024
·
7 revisions
Welcome to the speech-to-text wiki!
This will become deprecated at some point. Info as of Dec 16 2024
- Find IP address for EC2 instance. It is pinned in slack in #dlss-text-extraction channel.
- SSH into instance. You will need your public SSH key placed on the server for authentication. Ask for help if needed.
- speech-to-text repo has been cloned on the instance. It is in the
speech-to-text
folder. - The
.env
files are placed on the server with specific configuration. - The code is updated from Github via a
git pull
. - If you need to build an updated container, look in history for
docker build
command in order to build the updated container. Command isdocker build --tag sul-speech-to-text .
Note that you must be in thespeech-to-text
folder to build the image. - Building the container may take a while.
-
docker images
shows the built images -
docker ps
shows the running images with container IDs -
docker logs <CONTAINER ID>
shows the logs from the running container. Add a--follow
to follow the logs. -
docker stop <CONTAINER ID>
to force stop it from running. -
docker rmi <IMAGE ID>
to remove old images to save space. You may need to remove the container first withdocker rm <CONTAINER ID>
.docker ps -a
to see containers. -
docker run --rm --detach --env-file .env.qa --gpus all sul-speech-to-text
to start it up again.