This file contains 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 hackingit | |
import akka.actor.ActorSystem | |
import play.api.libs.json.{JsSuccess, Format, Json} | |
import slack.api.SlackApiClient | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.Future | |
This file contains 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
#!groovy | |
String GIT_VERSION | |
node { | |
def buildEnv | |
def devAddress | |
stage ('Checkout') { |
This file contains 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
#!groovy | |
String GIT_VERSION | |
node { | |
def buildEnv | |
def devAddress | |
stage ('Checkout') { |
This file contains 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
$ ./sample-client/target/universal/stage/bin/demo-client grpc-demo.dev.bott.tech 11235 | |
2017-02-12 10:39:09 [main] INFO com.winton.DemoClient$ - Creating client | |
Feb 12, 2017 10:39:09 AM io.grpc.internal.ManagedChannelImpl <init> | |
INFO: [ManagedChannelImpl@6b927fb] Created with target grpc-demo.dev.bott.tech:11235 | |
2017-02-12 10:39:09 [main] INFO com.winton.DemoClient$ - Client Created | |
2017-02-12 10:39:09 [main] INFO com.winton.DemoClient$ - calling: getMessage(A Message!) | |
2017-02-12 10:39:09 [ForkJoinPool-1-worker-5] INFO com.winton.DemoClient$ - Received: Hi! You just sent me A Message! | |
$ |
This file contains 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
kubectl --kubeconfig=~/kube-demo/kubeconfig --context=DEV expose deployment/grpc-demo --type=LoadBalancer --port=11235 |
This file contains 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
kubectl --kubeconfig=~/kube-demo/kubeconfig --context=DEV run grpc-demo --image=sambott/grpc-test:0.2 --port=11235 |
This file contains 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
kubectl config set-cluster sam-dev --server https://kube.dev.bott.tech --certificate-authority=~/kube-demo/ca.pem --embed-certs=true --kubeconfig=~/kube-demo/kubeconfig | |
kubectl config set-credentials admin --client-certificate=~/kube-demo/admin.pem --client-key=~/kube-demo/admin-key.pem --embed-certs=true --kubeconfig=~/kube-demo/kubeconfig | |
kubectl config set-context ROOT --cluster=sam-dev --user=admin --kubeconfig=~/kube-demo/kubeconfig | |
kubectl --kubeconfig=~/kube-demo/kubeconfig --context=ROOT create namespace sam-dev | |
kubectl --kubeconfig=~/kube-demo/kubeconfig --context=ROOT create namespace sam-live | |
kubectl config set-context DEV --cluster=sam-dev --user=admin --namespace=sam-dev --kubeconfig=~/kube-demo/kubeconfig | |
kubectl config set-context LIVE --cluster=sam-dev --user=admin --namespace=sam-live --kubeconfig=~/kube-demo/kubeconfig |
This file contains 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
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | |
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key | |
sudo yum install jenkins docker java git | |
sudo usermod -a -G docker jenkins | |
sudo chkconfig docker on | |
sudo service docker start | |
sudo chkconfig jenkins on | |
sudo service jenkins start |
This file contains 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
sudo yum update | |
sudo yum install vim tmux |