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
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) |
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
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 |
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 | |
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' | |
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
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |
NewerOlder