sparky_on_docker

Sparky on docker

How to run Sparky on docker

Build docker image

$ git clone https://github.com/melezhik/sparky.git sparky_src
$ cd sparky_src/
$ docker build . -t local/sparky

Prepare Sparky local storage

$ sudo apt-get install sqlite3
$ cd sparky_src/
$ zef install --/test YAMLish DBIish Time::Crontab Data::Dump
# this command will create
# directory ~/.sparky
# with sparky sqlite database
# and some other internal
# data inside 
$ raku -I lib/ db-init.raku

This sparky local storage (~/.sparky directory) persists on host file system and remains across Sparky container restarts

Run sparky

# we run sparky docker container
# and mount sparky local storage
# inside running container

$ docker run -it  -p 4000:4000 -v ~/.sparky/:/home/raku/.sparky local/sparky:latest 

Go to http://localhost:4000

Add new project

To add new project, just create a new directory inside local storage and copy/create all project data inside this directory

$ mkdir ~/.sparky/projects/new-project
$ nano  ~/.sparky/projects/new-project/sparky.yaml
$ nano  ~/.sparky/projects/new-project/sparrowfile

Sparky v0.2.32

Sparky is a flexible and minimalist continuous integration server and distribute tasks runner written in Raku

Authors

  • Alexey Melezhik

License

Artistic-2.0

Dependencies

YAMLishDBIishDBIish::PoolJSON::FastHTTP::TinySparrow6:ver<0.0.90+>Sparrowdo:ver<0.1.54+>Sparky-Job-Api:ver<0.0.12+>Time::CrontabFile::Directory::TreecroCro::HTTP:ver<0.8.9+>Cro::HTTP::ServerCro::HTTP::RouterCro::WebApp::TemplateData::Dump:ver<0.0.12+>Text::Markdown

Test Dependencies

Provides

  • Sparky
  • Sparky::HTML
  • Sparky::Job
  • Sparky::Security
  • Sparky::Utils

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.