Skip to content

Instantly share code, notes, and snippets.

@sigma
sigma / get-static-docker
Last active February 7, 2018 21:55
static #docker binary in #coreos
#!/bin/bash
VERSION=$(docker --version | awk '{print $3}' | sed 's/,//')
BINARY="/opt/bin/docker-$VERSION-static"
LINK="/opt/bin/docker.static"
if [ ! -e "$BINARY" ]; then
curl -L -o "$BINARY" "https://get.docker.com/builds/Linux/x86_64/docker-$VERSION"
chmod a+x "$BINARY"
ln -sf "$BINARY" "$LINK"
@philips
philips / user-data
Last active September 16, 2020 14:19
Running consul on top of CoreOS utilizing etcd for automatic bootstrapping.
#!/bin/bash
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul
curl http://storage.googleapis.com/ifup-org-tilde/consul-0.2.0-linux-x86-64.lzma | lzcat > /opt/consul
chmod +x /opt/consul
@bbhoss
bbhoss / linode.rb
Created November 4, 2011 04:26
Linode Ohai Plugin
#
# Author:: Preston Marshall (<preston@ideamarshal.com>)
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#