Reproduces mesosphere/marathon#1763
Last active
August 29, 2015 14:24
-
-
Save kolloch/b0ff39e96c3bbd083b8a to your computer and use it in GitHub Desktop.
Reproduce 100-continue bug
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
cadvisor: | |
image: google/cadvisor:latest | |
volumes: | |
- /:/rootfs/ro | |
- /var/run:/var/run:rw | |
- /sys:/sys:ro | |
- /var/lib/docker:/var/lib/docker:ro | |
ports: | |
- '9000:8080' | |
zookeeper: | |
image: jplock/zookeeper | |
ports: | |
- '2181:2181' | |
mesosmaster: | |
image: 'mesosphere/mesos-master:0.22.1-1.0.ubuntu1404' | |
ports: | |
- '5050:5050' | |
links: | |
- zookeeper | |
command: '--zk=zk://zookeeper:2181/mesos --quorum=1 --registry=in_memory' | |
mesosslave1: | |
image: 'mesosphere/mesos-slave:0.22.1-1.0.ubuntu1404' | |
hostname: 'mesosslave1' | |
ports: | |
- '5051' | |
expose: | |
- '31000:32000' | |
links: | |
- zookeeper | |
command: '--master=zk://zookeeper:2181/mesos' | |
mesosslave2: | |
image: 'mesosphere/mesos-slave:0.22.1-1.0.ubuntu1404' | |
hostname: 'mesosslave2' | |
ports: | |
- '5051' | |
expose: | |
- '31000:32000' | |
links: | |
- zookeeper | |
command: '--master=zk://zookeeper:2181/mesos' | |
mesosslave3: | |
image: 'mesosphere/mesos-slave:0.22.1-1.0.ubuntu1404' | |
hostname: 'mesosslave3' | |
ports: | |
- '5051' | |
expose: | |
- '31000:32000' | |
links: | |
- zookeeper | |
command: '--master=zk://zookeeper:2181/mesos' | |
# chronos: | |
# image: 'mesosphere/chronos:chronos-2.3.4-1.0.81.ubuntu1404-mesos-0.22.1-1.0.ubuntu1404' | |
# ports: | |
# - '8081:8080' | |
# links: | |
# - zookeeper | |
# - mesosslave1 # health checks | |
# - mesosslave2 # health checks | |
# - mesosslave3 # health checks | |
# command: '/usr/bin/chronos --master zk://zookeeper:2181/mesos --zk_hosts zk://zookeeper:2181/chronos' | |
marathon1: | |
image: 'mesosphere/marathon:v0.8.2' | |
# image: 'mesosphere/marathon:v0.9.0-RC3' | |
# image: 'marathon-0.9.0-java8' | |
ports: | |
- '8080:8080' | |
links: | |
- zookeeper | |
- mesosslave1 # health checks | |
- mesosslave2 # health checks | |
- mesosslave3 # health checks | |
command: '--master zk://zookeeper:2181/mesos --zk zk://zookeeper:2181/marathonnew --max_tasks_per_offer 50 --enable_metrics' | |
marathon2: | |
image: 'mesosphere/marathon:v0.8.2' | |
# image: 'marathon-0.9.0-java8' | |
ports: | |
- '8081:8080' | |
links: | |
- zookeeper | |
- marathon1 | |
- mesosslave1 # health checks | |
- mesosslave2 # health checks | |
- mesosslave3 # health checks | |
command: '--master zk://zookeeper:2181/mesos --zk zk://zookeeper:2181/marathonnew --max_tasks_per_offer 50 --enable_metrics' |
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
# Expects marathon source as context directory | |
FROM mesosphere/mesos:0.22.1-1.0.ubuntu1404 | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install --no-install-recommends -y \ | |
default-jdk \ | |
scala \ | |
curl | |
RUN \ | |
apt-get update && \ | |
apt-get install -y python-software-properties software-properties-common && \ | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | |
add-apt-repository -y ppa:webupd8team/java && \ | |
apt-get update && \ | |
apt-get install -y oracle-java8-installer && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
rm -rf /var/cache/oracle-jdk8-installer | |
RUN curl -SsL -O http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb && \ | |
dpkg -i sbt-0.13.5.deb | |
COPY . /marathon | |
WORKDIR /marathon | |
RUN sbt -Dsbt.log.format=false assembly && \ | |
mv $(find target -name 'marathon-assembly-*.jar' | sort | tail -1) ./ && \ | |
rm -rf target/* ~/.sbt ~/.ivy2 && \ | |
mv marathon-assembly-*.jar target | |
ENTRYPOINT ["./bin/start"] |
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
{ | |
"id": "/redis-kaputt", | |
"groups": [{ | |
"id": "databases", | |
"apps": [{ | |
"id": "redis", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "redis:2.8", | |
"network": "HOST" | |
}, | |
"volumes": [{ | |
"containerPath": "/data", | |
"hostPath": "/local/data/redis-dev", | |
"mode": "RW" | |
}, {}] | |
}, | |
"cmd": "touch /data/redis.conf; redis-server /data/redis.conf --dir /data --loglevel verbose --requirepass geheim --port 6379 --masterauth geheim --min-slaves-to-write 1", | |
"cpus": 0.2, | |
"mem": 256.0, | |
"instances": 3, | |
"maxLaunchDelaySeconds": 5, | |
"healthChecks": [{ | |
"protocol": "COMMAND", | |
"command": { "value": "env; redis-cli -h $HOST -p 6379 -a geheim -n 1 info | egrep 'role:master|master_link_status:up'" }, | |
"gracePeriodSeconds": 20, | |
"intervalSeconds": 20, | |
"portIndex": 0, | |
"timeoutSeconds": 10, | |
"maxConsecutiveFailures": 3 | |
}], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.51, | |
"maximumOverCapacity": 0 | |
}, | |
"constraints": [ | |
["hostname", "UNIQUE"], | |
["hostname", "LIKE", "srv004|srv005|srv006"] | |
] | |
}, { | |
"id": "sentinel", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "redis:2.8", | |
"network": "HOST" | |
}, | |
"volumes": [{ | |
"containerPath": "/data", | |
"hostPath": "/local/data/redis-sentinel-dev", | |
"mode": "RW" | |
}] | |
}, | |
"cmd": "touch /data/redis.conf; eval \"redis-sentinel /data/redis.conf --dir /data --loglevel verbose --port 26379 --masterauth geheim $(grep -q 'sentinel monitor' /data/redis.conf || echo '--sentinel monitor mymaster $(redis-cli -a geheim -p 6379 info | grep master_host: | cut -f2 -d:) 6379 2 --sentinel auth-pass mymaster geheim') --sentinel down-after-milliseconds 5000\"", | |
"cpus": 0.1, | |
"mem": 64.0, | |
"instances": 3, | |
"maxLaunchDelaySeconds": 5, | |
"healthChecks": [{ | |
"protocol": "COMMAND", | |
"command": { "value": "redis-cli -h $HOST -p 26379 -n 1 info | grep sentinel_masters:1" }, | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 30, | |
"portIndex": 0, | |
"timeoutSeconds": 10, | |
"maxConsecutiveFailures": 2 | |
}], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.51, | |
"maximumOverCapacity": 0 | |
}, | |
"constraints": [ | |
["hostname", "UNIQUE"], | |
["hostname", "LIKE", "srv004|srv005|srv006"] | |
] | |
}] | |
}] | |
} |
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 | |
curl -v -H "Content-Type: application/json" -X POST http://192.168.59.103:8081/v2/groups -d @redis-kaputt.json --trace-ascii /dev/stdout |
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
{} |
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
asd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment