Project

elders

0.0
No commit activity in last 3 years
No release in over 3 years
Docker based task runner.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

 Project Readme

Elders Build Status

Enable you to run your command line tasks in containers.

Usage

Task

# Create a new task
# Params are `name`, `image` and `command`
task = Elder::Task.new 'sample', 'ruby', 'ruby'

# Start the task passing params to the command and ENV variables
task.start '-v'

# Wait until the task is finished
sleep 1

# Return it results
task.logs

# Remove the docker container used in this operation
task.clean

TODO

  • Enable more options to the task (like links, volumes, network).
  • Create a method :wait for the Elders::Task, this will block the main thread until the task is completed.
  • Doc the Elders::Stack usage.

Development

  • Running tests:
    1. Build the Docker image: docker build -t elders .
    2. Run the RSpec: docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock elders bundle exec rspec

Extra

Interactive mode in the conteiner.

  • docker run --rm -it -v (PWD):/elders -v /var/run/docker.sock:/var/run/docker.sock elders /bin/bash