This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| func handler(w http.ResponseWriter, r *http.Request) { | |
| fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:]) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Start the az command-line inside a container (or inside the Azure cloud shell) | |
| ------------------------------------------------ | |
| docker run -p 83:8080 -it azuresdk/azure-cli-python bash | |
| 2. Login | |
| -------- | |
| az login | |
| 3. Select the correct subscription and create a new resource group | |
| ------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "apiVersion": "vlabs", | |
| "properties": { | |
| "orchestratorProfile": { | |
| "orchestratorType": "Kubernetes", | |
| "orchestratorRelease": "1.8" | |
| }, | |
| "masterProfile": { | |
| "count": 1, | |
| "dnsPrefix": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| LABEL maintainer Radu Matei <matei.radu94@gmail.com> | |
| # Latest versions for kubectl, helm and draft | |
| ENV KUBE_LATEST_VERSION="v1.8.0" | |
| ENV HELM_LATEST_VERSION="v2.6.2" | |
| ENV DRAFT_LATEST_VERSION="v0.7.0" | |
| RUN apt-get update && apt-get install -y \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it \ | |
| -v <path-to-cluster-certificates>:/cluster \ | |
| -v <path-to-your-source-code-directory--optional>:/go-code \ | |
| -p 8080:8080 \ | |
| radumatei/kubectl-helm-draft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Default values for jenkins. | |
| # This is a YAML-formatted file. | |
| # Declare name/value pairs to be passed into your templates. | |
| # name: value | |
| Master: | |
| Name: jenkins-master | |
| Image: "jenkinsci/jenkins" | |
| ImageTag: "2.73" | |
| ImagePullPolicy: "Always" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| podTemplate(label: 'mypod', containers: [ | |
| containerTemplate(name: 'docker', image: 'docker', ttyEnabled: true, command: 'cat'), | |
| containerTemplate(name: 'kubectl', image: 'lachlanevenson/k8s-kubectl:v1.8.0', command: 'cat', ttyEnabled: true), | |
| containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:latest', command: 'cat', ttyEnabled: true) | |
| ], | |
| volumes: [ | |
| hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'), | |
| ]) { | |
| node('mypod') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: apache-php-deployment | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| labels: | |
| app: apache-php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: private-api | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| labels: | |
| app: private-api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/dotnet-nightly:2.1-sdk AS build-env | |
| WORKDIR /app | |
| # copy csproj and restore as distinct layers | |
| COPY *.csproj ./ | |
| COPY NuGet.config ./ | |
| RUN dotnet restore | |
| # copy everything else and build | |
| COPY . ./ |