Instructions on how to setup a secured Jenkins CI on a Mac.
All of these operations are done with your admin user.
Install the command line developer tools.
| variable "dsc_key" { | |
| default = "dsc_registration_key_from_portal" | |
| } | |
| variable "dsc_endpoint" { | |
| default = "dsc_registration_url_from_portal" | |
| } | |
| variable dsc_config { | |
| default = "node_configuration_you_want_applied__can_leave_blank" |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| ID=$(uuidgen) | |
| LOCATION=westus | |
| RG=terraformrg | |
| # Create unique name for storage account | |
| STORAGE_ACCOUNT=$(echo "terraform-${ID}" | tr '[:upper:]' '[:lower:]' | sed 's/-//g' | cut -c1-24) |
| # Discussion on Medium: https://medium.com/@russell.s.pierce/setting-up-aws-glue-with-terraform-8f601cf36366 | |
| resource "aws_iam_role" "glue" { | |
| name = "AWSGlueServiceRoleDefault" | |
| assume_role_policy = <<EOF | |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": "sts:AssumeRole", |
| data "aws_ami" "ubuntu" { | |
| most_recent = true | |
| filter { | |
| name = "name" | |
| values = ["ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*"] | |
| } | |
| filter { | |
| name = "virtualization-type" |
There are a lot of continuous integration and continuous delivery services. All of them have a different set of functionality; some of them require payment, some of them are free, some only manage continuous integration and not delivery/deployment, etc.
| # Get everything ready on a Mac | |
| brew install docker docker-machine docker-compose | |
| # Create a new machine (based on the 1.8.1 boot2docker iso) | |
| docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock | |
| # Bring the machine up | |
| docker-machine start osxdock | |
| # Configure Shell |
| # Get everything ready on a Mac | |
| brew install docker docker-machine docker-compose | |
| # Create a new machine (based on the 1.8.1 boot2docker iso) | |
| docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock | |
| # Bring the machine up | |
| docker-machine start osxdock | |
| # Configure Shell |
| import time | |
| import json | |
| import requests | |
| import cPickle as pkl | |
| def get(url): | |
| r=requests.get(url) | |
| if r.status_code!=200: | |
| return False | |
| js=r.content |