Skip to content

Instantly share code, notes, and snippets.

root@ab977c6c73db:/var/log/supervisor# startup.sh
eth0 Link encap:Ethernet HWaddr a6:e9:23:01:80:44
inet addr:100.68.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::a4e9:23ff:fe01:8044/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:878 (878.0 B) TX bytes:648 (648.0 B)
FROM ubuntu
RUN apt-get update
RUN apt-get install -y bridge-utils
ADD startup.sh /usr/bin/
RUN chmod +x /usr/bin/startup.sh
ADD pipework /usr/bin/
RUN chmod +x /usr/bin/pipework
@rem7
rem7 / gist:f96b1a3c9296ea963404
Last active August 29, 2015 14:08
/usr/bin/startup.sh
#!/bin/bash
ifconfig
echo 'waiting for eth0 and eth1'
/usr/bin/pipework --wait -i eth0
echo 'found eth0'
/usr/bin/pipework --wait -i eth1
echo 'found eth1'
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)