- Fig - Fast, isolated development environments using Docker
- Packer - Tool for creating identical machine images
- decking - Create, manage and run clusters of Docker containers
- Ansible
- Kubernetes - Container Cluster Manager
- CPU: Intel Core i5-6500 3.2GHz Quad-Core Processor ($204.99) | |
- http://www.newegg.com/Product/Product.aspx?Item=9SIA24G3KG0114&cm_re=Intel_Core_i5-6500_3.2GHz_Quad-Core_Processor-_-19-117-563-_-Product | |
- Motherboard: Gigabyte GA-H110M-A Micro ATX LGA1151 Motherboard ( $49.99) | |
- http://www.newegg.com/Product/Product.aspx?Item=N82E16813128873 | |
- Memory: Kingston HyperX Fury Black 8GB (2 x 4GB) DDR4-2133 Memory ($39.99 for 2) | |
- http://www.newegg.com/Product/Product.aspx?Item=N82E16820104532&cm_re=Kingston_HyperX_Fury_Black_8GB_%282_x_4GB%29_DDR4-2133_Memory-_-20-104-532-_-Product | |
- Storage: PNY CS1311 240GB 2.5" Solid State Drive ($59.99) | |
- http://www.newegg.com/Product/Product.aspx?Item=N82E16820178967&cm_re=PNY_CS1311_240GB_2.5%22_Solid_State_Drive-_-20-178-967-_-Product |
<?php | |
//class stuff here ... yadda yadda yadda .... | |
public function getTicketById(Request $request, Response $response) { | |
//$send = $request->param('format', 'json'); | |
//$response->send("/tickets by ID: Ticket ID: ". $request->id); | |
return "route matched!"; | |
} |
location /apps/hello { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_pass http://192.168.99.100:8080; | |
proxy_read_timeout 20; |
return [ | |
//Routes. | |
/** HTTP Method - URI - Array[Controller, controller method to call] **/ | |
['GET', '/', [$IndexCtrl, 'get']], | |
['GET', '/about', [$IndexCtrl, 'getAbout']], | |
['GET', '/contact', [$IndexCtrl, 'getContact']] | |
]; |
#!/bin/bash | |
# Assumes a pre-built carina cluster, e.g.: | |
# | |
# carina create --wait shipyard \ | |
# && carina credentials shipyard \ | |
# && eval `carina env shipyard` | |
# |
#!/bin/bash | |
if [ "$1" != "" ] && [ "$1" = "-h" ]; then | |
echo "Shipyard Deploy uses the following environment variables:" | |
echo " ACTION: this is the action to use (deploy, upgrade, remove)" | |
echo " IMAGE: this overrides the default Shipyard image" | |
echo " PREFIX: prefix for container names" | |
echo " SHIPYARD_ARGS: these are passed to the Shipyard controller container as controller args" | |
echo " TLS_CERT_PATH: path to certs to enable TLS for Shipyard" | |
exit 1 |
Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Note: I recommend to use https://github.com/jpetazzo/pipework instead.
Now if you want Unionize, it's still here. Just check those examples.
#!/bin/bash | |
for i in {10000..10999}; do | |
VBoxManage modifyvm "default" --natpf1 "tcp-port$i,tcp,,$i,,$i"; | |
VBoxManage modifyvm "default" --natpf1 "udp-port$i,udp,,$i,,$i"; | |
done |
This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.