Container for asciinema recorder

This commit is contained in:
Dennis Schwerdel 2021-02-16 22:41:14 +01:00
parent c63b2d1cd5
commit 8e49311fef
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
FROM ubuntu
RUN apt-get update && apt-get install -y asciinema
RUN mkdir /root/.asciinema
RUN mkdir /etc/vpncloud
WORKDIR /data
ADD config /root/.asciinema/config
RUN echo 'PS1="\[\e[00;34m\]\[\e[01;31m\]\u\[\e[00;01;34m\]@\[\e[00;34m\]node\[\e[01;31m\]:\[\e[00;34m\]\w\[\e[01;31m\]> \[\e[00m\]"' >> /root/.bashrc

View File

@ -0,0 +1,3 @@
[record]
command = /usr/bin/bash -l
idle_time_limit = 2.5

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
docker build -t asciinema-recorder .
docker run -it --rm --network host -v $(pwd)/../../target/release/:/usr/local/bin/ -v $(pwd):/data asciinema-recorder asciinema "$@"