This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## nginx health check | |
## ------------------------------------------------- | |
## This script will check if nginx is up or down. It will exit with a 0 status if nginx is up, | |
## and exit with a 1 status if nginx is down. | |
## This script also integrates cr-webhook.sh which is a notification script that sends a webhook | |
## request to a specified monitor at runbook.io. To use this script without the runbook webhook | |
## simply leave RUNBOOK_NOTIFY set to False. | |
## Runbook.io settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import yaml | |
import rethinkdb as r | |
from rethinkdb.errors import RqlDriverError, RqlRuntimeError | |
import socket | |
import time | |
# Load Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su - | |
# apt-get install -y apt-transport-https ca-certificates curl gnupg-agent python-pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add | |
# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
# apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt-get install -y docker-ce docker-ce-cli containerd.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: go | |
go: | |
- 1.14.1 | |
os: | |
- linux | |
env: | |
- "PATH=/home/travis/gopath/bin:$PATH" | |
before_script: | |
- go mod tidy | |
script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
tests: | |
build: . | |
working_dir: /go/src/github.com/madflojo/hord | |
command: go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cassandra-primary: | |
image: madflojo/cassandra:latest | |
command: /bin/bash -c "sleep 1 && /docker-entrypoint.sh cassandra -f" | |
environment: | |
- CASSANDRA_KEYSPACE=hord | |
expose: | |
- 7000 | |
- 7001 | |
- 7199 | |
- 9042 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tests: | |
build: . | |
depends_on: | |
- cassandra | |
- cassandra-primary | |
working_dir: /go/src/github.com/madflojo/hord | |
entrypoint: go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vi dev-compose.yml |
OlderNewer