Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -eu
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
#!/bin/sh
set -eu
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
@roberthamel
roberthamel / docker-compose.yml
Created February 10, 2019 20:28
Keycloak Docker Compose Starter
version: '3'
services:
keycloak:
image: jboss/keycloak
restart: always
ports:
- 8080:8080
networks:
- appnet
management:
endpoints:
web:
exposure:
include: '*'
hystrix:
stream:
queue:
enabled: false
command:
#!/bin/bash
wget https://gist.githubusercontent.com/roberthamel/e3a113b56d84b3516a84f9b4c4d7154a/raw/dashboard.sh
mv dashboard.sh dashboard
chmod +x dashboard
mv dashboard /usr/local/bin/kdash

Access Kubenetes Dashboard with Credentails

Kubernetes dashboard comes pre-installed on each PKS cluster. The following instructions are for how create credentials and obtain the access token. If there is an easier way, please let me know.

Install a Cluster Role Binding:

This command only needs to be run once.

cat <
###############################################################
# Cart Service
###############################################################
apiVersion: v1
kind: Service
metadata:
name: carts
labels:
app: carts
visualize: "true"
@roberthamel
roberthamel / build.sh
Created August 9, 2018 21:34
Deploy to cf Task
#!/bin/bash
# ci/scripts/build.sh
set -eu
pushd source-code
./gradlew clean assemble
cp build/libs/product-service-1.0.0.jar ../build-output
cp manifest.yml ../build-output
popd
echo "build successful"
@roberthamel
roberthamel / credentials.yml
Created August 9, 2018 21:15
More Refactoring
# ci/credentials.yml
gitRepository: https://github.com/<YOUR-GITHUB-USERNAME>/product-service-concourse
@roberthamel
roberthamel / credentials.yml
Created August 9, 2018 20:58
Let's Refactor
# ci/credentials.yml
gitRepository: https://github.com/<YOUR-GITHUB-USERNAME>/product-service-concourse