1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00
dockerfiles/vnc2flv
Pratik raj b113da5d19 chore: Use --no-cache-dir flag to pip in Dockerfiles, to save space
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages
by pip don't cached on system . This is a best practise which make sure
to fetch ftom repo instead of using local cached one . Further , in case
of Docker Containers , by restricing caching , we can reduce image size.
In term of stats , it depends upon the number of python packages
multiplied by their respective size . e.g for heavy packages with a lot
of dependencies it reduce a lot by don't caching pip packages.

Further , more detail information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2021-07-02 01:02:49 +05:30
..
docker-compose.yml update hans 2016-11-24 12:28:28 +08:00
Dockerfile chore: Use --no-cache-dir flag to pip in Dockerfiles, to save space 2021-07-02 01:02:49 +05:30
README.md update hans 2016-11-24 12:28:28 +08:00

vnc2flv

Vnc2flv is a cross-platform screen recording tool for UNIX, Windows or Mac. It captures a VNC desktop session (either your own screen or a remote computer) and saves as a Flash Video (FLV) file.

This docker image works very well with selenium/standalone-firefox-debug.

docker-compose.yml

vnc2flv:
  image: vimagick/vnc2flv
  command: -P /pwdfile -o record.flv localhost 5900
  volumes:
    - ./pwdfile:/pwdfile
    - ./data:/data
  net: host
  stop_signal: SIGINT

Up and Running

# Create passwd file
$ echo secret > pwdfile

# Start recording
$ docker-compose up -d

# Stop recording
$ docker-compose stop

# View logs
$ docker-compose logs
Attaching to vnc2flv_vnc2flv_1
vnc2flv_1  | start recording
vnc2flv_1  | stop recording