One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| Install Kubernetes on Mac | |
| #curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \ | |
| && chmod +x minikube | |
| #sudo mv minikube /usr/local/bin | |
| #minikube start --driver=virtualbox | |
| To make virtualbox the default driver: |
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |
| # Copyright (C) 2016 Martina Pugliese | |
| from boto3 import resource | |
| from boto3.dynamodb.conditions import Key | |
| # The boto3 dynamoDB resource | |
| dynamodb_resource = resource('dynamodb') | |
| def get_table_metadata(table_name): |
| # it was due to .Xauthority file has bad permissions or missing. In my case, .Xauthority file was missing. | |
| Ctl + ALT + F3 to switch to command line | |
| touch ~/.Xauthority | |
| xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom) | |
| xauth list | |
| sudo init 6 | |
| fixed this issue. :) |
| #!/usr/bin/env bash | |
| set -ex | |
| # To avoid locale.Error | |
| export LC_ALL="en_US.UTF-8" | |
| export LC_CTYPE="en_US.UTF-8" | |
| sudo apt-get update | |
| sudo apt-get install -yq python-pip |
Here is the looks and feel of your terminal once the tutorial has been applied on your system:
Using Homebrew:
| #!/bin/bash | |
| apt-get update | |
| apt-get -y install curl | |
| # download the Chef server package | |
| if [ ! -f /tmp/chef-server-core_12.17.33_amd64.deb ]; then | |
| echo "Downloading the Chef server package..." | |
| wget -nv -P /tmp https://packages.chef.io/files/stable/chef-server/12.17.33/ubuntu/16.04/chef-server-core_12.17.33-1_amd64.deb | |
| fi |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:ListAllMyBuckets", | |
| "Resource": "arn:aws:s3:::*" | |
| }, | |
| { | |
| "Effect": "Allow", |