Skip to content

Instantly share code, notes, and snippets.

View pascals-msft's full-sized avatar

Pascal Sauliere pascals-msft

  • Microsoft France
  • France
View GitHub Profile
# demo: new linux VM in Azure
# you need az and a SSH key in ~/.ssh
demo=demo$RANDOM
rgname=${demo}rg
vmname=${demo}vm
location=westeurope
az group create -l $location -n $rgname -o yamlc
az vm create --image UbuntuLTS -g $rgname -n $vmname -o yamlc
@pascals-msft
pascals-msft / k8s-jenkins.md
Last active December 8, 2023 01:05
How to install Jenkins on Kubernetes on Azure

DevFest Nantes 2017 presentation: Pipeline de déploiement continu dans Kubernetes (PDF, French).

How to install Jenkins on Kubernetes on Azure with ACS

This document will walk you through the installation of an Azure Container Service cluster with Kubernetes as the orchestrator, and then the installation of Jenkins as a service in the cluster.

Prerequisites

You will need a Bash terminal on Linux or macOS or Bash on Windows Subsystem for Linux.

Then you need an SSH Key. We assume you have one in $HOME/.ssh and we use the public key only: $HOME/.ssh/id_rsa.pub, so you will be able to login to the cluster using your key.

@pascals-msft
pascals-msft / vs2017.sh
Last active March 8, 2017 18:41
How to create a VS 2017 VM in Azure using Azure CLI V2
# Azure CLI V2: https://github.com/Azure/azure-cli
# adapt location, resource group name, VM name, VM size, user name and password
az group create -l northeurope -n rg-vs2017
az vm create --image MicrosoftVisualStudio:VisualStudio:VS-2017-Comm-WS2016:latest -g rg-vs2017 -n vm-vs2017 --size Standard_DS2_v2 --os-type windows --admin-username azureuser --admin-password Secret.Pwd.6
@pascals-msft
pascals-msft / docker-commands.txt
Created February 1, 2017 09:21
Docker useful commands
Docker for Windows 1.13
Switch between Linux and Windows Containers:
"C:\Program Files\docker\Docker\DockerCli.exe" -SwitchDaemon
Everyday Hacks for Docker
https://codefresh.io/blog/everyday-hacks-docker/
@pascals-msft
pascals-msft / ws2016-install-docker.txt
Created January 26, 2017 12:19
How to install Doker for Windows Server 2016
# admin PowerShell:
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Restart-Computer -Force
@pascals-msft
pascals-msft / azure-cli-install.txt
Created January 26, 2017 06:58
How to install Azure CLI on Ubuntu or Ubuntu on Windows
Source:
https://nodejs.org/en/download/package-manager/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g azure-cli
@pascals-msft
pascals-msft / wsl-uninstall.txt
Created November 17, 2016 13:23
How to uninstall Windows Subsystem for Linux
In a privileged cmd.exe:
lxrun /uninstall /full
sc stop lxssmanager
rmdir /S %LOCALAPPDATA%\lxss
optionalfeatures.exe --> uncheck "Windows Subsystem for Linux (Beta)"