Skip to content

Commit

Permalink
Add Copyright to .sh files
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoucgitter committed May 14, 2024
1 parent 0390ea1 commit 0fc289d
Show file tree
Hide file tree
Showing 23 changed files with 81 additions and 12 deletions.
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/00_vars.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## set variables
AWS_ACCT_ID=
AWS_REGION=
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/01_run_all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

. auto_scaler.sh
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/auto_scaler.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# account for v6.3.0+ changes - autoscaler now supports k8s 1.25
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/cert_manager.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

## get chart version from viya4-deployment repo
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/ebs_driver.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

## get chart version from viya4-deployment repo
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/ingress_nginx.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# determine chart version to use
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/metrics_server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

echo "**** metrics-server ****"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

echo "**** nfs-subdir-external-provisioner ****"
Expand Down
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/baseline-to-ecr/openldap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

echo "**** openldap ****"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# helper script to easily mod viya4-deployment when using openldap in a darksite


Expand Down Expand Up @@ -183,4 +186,4 @@ docker tag viya4-deployment:$TAG $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/

aws ecr get-login-password --no-cli-pager --region $AWS_REGION | $DOCKER_SUDO docker login --username AWS --password-stdin $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com

docker push $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/viya4-deployment:$TAG
docker push $AWS_ACCT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/viya4-deployment:$TAG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# what is the tag
read -p "What is the tag for your viya4-iac-aws container? " -r TAG
# what is the job
Expand Down Expand Up @@ -48,4 +51,4 @@ if [ $REPLY == "destroy" ]; then
viya4-iac-aws:$TAG \
destroy -auto-approve -var-file=/workspace/terraform.tfvars \
-state=/workspace/terraform.tfstate
fi
fi
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# get viya4-deployment container tag
echo -e "\n"
read -p "What is your viya4-deployment container tag? " -r DOCKER_TAG
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

AWS_ACCT_ID=
AWS_REGION=

K8S_minor_version=24 # K8s v1.22.X minor would be 22 ... K8s v1.21.X minor version would be 21. This must match your deployment!
K8S_minor_version=24 # K8s v1.22.X minor would be 22 ... K8s v1.21.X minor version would be 21. This must match your deployment!
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# helm registry login
Expand Down Expand Up @@ -41,4 +44,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# helm registry login
Expand Down Expand Up @@ -40,4 +43,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## installs ebs-csi-driver via helm

source 00_vars.sh
Expand Down Expand Up @@ -54,4 +57,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## installs this by default:
# - INGRESS_NGINX_CVE_2021_25742_PATCH
# - ingress-nginx private ingress
Expand Down Expand Up @@ -74,4 +77,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# helm registry login
Expand All @@ -20,4 +23,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# helm registry login
Expand Down Expand Up @@ -41,4 +44,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

source 00_vars.sh

# helm registry login
Expand Down Expand Up @@ -42,4 +45,4 @@ helm upgrade --cleanup-on-fail \

# cleanup
unset TMP_YAML
rm tmp.yaml
rm tmp.yaml
5 changes: 4 additions & 1 deletion viya4-deployment-darksite/mirrormgr-to-ecr/00_vars.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

NAMESPACE= # namespace used for your viya install
AWS_ACCT_ID= # your aws account ID
REGION= # your aws region
CERTS=~/viya/software/viya_order_assets/SASViyaV4_XXXX_certs.zip # path to the _certs.zip file
ASSETS=~/viya/software/viya_order_assets/SASViyaV4_XXX_XXXX-XXXX_deploymentAssets.tgz # path to the tgz assets file
ASSETS=~/viya/software/viya_order_assets/SASViyaV4_XXX_XXXX-XXXX_deploymentAssets.tgz # path to the tgz assets file
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

## mirrormgr must be installed and in $PATH prior to running this script
## aws cli should be configured prior to running this script
## place your downloaded assets in the assets/ folder
Expand Down Expand Up @@ -32,4 +35,4 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
--destination https://$AWS_ACCT_ID.dkr.ecr.$REGION.amazonaws.com/$NAMESPACE \
--username 'AWS' \
--password $(aws ecr get-login-password --region $REGION)
fi
fi
3 changes: 3 additions & 0 deletions viya4-deployment-darksite/mirrormgr-to-ecr/02_cleanup-ecr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

# this script will help you quickly clean up viya related ECR repos

### source variables from 00_vars.sh
Expand Down

0 comments on commit 0fc289d

Please sign in to comment.