Mumuki Sqlite Runner
SQLite Runner for the Mumuki Platform, based on Leandro Di Lorenzo's MQL project.
Install
Clone the Project
$ git clone https://github.com/mumuki/mumuki-sqlite-runner
$ cd mumuki-sqlite-runner
Install Ruby Environment
# install ruby
$ rbenv install 2.3.1
$ rbenv rehash
# install bundle gem
$ gem install bundler
# install project dependencies
$ bundle install
Install Docker Environment
Verify docker installation
$ sudo docker run hello-world
Allow docker run without root privileges
# Create the docker group
$ sudo groupadd docker
# Add your user to the docker group.
$ sudo usermod -aG docker [your-user]
Log out and log back in SO that your group membership is re-evaluated.
Then Verify that you can run docker commands without sudo.
$ docker run hello-world
Pull docker container
$ docker pull mumuki/mumuki-sqlite-worker
Run Tests
$ bundle exec rspec
Run the Server
$ bundle exec rackup -p 4567
If you need to verify that runner is running, open your web browser and go to http://localhost:4567/info. You should see a JSON response like this (but more extensive):
{
"name": "sqlite",
"version": "0.1",
"language": {
"name": "sqlite",
"version": "v0.2.2"
},
"url": "http://localhost:4567/info"
}