vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

DRAFT: Add dockerized version of asymptote #340

Open jamievlin opened 2 years ago

jamievlin commented 2 years ago

Hi John,

Please do not merge in yet, this is a /very/ crude merge request and there are alot of improvements that can be made

This is a simple merge request to add a dockerized build script for asymptote. One advantage of dockerized containers is that users can launch asymptote directly with minimal configuration, anywhere (for example, if someone is not familiar with asy's dependencies).

To build, run make MAKECPUCOUNT=<cpu count> dockerized-asy, and to run dockerized asy, map the current directory to /workdir then run the image, for example,

docker run --rm --volume ~/documents:/workdir asy diagram.asy -fpdf.

This image shows a crude working asymptote docker image.

image

-- Jamie