I hereby claim:
- I am atmosx on github.
- I am atmosx (https://keybase.io/atmosx) on keybase.
- I have a public key whose fingerprint is 3F2B 3653 8175 1BC1 EAC7 C23C FCB4 D5AF 1A7B FEC5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Starting with 1.12 in July 2016, Docker Swarm Mode is a built-in solution with built-in key/value store. Easier to get started, and fewer ports to configure.
#!/usr/bin/env bash | |
set -x | |
NS="ns1" | |
VETH="veth1" | |
VPEER="vpeer1" | |
VETH_ADDR="10.200.1.1" | |
VPEER_ADDR="10.200.1.2" |
var ip = require("ip"); | |
var http = require('http'); | |
var host = "ip-1-2-3-4.ec2.internal" | |
function getExternalIP(host) { | |
if (host.includes('ec2.internal')){ | |
console.log("This is an EC2 instance. Fetching 'listenIp' via HTTP"); | |
http.get({'host': 'checkip.amazonaws.com', 'port': 80, 'path': '/'}, function(resp) { | |
resp.on('data', function(ip) { | |
return ip; |