Run Sparky as a Docker container.
$ docker pull melezhik/sparky
$ docker run -d -v $sparky-root:/root/.sparky/projects -p 3000:3000 melezhik/sparky
Where $sparky-root
is a sparky root directory
For example:
$ git clone https://github.com/melezhik/sparky.git
$ docker run -d \
-v $PWD/sparky/examples:/root/.sparky/projects \
-p 3000:3000 melezhik/sparky
And then hit Sparky web ui:
$ firefox 127.0.0.1:3000
You can also create container by docker-compose:
# docker-compose -f docker-compose.yaml up
$ docker logs -t -f $image-id
You should follow sparky on how to do this.
Just be aware that as projects gets built on docker container directly you should ask no_sudo
option for sparrowdo:
$ nano $sparky-host-root/my-project/sparky.yaml
sparrowdo:
- no_sudo: true
docker run -e SPARKY_TIMEOUT=20 ...
Docker Alpine Linux - Alpine docker image
Alexey Melezhik