Blank Slate
A programmable foundation for complex projects.
Usage
- Install Blank Slate:
pip install blankslate
- Install slates:
slate install NAME
slate install github:me/myslate
- Run your project:
slate run
Slates
Slates (slate.sh) are simple scripts, installed to ./slates/
.
- commands.sh:call() adds logging to calls
- Blank Slate environment variables $BS* available
#!/bin/bash
set -e
source $BSDIR/scripts/commands.sh
call echo "Hello from my awesome script"
Examples
Browse ready-made slates.
Bootstrap the base requirements slate install bootstrap
and then slate install EXAMPLE_NAME
.
-
example
- HAProxy for simultaneously working with a number of backend technologies (python3, python3, pypy5, nodejs, golang).
-
example-ansible
- Use Ansible for task automation
- django-react
Docker integration
Example Dockerfile
docker build --rm --tag blankslate .
docker run --rm -it -p 8000:9000 --name blankslate blankslate
Project Templates
The example
template:
-
config/haproxy.cfg
(routing) -
Procfile
(processes) -
.env
(environment variables) -
packages
(optional: package dependencies (pip, npm, ...)) -
run.sh
(optional: use something else than Process Boy)