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.
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
#!/usr/bin/env bash | |
VERSION="${1#[vV]}" | |
VERSION_MAJOR="${VERSION%%.*}" | |
VERSION_MINOR_PATCH="${VERSION#*.}" | |
VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}" | |
VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}" | |
VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}" | |
VERSION_PRE_RELEASE="" |
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListAllMyBuckets", | |
"Resource": "arn:aws:s3:::MyBucketName" | |
}, | |
{ | |
"Action": [ |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni |
Master - jenkins-master-docker-compose.yml | |
jenkins_app: | |
image: jenkins:2.60.1 | |
container_name: jenkins_master | |
restart: always | |
ports: | |
- "80:8080" |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
# Root. | |
$ docker exec -u 0 i -t {container_id/image_name} bash | |
or | |
# Default container's user. | |
$ docker exec i -t {container_id/image_name} bash |