Metadata-Version: 2.1
Name: gluetube
Version: 0.1.0.dev7
Summary: A lightweight python script scheduler
Home-page: https://github.com/ctomkow/gluetube
Author: Craig Tomkow
Author-email: ctomkow@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE

# gluetube
A python script scheduler with a shared local database. Meant to enable easy automation and integration of infrastructure and systems. Like cron, but with more bells and whistles.

## installation

There are two ways to deploy gluetube. 

* docker
* virtual machine / bare metal

### docker

1. `docker volume create gluetube-cfg`

2. `docker volume create gluetube-db`

3. `docker run -d --init -v gluetube-cfg:/home/gluetube/.gluetube/etc -v gluetube-db:/home/gluetube/.gluetube/db ctomkow/gluetube`

### VM

1. `adduser gluetube`

2. `pip install --user gluetube`

3. `gt --configure`

4. `gt --initdb`

5. `gt daemon --background`

## example usage

> `gt --help`

> `gt summary`

> `gt schedule 1 --now`

## pipeline development

You are meant to develop your own pipelines in python for gluetube. The following is a brief description of how to get your development environment setup.

1. `docker pull ctomkow/gluetube`

2. `docker volume create gluetube-db`

3. `docker volume create gluetube-cfg`

4. `docker run -itd --name gluetube --net=host -v gluetube-db:/home/gluetube/.gluetube/db -v gluetube-cfg:/home/gluetube/.gluetube/etc ctomkow/gluetube:latest`

5. Use VS code. Attach VS code to running container. Clone your pipeline repository inside your VS code instance attached to the container. Update ~/.gluetube/etc/gluetube.cfg and point config to your pipeline directory

## roadmap

[gluetube roadmap](https://github.com/ctomkow/gluetube/wiki/Roadmap)
