Giter Site home page Giter Site logo

wrirdocker's Introduction

WRIR Docker Stack

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

Instructions

  1. Clone down this repo into the root directory of the filesystem /
  2. Follow the instructions to install Docker and Docker-Compose
  3. Mount the network drives to /wrirdocker/mounts/Y and /wrirdocker/mounts/Z using this TechRepublic article
  4. cd into the repo and run docker-compose up -d .
  5. 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.
  6. ???
  7. Profit... er, non-profit that is

Updates

  • 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

wrirdocker's People

Contributors

zklosko avatar

Watchers

Jim Nelson avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.