Skip to content

Instantly share code, notes, and snippets.

@xer0x

xer0x/cachet.sh

Created Feb 22, 2017
Embed
What would you like to do?
Setup Cachet on Docker
#!/usr/bin/env bash
# Following the steps on https://docs.cachethq.io/docs/get-started-with-docker
setup () {
git clone https://github.com/cachethq/Docker.git cachet-docker
cd cachet-docker
LATEST_TAG=$(git tag -l | grep -i '^v' | sort | tail -n 1)
# Checkout latest source tag
git checkout $LATEST_TAG
# build containers
docker-compose build
# start service
docker-compose up -d
# give cachet time to start
sleep 5
# generate key
docker exec -i cachetdocker_cachet_1 php artisan key:generate
# install
docker exec -i cachetdocker_cachet_1 php artisan app:install
}
start () {
cd cachet-docker
docker-compose up -d
}
stop () {
cd cachet-docker
docker-compose down
}
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.