Skip to content

Instantly share code, notes, and snippets.

@anonymuse
anonymuse / create_service.sh
Last active September 29, 2016 14:01
Docker Kata 005 service creation script
#!/usr/bin/env bash
#
# Create a Swarm Mode service that builds an Elasticsearch, Kibana and cAdvisor
# cluster.
# Set up global variables
swarm_network=${SWARM_NETWORK:-"monitoring"}
workers=${WORKERS:-"node01 node02 node03 node04"}
master=${MASTERS:-"master01"}
swarm_port=2377
@anonymuse
anonymuse / create_cluster.sh
Last active December 30, 2016 23:34
Docker Kata 005 cluster creation script.
#!/usr/bin/env bash
#
# Purpose: Create a Swarm Mode cluster with a single master and a configurable
# number of workers.
# This script is a mirror of the following gist, which is used to
# populate a Medium story. Unfortunately, there's no way to synchronize all
# three
#
# Medium: https://medium.com/contino-io/docker-kata-005-ac8429082f6c
# Gist: https://gist.github.com/anonymuse/502e7bf5c7b67bb95a4250cdccbc5125

Worldwide Caution, March 3, 2016

The Department of State is updating the Worldwide Caution with information on the continuing threat of terrorist actions and violence against U.S. citizens and interests throughout the world. Current information suggests that ISIL, al-Qa'ida, Boko Haram, al-Shabaab, and other terrorist groups continue to plan terrorist attacks in multiple regions. Recent terrorist attacks, whether by those affiliated with terrorist entities, copycats, or individual perpetrators, serve as a reminder that U.S. citizens need to maintain a high level of vigilance and take appropriate steps to increase their security awareness. This replaces the Worldwide Caution dated July 29, 2015.

In August 2014, after the United States and regional partners commenced military action against ISIL, ISIL called on supporters to attack foreigners wherever they are. Authorities believe there is a continued likelihood of reprisal attacks against U.S., Western, and coalition partner interests throughout the world,

@anonymuse
anonymuse / kata002_cluster_create.sh
Last active August 26, 2016 11:09
Docker Kata 002 script
#!/bin/bash
#
## Summary
# This script is designed to get you up and running quickly with a Docker Swarm
# and Visualizer in order to run through <placeholder> exercise quickly.
#
## References:
# See blog post "Docker Kata 002 >>> Stamp out Clusters"
# https://medium.com/@Jesse_White/docker-kata-002-a20f49249dca
#
#!/bin/bash
#
## Summary
# This script is designed to get you up and running quickly with a Docker Swarm and Visualizer
# in order to run through <placeholder> exercise quickly.
#
## Pre-requisites:
# Docker Machine installed on your laptop
# OSX
# Docker for Mac
@anonymuse
anonymuse / dockernyc_talk.md
Last active November 18, 2018 19:55
Docker NYC Speaker Guidelines

Hello there!

We here at DockerNYC are glad to hear that you are interested in giving a talk at the DockerNYC Meetup. Our meetup is a great place to reach technology enthusiasts who are using containers, leveraging orchestration and scheduling, and considering security, audit and compliance in their workloads.

Here's a description of the sort of talks we're looking for from an organizer's perspective:

  • The talk is hands-on, and demonstrates working functionality in the container ecosystem. A good rule of thumb is that the talk be around 50% demo, and 50% talking / discussion / etc.

  • The speaker is educating the group, as we'd like our members to learn about Docker at every event. Further discussion and education on supporting container ecosystem tools, modern application architecture, and engineering culture and practice is also very welcome.

@anonymuse
anonymuse / nodeexample.dab
Created August 17, 2016 16:02
Docker Live Debugging Raw
{
"Services": {
"web": {
"Args": [
"nodemon",
"--debug=5858"
],
"Image": "anonymuse/nodeexample_web@sha256:264925f820480085bda5d07c8b2e7fa6debd7d2d87c349953872845d8c84f3d1",
"Networks": [
"default"
@anonymuse
anonymuse / debugger.json
Created August 17, 2016 14:56
Docker Live Debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": true,
@anonymuse
anonymuse / docker-compose.yml
Created August 17, 2016 14:31
Docker Live Debugging docker-compose.yml
version: "2"
services:
web:
build: .
command: nodemon --debug=5858
volumes:
- .:/code
ports:
- "8000:8000"
@anonymuse
anonymuse / Dockerfile
Created August 17, 2016 14:29
Docker Live Debugging Dockerfile
FROM node:5.11.0-slim
WORKDIR /code
RUN npm install -g nodemon
COPY package.json /code/package.json
RUN npm install && npm ls
RUN mv /code/node_modules /node_modules