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 use-context new-prod;aws-iam-authenticator token -i [CLUSTER NAME] -r [AWS IAM ACCOUNT WITH ACCESS TO EKS] | jq -r .status.token |pbcopy | |
kill -9 $(ps -ef | grep "kubectl proxy" | grep -v grep | cut -c6-13) | |
kubectl proxy & | |
python k8sdash_login.py |
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 -e | |
: "${JENKINS_WAR:="/usr/share/jenkins/jenkins.war"}" | |
: "${JENKINS_HOME:="/var/jenkins_home"}" | |
touch "${COPY_REFERENCE_FILE_LOG}" || { echo "Can not write to ${COPY_REFERENCE_FILE_LOG}. Wrong volume permissions?"; exit 1; } | |
echo "--- Copying files at $(date)" >> "$COPY_REFERENCE_FILE_LOG" | |
find /usr/share/jenkins/ref/ \( -type f -o -type l \) -exec bash -c '. /usr/local/bin/jenkins-support; for arg; do copy_reference_file "$arg"; done' _ {} + | |
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments | |
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then |