List of all my presentations over the past five years.
John Willis
Twitter: https://twitter.com/botchagalupe Linkedin https://www.linkedin.com/in/johnwillisatlanta
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
# Create | |
docker-machine create -d virtualbox local | |
eval "$(docker-machine env local)" | |
TOKEN_SWARM=$(docker run swarm create) | |
docker-machine create -d virtualbox mh-keystore | |
docker $(docker-machine config mh-keystore) run -d -p "8500:8500" -h "consul" progrium/consul -server -bootstrap | |
CREATE_MASTER_NODE="docker-machine create --engine-opt="cluster-advertise=eth1:2376" --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" -d virtualbox --swarm --swarm-master --swarm-discovery token://$TOKEN_SWARM swarm-master" | |
CREATE_NODE_01="docker-machine create --engine-label name=swarm-agent-00 --engine-label storage=ssd --engine-opt="cluster-advertise=eth1:2376" --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" -d virtualbox --swarm --swarm-discovery token://$TOKEN_SWARM swarm-agent-00" | |
CREATE_NODE_02="docker-machine create --engine-label name=swarm-agent-01 --engine-label storage=rust --engine-opt="cluster-advertise=eth1:2376" --engine-opt="cluster-store=consul://$(docker-m |
- The build will be vendored into github.com/docker/docker in the next few days. In the meantime here is the binary that will be getting vendored. docker-1.11.0-dev.zip
- Ipvlan L2 mode network with multiple subnets without a parent specified
- For a long test that will create 54 networks and 120+ containers, then delete them all and recreate them again try ipvlan-macvlan-it.sh Instructions here Docker Macvlan and Ipvlan Manual IT Test
- FYI Note: When the parent is empty or the
--internal
flag is used, a linux typedummy
interface is dynamically created by Libnetwork to act as the parent. This network is completely isolated and is the equivalent to a--internal
flag. This is a good mode for demoing. - The first test requires an interface
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
FROM golang:alpine AS build | |
ADD . /go/src/github.com/my/project | |
WORKDIR /go/src/github.com/my/project | |
RUN go build -o /mybinary ./cmd/mybinary | |
FROM alpine:latest | |
RUN apk add --no-cache ca-certificates | |
COPY --from=build /mybinary /mybinary | |
ENTRYPOINT ["/mybinary"] |
Tools
- Kops https://github.com/kubernetes/kops/blob/master/docs/README.md
- Kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/
- kubespy https://blog.pulumi.com/kubespy-trace-a-real-time-view-into-the-heart-of-a-kubernetes-service
- kops https://icicimov.github.io/blog/virtualization/Kubernetes-Cluster-in-AWS-with-Kops/
Presentations
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
function aws-sso-access-token() { | |
find "$HOME/.aws/sso/cache" -type f ! -name 'botocore*' -exec jq -r '.accessToken' {} \; | head -n1 | |
} | |
function aws-sso-list-accounts() { | |
aws sso list-accounts --access-token "$(aws-sso-access-token)" "$@" | |
} | |
function aws-sso-list-account-roles() { | |
aws sso list-account-roles --access-token "$(aws-sso-access-token)" "$@" |