A home CI/CD built in python for the Raspberry Pi
The purpose is to install this repo into a Raspberry Pi 1b using Raspbian and Python 3.6.5, then use it as a CD/CI home server among other uses.
- Mount Flask server to accept the web hook from Github/Bitbucket
- Send output to Slack Channel or Telegram
- Manage File System for cloning / pulling
- Refactor it!
- Clone this repository
- Ensure python 3 is installed and type
pip install -r requirements.txt
- Run the server with
python3 main.py YOUR_SLACK_WEBHOOK_URL
The Dockerfile is on this repo if you want to check it out. It clones this repo and perform the install of the dependencies plus the execution of the flask server mapped with the 5000 port. You should edit the Dockerfile with your SLACK_WEBHOOK_URL
docker build -t raspberry-home-ci .
docker run --rm -p 5000:5000 --name=raspberry-home-pi -t raspberry-home-ci