Skip to content

Instantly share code, notes, and snippets.

View linben's full-sized avatar
🥑

Ben Lin linben

🥑
  • AI
  • San Francisco
  • 23:08 (UTC -07:00)
  • X @blin23
View GitHub Profile
#!/usr/bin/bash
/opt/mesosphere/bin/pkgpanda uninstall && \
rm -rf /opt/mesosphere /var/lib/mesos /var/lib/dcos /var/lib/zookeeper /var/log/mesos /etc/mesosphere /var/lib/mesosphere && \
rm -rf /etc/profile.d/dcos.sh /etc/systemd/journald.conf.d/dcos.conf /etc/systemd/system/dcos-cfn-signal.service /etc/systemd/system/dcos-download.service /etc/systemd/system/dcos-link-env.service /etc/systemd/system/dcos-setup.service /etc/systemd/system/multi-user.target.wants/dcos-setup.service /etc/systemd/system/multi-user.target.wants/dcos.target
{
"id": "python-upgrade",
"cmd": "sleep 5 && python -m http.server $PORT0",
"container": {
"type": "DOCKER",
"docker": {
"image": "python:3.5",
"network": "HOST",
"forcePullImage":true
}
{
"id": "department-a",
"apps": [
{
"id": "service-common",
"cpus": 0.1,
"mem": 32,
"ports": [0],
"cmd": "sleep 3 && python -m http.server 80",
"instances": 2,
{
"id": "toggle",
"cmd": "sleep 9 && cd $MESOS_SANDBOX && python toggle.py 80",
"cpus": 0.05,
"mem": 16.0,
"disk": 0.0,
"ports": [9002],
"instances": 3,
"uris":[
"http://downloads.mesosphere.com/misc/toggle.tgz"
{
"id": "mysql",
"container": {
"type": "DOCKER",
"docker": {
"image": "mysql:5.7.6",
"network": "BRIDGE",
"portMappings": [
{ "hostPort": 0, "containerPort": 3306, "servicePort": 9001 }
]
{
"id": "nginx",
"container": {
"type": "DOCKER",
"docker": {
"image": "nginx:1.7.7",
"network": "BRIDGE",
"portMappings": [
{ "hostPort": 0, "containerPort": 80, "servicePort": 9000 }
],