Skip to content

Instantly share code, notes, and snippets.

Getting Started with Docker

This document is meant to be a starting guide to Docker and the components of Docker.

Introduction

What is Docker

Docker allows for easy deployment of applications into a sandbox environment that runs on the host operating system (i.e. Linux). The key benefit to Docker is that it allows users to package an application with all of its dependencies into a standardized unit for software development. Unlike VMs, containers don't have the heavy overhead of a Guest OS and therefore have higher efficient usage of the system resources avaliable.

@nikkomiu
nikkomiu / golang_notes.md
Last active December 15, 2018 14:37
Golang App Structure & Deploy

Golang Application Structure and Development

App Directory Structure

  • bin/ (Generated) The build output of the application
  • cmd/ The commands avaliable for running the application
  • handler/ The handlers for the requests
  • route/ The route configuration for handlers
  • db/
  • repo/ The Data Access Layer (DAL) for the database
@nikkomiu
nikkomiu / jest.config.json
Last active September 25, 2018 19:46
Jest Coverage Helper for Gitlab
{
...
"reporters": ["default", "<rootDir>/test-helpers/simple-text-summary.js"],
...
}
@nikkomiu
nikkomiu / nginx_install.sh
Last active January 7, 2020 04:02
NGINX Custom Installation
#!/bin/bash
# Usage:
## curl https://gist.githubusercontent.com/nikkomiu/cd15d615fc3390ebbd79e9d078458d10/raw/nginx_install.sh | bash -s 1.12.0
# Set up variables
PCRE_VERSION="8.40"
ZLIB_VERSION="1.2.11"
OPENSSL_VERSION="1.0.2f"
UPSTREAM_CHECK_VERSION="0.3.0"
@nikkomiu
nikkomiu / convert.rb
Created June 27, 2016 17:25
Ruby Convert SVG to PDF
require 'fileutils'
require 'pathname'
#############################################
# This assumes your directory structure is: #
#############################################
# - icons #
# - icon_set #
# - svg #
# - icon_set2 #