Sign inSign up

bric3/svg-term-cli

By bric3

Updated almost 6 years ago

Bare docker image of svg-term-cli

Image
0

211

bric3/svg-term-cli repository overview

= Simple docker container for svg-term-cli

https://github.com/marionebl/svg-term-cli[`svg-term`] is great to convert an https://asciinema.org/[ascinema] cast to an animated SVG.

image:docker-build-rec.svg[animated parrot]

== Motivation

I didn't want to install NodeJS/npm on my system.

== Usage

Since svg-term runs in a container, I didn't want to use volumes, although it's certainly possible. The most simple usage would be

[source, shell]

$ asciinema rec -c "docker build --tag svg-term-cli-docker ." docker-build-rec.json

$ docker run --rm -i bric3/svg-term-cli
< docker-build-rec.json \

docker-build-rec.svg


Tip for big SVG, it may be useful to tweak node mmeory settings, e.g. passing --memory=5g -e NODE_OPTIONS="--max-old-space-size=4096".

== Local build

Use any suitable tag to refer to the image.

[source, shell]

$ docker build --tag svg-term-cli-docker . $ docker run svg-term-cli-docker

Tag summary

Content type

Image

Digest

Size

381.8 MB

Last updated

almost 6 years ago

docker pull bric3/svg-term-cli