This file contains hidden or 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
docker pull postgres:latest | |
docker run -d --name db postgres:latest | |
docker build -t web . | |
docker run -d --name web -p 8000:8000 --link=db:db web:latest python app.py |
This file contains hidden or 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
docker pull postgres:latest | |
docker run -d --name db postgres:latest | |
docker build -t web . | |
docker run -d --name web -p 8000:8000 --link=db:db web:latest python app.py |
This file contains hidden or 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 | |
echo "nameserver $(boot2docker ip)" | sudo tee /etc/resolver/dev |
This file contains hidden or 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
# Title | |
--- | |
# Agenda | |
1. Introduction | |
2. Deep-dive | |
3. ... |
This file contains hidden or 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
machine: | |
ruby: | |
version: 2.1.5 | |
services: | |
- docker | |
dependencies: | |
override: | |
- docker info | |
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS |
This file contains hidden or 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
[ req ] | |
default_bits = 2048 | |
encrypt_key = no | |
default_md = sha256 | |
prompt = no | |
utf8 = yes | |
distinguished_name = my_req_distinguished_name | |
req_extensions = my_extensions | |
[ my_req_distinguished_name ] |
This file contains hidden or 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 | |
set -e | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications" | |
RED=$(tput setaf 1) | |
GREEN=$(tput setaf 2) | |
NORMAL=$(tput sgr0) | |
msg_ok() { |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import requests | |
import argparse | |
CLOUD_IMAGES_URL="https://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:aws.json" | |
def ubuntu_ami(region, version, arch, storage, virt): | |
req = requests.get(CLOUD_IMAGES_URL) | |
if req.status_code != 200: |
This file contains hidden or 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 | |
DOCKER_NETWORK=$(docker-machine ssh dev "ip route show" | awk '/docker0/{print $1}') | |
DOCKER_HOST=$(docker-machine ip dev) | |
sudo bash <<EOF | |
route -n delete "${DOCKER_NETWORK}" "${DOCKER_HOST}" || true | |
route -n add "${DOCKER_NETWORK}" "${DOCKER_HOST}" | |
EOF |
This file contains hidden or 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 | |
export GOLANG_VERSION=1.10.3 | |
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz | |
export GOLANG_DOWNLOAD_SHA256=fa1b0e45d3b647c252f51f5e1204aba049cde4af177ef9f2181f43004f901035 | |
apt-get update -qq | |
apt-get install -y --no-install-recommends \ | |
g++ \ |