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
#!/bin/bash | |
# delete existing git secret from older install | |
kubectl delete secret git-ssh-key | |
helm repo add forgerock https://storage.googleapis.com/forgerock-charts | |
helm repo update | |
# make sure you are in your namespace here. Try the kubens command! | |
helm install forgerock/cmp-platform | |
# this will take approx. 3-5 min to provision everything. Create /etc/host entries for all the ingresses |
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
apiVersion: settings.k8s.io/v1alpha1 | |
kind: PodPreset | |
metadata: | |
name: test | |
spec: | |
selector: | |
matchLabels: | |
app: test | |
env: | |
- name: SETME |
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
#!/usr/bin/env bash | |
# This will pre-pull the docker images into the minikube cache | |
eval $(minikube docker-env) | |
for i in git openidm opendj openam openig amster | |
do | |
echo "getting $i" | |
docker pull gcr.io/engineering-devops/$i:5.5.0 | |
done |
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
# docker build -t alpine-jdk . | |
FROM alpine:edge | |
# Default to UTF-8 file.encoding | |
ENV LANG C.UTF-8 | |
# add a simple script that can auto-detect the appropriate JAVA_HOME value | |
# based on whether the JDK or only the JRE is installed | |
RUN { \ | |
echo '#!/bin/sh'; \ |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: authn | |
labels: | |
name: authn | |
spec: | |
containers: | |
- name: authn | |
image: forgerock/ms-oauth-authn:latest |
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
define suffix=dc=openam,dc=forgerock,dc=org | |
branch: [suffix] | |
branch: ou=famrecords,ou=openam-session,ou=tokens,[suffix] | |
subordinateTemplate: cts | |
template: cts | |
rdnAttr: coreTokenId | |
objectClass: frCoreToken |
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
bin/searchrate -p 389 -h userstore-0.userstore -D "cn=directory manager" -w password \ | |
-F -c 10 -t 10 --baseDn "dc=openam,dc=forgerock,dc=org" \ | |
-g "rand(0,1000)" "(uid=user.%d)" | |
bin/modrate -p 389 -D "cn=directory manager" -h userstore-0.userstore -w password \ | |
-F -c 20 -t 10 -b "uid=user.%d,ou=People,dc=openam,dc=forgerock,dc=org" \ |
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
// go to http://localhost:8080/script | |
Jenkins.instance.pluginManager.plugins.each{ | |
plugin -> | |
println ("${plugin.getShortName()}:${plugin.getVersion()}") | |
} |
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
#!/usr/bin/env bash | |
# Shell script to Create bootstrap file from env vars. | |
# redirect this to ~/openam/bootstrap | |
# | |
# | |
# This is what the template looks like | |
# From BootstrapCreator.java: | |
# "@DS_PROTO@://@DS_HOST@/@INSTANCE_NAME@" + | |
# "?user=@DSAMEUSER_NAME@&pwd=@DSAMEUSER_PWD@" + | |
# "&dsbasedn=@BASE_DN@" + |
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
#!/bin/bash | |
# Script to create a self signed CA using cfssl, and create | |
# server certs for DJ that are signed by this CA. | |
# Where we store the CA certificates | |
CA_HOME=~/etc/ca | |
# Where OpenDJ is insstalled | |
OPENDJ_HOME=~/packages/opendj |