This is the attempt to migrate WRIR backend services to containers for easier deployment and maintence.
Please contact Zachary Klosko (@Zack on Slack) for access or additional information
- Clone down this repo into the root directory of the filesystem
/
- Follow the instructions to install Docker and Docker-Compose
- Mount the network drives to
/wrirdocker/mounts/Y
and/wrirdocker/mounts/Z
using this TechRepublic article - cd into the repo and run
docker-compose up -d .
- After the containers are launched, run
htop
to monitor the system's process. The initial load on the processor should calm back down after 5-10 minutes. - ???
- Profit... er, non-profit that is
- Icecast: ready for deployment
docker run -d --publish 8000:8000 -e ICECAST_SOURCE_PASSWORD=wwr4trou -e ICECAST_ADMIN_PASSWORD=wwr4trou -e ICECAST_RELAY_PASSWORD=wwr4trou -e ICECAST_ADMIN_USERNAME=admin -e [email protected] -e ICECAST_LOCATION=RVA -e ICECAST_HOSTNAME=bandito -e ICECAST_MAX_CLIENTS=50 -e ICECAST_MAX_SOURCES=2 --name icecast --restart=always infiniteproject/icecast
- Stream-recorder: ready for deployment
- Now based off Debian 9 (Stretch-slim)
- Because of Docker networking, can read stream from "files.wrir.org:8000" but not "localhost:8000"
- On prem:
sudo docker run -d -v "/wrirdocker/stream-recorder/scripts:/scripts" --name stream-recorder -v /wrirdocker/mounts/Y:/Y -v /wrirdocker/json/htdocs:/htdocs -v /wrirdocker/mounts/Z:/Z --restart=always recorder
- Test:
docker run -v /Users/zacharyklosko/Documents/GitHub/wrirdocker/stream-recorder/scripts:/scripts -v /Users/zacharyklosko/Desktop/Z:/Z recorder
- Json API: ready for deployment
- Using Apache's HTTPD
- On prem:
sudo docker run -d -v /wrirdocker/stream-recorder/scripts/publish:/srv/static/shows -v /wrirdocker/webdav/mounts/Y:/Y --publish 80:80 --restart=always --name api api
- Still need to mount location for logs
- Webdav: ready for deployment
- Using isyangban's fix of Bytemark's webdav image, needs manual build
- Successfully accepts user.passwd file from Blackhand!
- On prem:
sudo docker run -v /srv:/var/lib/dav/data -v /wrirdocker/webdav/user.passwd:/user.passwd -v /etc/letsencrypt/live/files.wrir.org/fullchain.pem:/cert.pem -v /etc/letsencrypt/live/files.wrir.org/privkey.pem:/privkey.pem -e AUTH_TYPE=Basic --publish 443:443 -e SERVER_NAMES=files.wrir.org --name webdav --restart=always -d webdav
- Local:
docker run -v /Volumes/files.wrir.org:/var/lib/dav/data -v /Users/zacharyklosko/Documents/GitHub/wrirdocker/webdav/user.passwd:/user.passwd -e AUTH_TYPE=Basic --publish 443:443 -e SSL_CERT=selfsigned -ti webdav