Skip to content

Instantly share code, notes, and snippets.

View jeromy-vandusen-obs's full-sized avatar

Jeromy Van Dusen jeromy-vandusen-obs

View GitHub Profile
@jeromy-vandusen-obs
jeromy-vandusen-obs / PersistentMultiContainerWebAppsInAzure.md
Last active August 13, 2018 21:01
Persistent Multi-Container Web Apps in Azure

Persistent Multi-Container Web Apps in Azure

This documents how to deploy multiple Docker container images to Azure as a Web App for Containers App Service with persistent storage. The example will demonstrate deploying Jenkins with an Nginx acting as a reverse proxy. The Nginx proxy will be provided by this image, which is an Nginx image configured to reverse proxy a web application running on port 8080.

Create Resources

You will need to create a Resource Group and an App Service Plan. For this example, I will create a Resource Group called

@jeromy-vandusen-obs
jeromy-vandusen-obs / ADockerTemplateForSpringBootApplications.md
Last active August 24, 2018 13:18
A Docker Template for Spring Boot Applications

A Docker Template for Spring Boot Applications

  1. Create the Dockerfile in the project root directory using the template below.
  2. Add properties and plugin to your pom.xml file using the template below.
  3. Build the image using mvn package and push to Docker Hub using mvn deploy.
@jeromy-vandusen-obs
jeromy-vandusen-obs / DockerSwarmCheatSheet.md
Last active March 3, 2025 13:29
Docker Swarm Cheat Sheet

Docker Swarm Cheat Sheet

Initialize the local Docker service as a swarm manager. As a guideline, in production you should have 3 to 5 managers. Swarm is managed through port 2377, which should be blocked from external access.

$ docker swarm init

Join an existing swarm as a worker node. Replace $SWARM_MANAGER with the IP address or domain name of a swarm manager node.

@jeromy-vandusen-obs
jeromy-vandusen-obs / DockerInstallationCheatSheet.md
Last active October 11, 2018 14:09
Docker Installation Cheat Sheet

Docker Installation Cheat Sheet

Install Docker on Ubuntu

$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce
@jeromy-vandusen-obs
jeromy-vandusen-obs / KubernetesInstallationCheatSheet.md
Last active November 12, 2018 18:25
Kubernetes Installation Cheat Sheet

Kubernetes Installation Cheat Sheet

Use these steps to install Kubernetes tools on the master and worker nodes.

$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
$ sudo vim /etc/apt/sources.list.d/kubernetes.list
> deb http://apt.kubernetes.io/ kubernetes-xenial main
$ sudo apt-get update
$ sudo apt-get install kubelet kubeadm kubectl
@jeromy-vandusen-obs
jeromy-vandusen-obs / KubernetesCheatSheet.md
Created August 31, 2018 19:48
Kubernetes Cheat Sheet

Kubernetes Cheat Sheet

Basic Commands

Check the versions on the client and server.

$ kubectl version

View information about the master, including its dashboard location.

Docker on a New Virtual Machine - Installation Shortcut

After setting up a new Ubuntu Linux VM and logging in for the first time, copy/paste the following command to update the OS and tools, install Docker CE, install Docker Compose, set the Docker service to automatically start when the OS starts, and add yourself to the Docker group so that you can execute Docker commands. Immediately after submitting this command, you may be prompted for your password. After that, the process will run completely unattended, and will end with a reboot of the VM.

$ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && sudo apt-get update && sudo apt-get install -y docker-ce && sudo usermod -aG docker $USER && sudo systemctl enable docker && sudo curl -L https://github.com/docker/compose/releases/down
@jeromy-vandusen-obs
jeromy-vandusen-obs / AnsibleInstallationCheatSheet.md
Last active November 27, 2018 14:10
Ansible Installation Cheat Sheet

Ansible Installation Cheat Sheet

Install Ansible

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
@jeromy-vandusen-obs
jeromy-vandusen-obs / KafkaDevelopmentCheatSheet.md
Last active March 19, 2019 19:48
Kafka Development Cheat Sheet

Kafka Development Cheat Sheet

These instructions assume you have Docker and Docker Compose installed.

To run a local development instance of Kafka, first create the following docker-compose.yml file:

version: '2'
services:
 zookeeper:
@jeromy-vandusen-obs
jeromy-vandusen-obs / S3StaticWebsiteCheatSheet.md
Last active September 26, 2019 22:01
S3 Static Website Cheat Sheet

S3 Static Website Cheat Sheet

  1. On the S3 console, click "Create bucket".
  2. On the first page, enter a unique bucket name and preferred region.
  3. On the second page, accept all default settings.
  4. On the third page, uncheck "Block all public access".
  5. On the last page, review the settings and click "Create bucket".
  6. Click into the newly created bucket, and then click "Upload" to upload your static content.
  7. Select the "Properties" tab and then click "Static website hosting".
  8. Check "Use this bucket to host a website", enter the file name of the index document, and then click "Save".