This file contains hidden or 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
package main | |
import ( | |
"github.com/opencontainers/runc/libcontainer" | |
"github.com/opencontainers/runc/libcontainer/configs" | |
_ "github.com/opencontainers/runc/libcontainer/nsenter" | |
"os" | |
"runtime" | |
"path/filepath" |
This file contains hidden or 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
package utils | |
import ( | |
"encoding/base64" //for marathon auth | |
) | |
// encrypts the str with base64 | |
func Base64Encode(str string) string { | |
return base64.StdEncoding.EncodeToString([]byte(str)) | |
} |
This file contains hidden or 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
zookeeper: | |
image: zookeeper:3.4.9 | |
net: "host" | |
restart: always | |
mesosmaster: | |
image: mesosphere/mesos-master:1.0.0 | |
net: "host" | |
environment: | |
- MESOS_CLUSTER=test |
This file contains hidden or 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/env python | |
#this code dependcy on kazoo. https://kazoo.readthedocs.io/en/latest/index.html | |
#pip install kazoo | |
import sys,os | |
from kazoo.client import KazooClient | |
def copy2remote(path, srczk, dstpath, dstzk): |