Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melezhik/sparky-docker
Sparky running as docker container
https://github.com/melezhik/sparky-docker
docker sparky
Last synced: 3 months ago
JSON representation
Sparky running as docker container
- Host: GitHub
- URL: https://github.com/melezhik/sparky-docker
- Owner: melezhik
- Created: 2017-07-06T09:02:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T18:07:55.000Z (about 4 years ago)
- Last Synced: 2023-04-04T04:27:33.604Z (almost 2 years ago)
- Topics: docker, sparky
- Language: Dockerfile
- Size: 24.4 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
Run [Sparky](https://github.com/melezhik/sparky) as a Docker container.
# USAGE
$ docker pull melezhik/sparky
## Run application as a docker container
$ 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/sparkyAnd 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
## Tailing Sparky daemon logs:
$ docker logs -t -f $image-id
## Setup your sparky projects
You should follow [sparky](https://github.com/melezhik/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## Setting sparky timeout
docker run -e SPARKY_TIMEOUT=20 ...
# See also
[Docker Alpine Linux](https://hub.docker.com/_/alpine) - Alpine docker image
# Author
Alexey Melezhik