mapbox / spritezero-cli

A command-line interface to spritezero.
Other
166 stars 64 forks source link

Add docker image #34

Open HarelM opened 4 years ago

HarelM commented 4 years ago

Mapnik installation does not support windows anymore. This means that this tool can't be installed on windows (As far as I could tell). Creating a docker image of this command line tool can bypass this limitation for windows users.

pthomas931 commented 4 years ago

It would appear the dependency chain is broken for this tool. However, it appears this fork works as intended: https://www.npmjs.com/package/@beyondtracks/spritezero-cli

HarelM commented 4 years ago

@pthomas931 Thanks for the input, however, I'm looking for a solution to another fork of this repository that supports svgs and sdf. In the meantime I found out that windows 10 has a built in capability of running linux and I was able to use that to create my sprite from svg files. Thanks for the tip though :-)

zbycz commented 3 years ago

btw, I found docker image by @macteo and it works perfectly. Thanks to the author :)

I even managed to run it on Macbook Air M1, with preview version of docker.

Place your svg files in ./sprites/maki, and run this in current folder: docker run --platform linux/amd64 -it -e FOLDER=maki -e THEME=makisprite -v ${PWD}:/data dolomate/spritezero