Skip to content

saulshanabrook/vnc2flv-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vnc2flv-docker

Docker Build Status

Docker Image for recording VNC sessions.

Simple wrapper around the vnc2flv Python package, adding an entrypoint to save the PASSWORD env var in the ./pwd file, because flvrec.py requires the password to be in a file.

You can use this with the Selenium debug images to record what happens in them:

docker network create --driver bridge isolated_nw
docker run --rm --network=isolated_nw --name selenium -d selenium/standalone-chrome-debug
docker run --rm --network=isolated_nw --name rec -v $PWD:/tmp/output/ -e PASSWORD=secret saulshanabrook/vnc2flv flvrec.py -o /tmp/output/rec.flv -P pwd selenium 5900
^C

Or you can use this in your docker-compose.yml file:

version: '2'
services:
  selenium:
    image: selenium/standalone-chrome-debug:3.4.0
  selenium-rec:
    image: saulshanabrook/vnc2flv
    command: ./wait-for selenium:5900 -- flvrec.py -o /tmp/output/rec.flv -P pwd selenium 5900
    volumes:
      - .:/tmp/output/
    depends_on:
      - selenium
    environment:
      PASSWORD: secret

And do something with it:

docker-compose up -d selenium-rec selenium
# interact with the selenium image
docker-compose stop selenium-rec

Now you should have a rec.flv in your current directory.

About

Docker Image for recording VNC sessions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages