Page MenuHomeDevCentral

Setup a test run of Cachet
Closed, ResolvedPublic

Description

Cachet - https://cachethq.io/ - is an open source status page solution, in PHP (Laravel).

This seems something interesting to test, and easy to customize.

Event Timeline

dereckson raised the priority of this task from to Wishlist.
dereckson updated the task description. (Show Details)
dereckson added subscribers: fauve, Sandlayth, dereckson.

DNS configuration

status.nasqueron.org. 86400 IN CNAME www3.nasqueron.org.

Container launched, web server is listening at port 39080.

Docker image
See rDCACHET.

Container deployment script

#!/bin/sh

INSTANCE_NAME=cachet

# Checks container isn't running
docker-container-status $INSTANCE_NAME > /dev/null
if [ "$?" -lt 2 ]; then
        echo "Container is already running."
        echo "To force relaunch, try docker stop $INSTANCE_NAME ; docker rm $INSTANCE_NAME ; $0"
        exit 1
fi

# Settings
DATA_DIRECTORY=/data/$INSTANCE_NAME

MYSQL_INSTANCE=acquisitariat
MYSQL_DB=$INSTANCE_NAME
MYSQL_USER=`ssh -i /root/.ssh/id_zr zr@ysul.nasqueron.org getcredentials 47 username`
MYSQL_PASS=`ssh -i /root/.ssh/id_zr zr@ysul.nasqueron.org getcredentials 47`

# Create container
docker run -t -d \
        --link $MYSQL_INSTANCE:mysql \
        -p 39080:80 \
        -e DB_HOST=mysql \
        -e DB_DATABASE=$MYSQL_DB \
        -e DB_USERNAME=$MYSQL_USER \
        -e DB_PASSWORD=$MYSQL_PASS \
        --name $INSTANCE_NAME nasqueron/cachet

echo "Deployment done at `date`."
exit 0