ABC notation is a shorthand form of musical notation.
docker run --rm -it -v "`pwd`:/app" -w /app minidocks/abc abc2svg /usr/local/share/doc/abcm2ps/examples/sample.abc
To export abc to pdf, it is necessary to connect a chromium container to the abc container. So let’s create a docker-compose file:
version: '3.6'
x-base: &base
volumes:
- .:/app
- /tmp:/tmp
working_dir: /app
command: sshd
services:
abc:
<<: *base
image: minidocks/abc
links:
- chromium
environment:
ALIAS_CHROMIUM__BROWSER: ssh chromium chromium-browser
chromium:
<<: *base
image: minidocks/chromium
cap_add:
- "SYS_ADMIN"
Then let’s run the command:
docker-compose run --rm abc abctopdf local/path/to/file.abc
Tag | Size |
---|---|
latest |