Skip to content

Instantly share code, notes, and snippets.

The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog
short string
short string
short string
short string
short string
short string
short string
@mssio
mssio / run-multiple-docker-containers-in-coreos-cluster.md
Created November 13, 2014 04:46
Step By Step Running Multiple Docker Container in Core OS Cluster

Step By Step Running Multiple Docker Container in Core OS Cluster

  1. Create docker image for Node App (use this as reference for Dockerfile)
  2. Push the Node App image to Docker Hub
  3. Ensure that fleetctl is running and working from your local shell command
  4. Create new Node service template file (use this as reference for node@.service)
  5. Create docker image for Nginx load balancer (follow this tutorial to create nginx load balancer) 
  6. Push the Nginx image to Docker Hub
  7. Create new Nginx service template file [(use this as reference for nginx_lb@.service)](https://gist.github.com/mssio/1b949d0952aa
@mssio
mssio / coreos-nginx-load-balancer.md
Last active March 1, 2016 19:32
Nginx Load Balancer Service For Core OS

#Nginx Load Balancer Service For Core OS

Create a directory to manage using fleetctl for this service:

$ mkdir static

Create this file in static/nginx_lb.service

@mssio
mssio / coreos-node-service.md
Last active August 29, 2015 14:09
Multiple Node Service Template for Core OS

#Multiple Node Service Template for Core OS

Create 2 directory to manage using fleetctl for this service:

$ mkdir {templates,instances}

Create this file in templates/node@.service

@mssio
mssio / dockerfile-node-app.md
Last active November 28, 2018 19:56
Dockerfile for Node App

#Dockerfile for Node App

Here is sample dockerfile for a basic express app

FROM ubuntu:14.04

RUN apt-get update
RUN apt-get install -qy curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -