$ brew install kubectl
$ brew cask install minikube
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
| # Namespace | |
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: monitoring | |
| # ConfigMap | |
| --- | |
| apiVersion: v1 |
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
| #!/usr/bin/env bash | |
| # This script is meant for quick & easy install via: | |
| # $ curl -fsSL https://gist.githubusercontent.com/bborysenko/b0c582fcd8258b4c5714f5dec6f51c2c/raw/macOS.sh -o macOS.sh | |
| # $ bash macOS.sh | |
| function install() { | |
| brew install kubernetes-cli | |
| brew cask install minikube | |
| curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit |
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
| #!/usr/bin/env bash | |
| # curl -fsSL https://gist.githubusercontent.com/bborysenko/c4c83702ccaae285135c8ed2617203f2/raw/node_exporter_install_el6.sh -o node_exporter_install_el6.sh | |
| # bash node_exporter_install_el6.sh | |
| wget https://github.com/prometheus/node_exporter/releases/download/v0.15.0/node_exporter-0.15.0.linux-amd64.tar.gz | |
| tar -xzvf node_exporter-0.15.0.linux-amd64.tar.gz | |
| mv node_exporter-0.15.0.linux-amd64/node_exporter /usr/bin/node_exporter | |
| rm -rf node_exporter-0.15.0.linux-amd64 node_exporter-0.15.0.linux-amd64.tar.gz | |
| mkdir /var/log/prometheus/ /var/run/prometheus |
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
| #!/usr/bin/env bash | |
| dump_dir=~/docker-volume-dump | |
| if [ ! -d $dump_dir ]; then | |
| mkdir -p $dump_dir | |
| fi | |
| for volume in $(docker volume ls -q); do | |
| dump_file=$dump_dir/$volume.tar.gz |
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
| #!/usr/bin/env bash | |
| export AUTO_DEVOPS_VERSION=0.1.0 | |
| function build_docker_images() { | |
| echo "Build Docker images" | |
| } | |
| function version() { | |
| echo "${AUTO_DEVOPS_VERSION}" |
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
| # This file is a template, and might need editing before it works on your project. | |
| # Auto DevOps | |
| # This CI/CD configuration provides a standard pipeline for | |
| # * building a Docker image (using a buildpack if necessary), | |
| # * storing the image in the container registry, | |
| # * running tests from a buildpack, | |
| # * running code quality analysis, | |
| # * creating a review app for each topic branch, | |
| # * and continuous deployment to production | |
| # |
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
| image: docker:latest | |
| # When using dind, it's wise to use the overlayfs driver for | |
| # improved performance. | |
| variables: | |
| DOCKER_DRIVER: overlay | |
| GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID | |
| IMAGE_NAME: image_id | |
| services: |
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
| body { | |
| background-color: #f2f2f2; | |
| } | |
| .body-tabbed-page { | |
| background: #f2f2f2; | |
| } | |
| #header, .body-board-view #header, .body-light-board-background #header { |
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
| @-moz-document domain("www.evernote.com") { | |
| .wrapper#container { | |
| background-color: #ffffff; | |
| border: none; | |
| -webkit-border-radius: 5px; | |
| -moz-border-radius: 5px; | |
| border-radius: 5px; | |
| margin: 0 auto 0; | |
| width: 800px;; | |
| -webkit-box-shadow: none; |