forked from the-daniel-rothig/govuk-blank
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoc_create.sh
24 lines (19 loc) · 944 Bytes
/
oc_create.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#"$(oc_project_name)" "$(oc_build_config_name)" "$(oc_runtime_image)"
oc_project_name=$1
oc_build_config_name=$2
oc_runtime_image=$3
oc_nexus_credentials=$4
oc_openshift_credentials=$5
echo oc_project_name=$oc_project_name
echo oc_build_config_name=$oc_build_config_name
echo oc_runtime_image=$oc_runtime_image
echo oc_nexus_credentials=$oc_nexus_credentials
echo oc_openshift_credentials=$oc_openshift_credentials
# Download oc
#curl -u $oc_nexus_credentials -O -k https://nexus.demo.dfe.secnix.co.uk/repository/dfe_admin/oc-3.6.173.0.49-linux.tar
wget -O oc.tar https://www.dropbox.com/s/ir3xms1m72p5lsh/oc-3.6.173.0.49-linux.tar?dl=0
tar xfv oc.tar
echo ### LOGGING IN
./oc login --insecure-skip-tls-verify https://demo.dfe.secnix.co.uk:8443 --token="$oc_openshift_credentials"
echo source create_${oc_runtime_image}.sh $oc_project_name $oc_build_config_name
source create_${oc_runtime_image}.sh $oc_project_name $oc_build_config_name