GithubHelp home page GithubHelp logo

roxyboxxy / docker-xvfb-twitch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siedi/docker-xvfb-twitch

0.0 1.0 0.0 5 KB

Docker image to run Chrome on a linux VPS and stream it on Twitch

Dockerfile 45.51% Shell 54.49%

docker-xvfb-twitch's Introduction

Twitch VPS Streamer

Docker image to run Chrome on a linux VPS and stream it on Twitch

Disclaimer

Code is partly based on https://github.com/stephen-fox/chrome-docker and other forks of it.

Features

Runs xvfb with the window manager fluxbox, vncso you can connect from remote and then chrome. It includes a separate script to start the stream on Twitch by launching ffmpeg. You can even include an external radio stream as audio source.

Build image

Just as every other image: docker build . -t twitch-streamer

Launch Container

docker run -p 127.0.0.1:5900:5900 --rm -v /etc/localtime:/etc/localtime:ro -v /dev/shm/:/dev/shm/ -e TZ=Europe/Berlin -e VNC_SERVER_PASSWORD=<password> -e SERVER_KEY=<your streaming key from twitch> --user chrome --name twitch-streamer --privileged twitch-streamer

Note: The MacOS VNC client will not be able to login unless you set a password for the VNC server.

Once the container is running, you can VNC into it at 127.0.0.1 (if you are running the container on a VPS, you might have to start a ssh tunnel first ssh -L 5900:localhost:5900 my_vps)

Launch Chrome from a terminal window by running.

google-chrome

You can also start Google Chrome by right-clicking the Desktop and selecting:

Applications > Network > Web Browsing > Google Chrome

Launch stream

Once everything is set up, you can launch the stream docker exec -ti twitch-streamer bash /twitch_streamer.sh

If you want to stop it, just press CTRL-C

Security concerns

This image starts a X11 VNC server which spawns a framebuffer. Google Chrome also requires that the image be run with the --privileged flag set. This flag disables security labeling for the resulting container. Be very careful if you run the container on a non-firewalled host.

Some applications (such as Google Chrome) will not run under the root user. A non-root user named chrome is included for such scenarios.

docker-xvfb-twitch's People

Contributors

roxyboxxy avatar siedi avatar

Watchers

 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.