This file contains hidden or 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
# ============================ | |
# Install BREW and LinuxBrew | |
# ============================ | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH" | |
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH" | |
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile | |
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile | |
sudo yum groupinstall -y 'Development Tools' && sudo yum install -y curl file git |
This file contains hidden or 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
# ============================ | |
# Install BREW and LinuxBrew | |
# ============================ | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo sudo apt-get install -y build-essential make cmake scons curl git \ | |
ruby autoconf automake autoconf-archive \ | |
gettext libtool flex bison \ | |
libbz2-dev libcurl4-openssl-dev \ |
This file contains hidden or 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
# Copyright (C) 2018 Synopsys, Inc. | |
#!/bin/sh | |
export PERCEPTOR_POD_NS="perceptortestns" | |
# TODO Put in a check here if kubectl cli is present | |
# Create the Namespace | |
createNs() { | |
WAIT_TIME=$((30)) |
This file contains hidden or 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
# Copyright (C) 2018 Synopsys, Inc. | |
#!/bin/sh | |
export PERCEPTOR_POD_NS="perceptortestns" | |
# TODO Put in a check here if oc cli is present | |
# Create the Namespace | |
createNs() { | |
WAIT_TIME=$((30)) |
This file contains hidden or 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
if [[ -z $a_state ]] ; then | |
echo "[ERROR]: [tstAnnotate] POD Annotations not found on $my_pod!!" | |
echo "Retrying... $retry" | |
(( retry ++ )) | |
sleep 3 | |
elif [[ -z $a_state ]] ; then | |
echo " [ERROR]: [tstAnnotate] POD Annotations not found, exiting!" | |
exit 88; | |
else | |
echo "BlackDuck OpsSight Annoations found on $my_pod! TEST PASS" |
This file contains hidden or 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
oc login -u=clustadm -p=qapw4all | |
oc new-project rubyex | |
oc project rubyex | |
oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git | |
oc new-project ruby-hellowrld | |
oc project ruby-hellowrld | |
oc new-app ruby-hellowrld/my-ruby~https://github.com/openshift/ruby-hello-world.git | |
oc new-project puma-test-app | |
oc project puma-test-app | |
# S2i |
This file contains hidden or 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/sh | |
# ============================ | |
# Install BREW and LinuxBrew | |
# ============================ | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH" | |
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH" | |
test -r ~/.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.bash_profile | |
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile |
This file contains hidden or 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 | |
set -x | |
# set -e | |
OC_SERVER="18.218.176.19" | |
OC_UN="clustadm" | |
OC_PW="devops123!" | |
OC_PROJECT="myhub" | |
OC_CP_TMP="/tmp" | |
OC_TAR_DIR="/temp/hackathon2018" |
This file contains hidden or 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
oc set env deployment --all HUB_KB_HOST=kbtest.blackducksoftware.com │Total scans submitted: 194 | |
oc set env deployment --all HUB_PROXY_HOST=tank.blackducksoftware.com │Total scans submitted: 195 | |
oc set env deployment --all HUB_PROXY_PORT=3128 │Total scans submitted: 196 | |
oc set env deployment --all HUB_PROXY_SCHEME=http |
This file contains hidden or 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 | |
#============================================ | |
## Credits: Joel Effing Sheppard - 2018 ## | |
#============================================ | |
#========================================================================================== | |
## Purpose: This script takes an input file that has N docker repo/image names ## | |
## and then using sed adds an OpenShift command (a prefix and a suffix) so that ## | |
## one can easily deploy HUNDREDS or THOUSANDS of docker images to OpenShift ## | |
## with ease. The input file is created by using a 'docker search' command ## |
OlderNewer