/lui

A simple deployment setup tool, inspired by luigi and homebrew.

Primary LanguagePythonMIT LicenseMIT

lui Build Status

A simple deployment setup tool, inspired by luigi and homebrew.

Usage

wget https://raw.githubusercontent.com/17zuoye/lui/master/lui.py
chmod +x lui.py
./lui.py


# install on clusters
for host in host1 host2
do
  echo
  echo "** Installing $host"
  export USE_USER=hadoop
  export lui=lui.py
  export json=lui_hadoop_cluster.json
  scp $lui $json root@$host:/tmp/
  nohup ssh root@$host "su - $USE_USER -c 'cd /tmp; ./$lui $json; rm -f $lui $json;'" &
done

Related to luigi

As the luigi README said, "Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc.", dependencies install is awesome!

Related to homebrew

Homebrew is a package manager for OS X, and there's also a fork version called linuxbrew. They are both written in Ruby, and lui want to directly use their package informations, so lui need to be written in Ruby too, but now it is still written in Python ...

Run tests

pip install tox
tox