Public | Automated Build

Last pushed: a year ago
Short Description
ContainerPilot
Full Description

#cp

This container just has ContainerPilot in it.
And I know that sounds insane but checkout the usage.

usage

Say you have a script like this:

#!/bin/bash
IP_ADDRESS=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
DC=tst-1

# Consul
mkdir -p /usr/etc/mesos/cp
sudo tee /usr/etc/mesos/cp/mesos-slave.json <<-EOF
{
    "consul": "${IP_ADDRESS}:8500",
    "logging": {
        "level": "INFO",
        "format": "default",
        "output": "stdout"
    },
    "services": [{
        "name": "mesos-slave",
        "port": 5051,
        "health": [
            "/usr/bin/curl",
            "--fail",
            "-s",
            "http://${IP_ADDRESS}:5051/health"
        ],
        "tags": ["${DC}"],
        "poll": 10,
        "ttl": 30
    }]
}
EOF

Then you could run this container like this:

docker run -d -v /usr/etc/mesos/cp/mesos-slave.json:/app.json flyinprogrammer/cp
Docker Pull Command
Owner
flyinprogrammer
Source Repository

Comments (0)