Merged in feature/common-images (pull request #51)

common images

* common images resolve commit with --rebase

* Remove bitbucket-pipelines.yml.orig


Approved-by: Rachit Bhargava
This commit is contained in:
Jay Sharma
2024-05-20 15:33:06 +00:00
committed by Rachit Bhargava
parent 4783d97a46
commit 53b1c63251
17 changed files with 188 additions and 63 deletions

View File

@@ -1,16 +1,3 @@
FROM wyveo/nginx-php-fpm:php74
RUN mkdir -p /var/lib/nginx/cache /usr/share/nginx/subdomain; cd /usr/share/nginx/subdomain ; mkdir www
FROM 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:nginx-php-fpm-php74-v02
COPY wp/ /usr/share/nginx/subdomain/www
COPY ngx_http_cache_purge_module.so /usr/lib/nginx/modules/
RUN sed -i 's/;pm.status_path/pm.status_path/g' /etc/php/7.4/fpm/pool.d/www.conf
RUN sed -i -e '1iload_module modules/ngx_http_cache_purge_module.so;\' /etc/nginx/nginx.conf
RUN rm /etc/php/7.4/fpm/php.ini
RUN rm /etc/php/7.4/cli/php.ini
COPY php.ini /etc/php/7.4/cli/php.ini
COPY php.ini /etc/php/7.4/fpm/php.ini
RUN chmod +xw /etc/php/7.4/cli/php.ini
RUN chmod +xw /etc/php/7.4/fpm/php.ini
COPY redinessprobe-wp.sh /root/redinessprobe-wp.sh
RUN chmod +x /etc/nginx/conf.d/default.conf /root/redinessprobe-wp.sh
RUN chmod +xw -R /usr/share/nginx/
#USER nginx

View File

@@ -7,28 +7,31 @@ definitions:
set-variables-jobs: &set-variables-schedule-pipelines
- variables:
- name: ACTION
default: "create-schedule-pipelines"
default: "SELECT_FROM_DROP_DOWN"
allowed-values: # Optionally restrict variable values
- "create-schedule-pipelines"
- "delete-schedule-pipelines"
- "delete-schedule-pipelines-all"
- "delete-schedule-pipelines-single"
- "list-schedule-pipelines"
- "update-schedule-pipelines"
- "list-schedule-pipelines-run"
- name: UUID
default: "ENTER_UUID_FOR_DELETION_ONLY"
- name: PIPELINE_NAME
default: "common-jobs-dev"
allowed-values: # Optionally restrict variable values
- "backup-mysql-monthly-prod"
- "backup-static-monthly-prod"
- "cleanup-backup-monthly-prod"
- "common-jobs-dev" # for patch with default values
- "common-jobs-dev" # for patch with default values
- name: BRANCH_NAME
default: "feature/backups"
default: "develop"
allowed-values: # Optionally restrict variable values
- "develop"
- "feature/backups"
- "feature/backup"
- name: CRONTIME
default: ENTER_CRON_SCHEDULE
# -------------------------------------------------------
default: "ENTER_CRON_SCHEDULE"
# -------------------------------------------------------
# allowed-values: # Optionally restrict variable values
# - "0 * * * 1 ? *" # On 1st every month
# - "0 * * * * 7 *" # Every sunday
@@ -106,7 +109,11 @@ definitions:
steps:
- step: &deploy
name: deploy to $ENV environment
image: atlassian/default-image:3
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
# check if env file exists
- if [ -e setenv.sh ]; then
@@ -114,10 +121,10 @@ definitions:
- source setenv.sh
- fi
- echo "This is for $ENV environment"
# importing csw-token common scripts to the workspace #
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- chmod 755 ./validation.sh && ./validation.sh default && echo validation-done || exit 9
- ls -lrth && cd build/${ENV}
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl
- export DB_PASSWORD=$(aws ssm get-parameters --names $ENV-medicalalert-masterdbpass --query "Parameters[*].{Value:Value}" --output text)
- export DB_PASSWORD=`echo -n "$DB_PASSWORD" | base64` && sed -i "/DB_PASSWORD/c\ DB_PASSWORD:\ $DB_PASSWORD" secrets.yaml
- envsubst < deployment.tpl > deployment.yaml
@@ -135,7 +142,7 @@ definitions:
DEBUG: "true"
after-script:
- aws eks update-kubeconfig --name caresage-eks-cluster-$ENV --region us-east-1
- sleep 10 && while kubectl get po -A |grep -i medicalalert-web|egrep -i '0/1|crash'; do sleep 10; echo "--- still getting 0/1 or crash pods-----"; done
- sleep 10 && while kubectl get po -A |grep -i medicalalert-web|egrep -i '0/1|crash|term'; do sleep 10; echo "--- still getting 0/1 or crash pods-----"; done
- chmod 755 ./multidev-sync.sh && ./multidev-sync.sh
pipelines:
@@ -147,7 +154,14 @@ pipelines:
- <<: *set-variables-schedule-pipelines
- step:
name: vars for schedule-pipelines
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth
- cp -rf ./common-scripts-web/* . && ls -lrth
- echo "export BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG" >> schedule-setenv.sh
- echo "export BITBUCKET_WORKSPACE=$BITBUCKET_WORKSPACE" >> schedule-setenv.sh
- echo "export TOKEN=$TOKEN" >> schedule-setenv.sh
@@ -160,14 +174,49 @@ pipelines:
- step:
name: Actions for schedule-pipelines
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- cat schedule-setenv.sh && chmod 755 ./schedule-pipeline.sh && ./schedule-pipeline.sh $ACTION
# -------------------------------------------------
wp-auto-patch-schedule:
- step:
name: vars for dev01 for wp-auto-patch-schedule
script:
- echo "export JOBNAME=wp-auto-patch-schedule" >> setenv.sh
- echo "export ENV=dev" >> setenv.sh
- echo "export CLUSTER=caresage-eks-cluster-dev" >> setenv.sh
- echo "export VERSION=$BITBUCKET_BUILD_NUMBER" >> setenv.sh
- echo "export SUBDOMAIN=dev01" >> setenv.sh
- echo "export BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG" >> setenv.sh
- echo "export TOKEN=$TOKEN" >> setenv.sh
artifacts: # define the artifacts to be passed to each future step
- setenv.sh
- step:
name: common jobs for wp-auto-patch-schedule
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh
- ./common-jobs-bitbucket.sh $JOBNAME
backup-mysql-monthly-prod:
- step:
name: vars for common-jobs-prod
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export JOBNAME=mysql-backup" >> setenv.sh
- echo "export ENV=prod" >> setenv.sh
@@ -181,14 +230,24 @@ pipelines:
- step:
name: common jobs for SQL and WWW backup and restore DEV
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh
- ./common-jobs-bitbucket.sh $JOBNAME
backup-static-monthly-prod:
- step:
name: vars for common-jobs-prod
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export JOBNAME=wp-data-backup" >> setenv.sh
- echo "export ENV=prod" >> setenv.sh
@@ -202,13 +261,23 @@ pipelines:
- step:
name: common jobs for SQL and WWW backup and restore DEV
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh && ./common-jobs-bitbucket.sh $JOBNAME
cleanup-backup-monthly-prod:
- step:
name: vars for common-jobs-prod
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export JOBNAME=cleanup-backup" >> setenv.sh
- echo "export ENV=prod" >> setenv.sh
@@ -222,8 +291,13 @@ pipelines:
- step:
name: common jobs for SQL and WWW backup and restore DEV
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh && ./common-jobs-bitbucket.sh $JOBNAME
deploy-dev:
- <<: *set-variables
@@ -253,10 +327,15 @@ pipelines:
deployment: prod
name: "deploy to prod"
common-jobs-dev:
1-common-jobs-dev:
- <<: *set-variables-jobs-dev
- step:
name: vars for common-jobs-dev
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export JOBNAME=$JOBNAME" >> setenv.sh
- echo "export ENV=$ENV" >> setenv.sh
@@ -271,16 +350,26 @@ pipelines:
- step:
name: common jobs for SQL and WWW backup and restore DEV
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh
- ./common-jobs-bitbucket.sh $JOBNAME
common-jobs:
2-common-jobs:
- <<: *set-variables-jobs
- step:
name: vars for common-jobs qa/stage/prod
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export JOBNAME=$JOBNAME" >> setenv.sh
- echo "export ENV=$ENV" >> setenv.sh
@@ -289,23 +378,33 @@ pipelines:
- echo "export RESTORE_VERSION=$RESTORE_VERSION" >> setenv.sh
- echo "export SUBDOMAIN=$SUBDOMAIN" >> setenv.sh
- echo "export BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG" >> setenv.sh
- echo "export TOKEN=$TOKEN" >> setenv.sh
- echo "export TOKEN=$TOKEN" >> setenv.sh
artifacts: # define the artifacts to be passed to each future step
- setenv.sh
- step:
name: common jobs for SQL and WWW backup and restore.
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh && chmod 755 ./common-jobs-bitbucket.sh
- ./common-jobs-bitbucket.sh $JOBNAME
subdomain-deploy:
4-subdomain-deploy:
- <<: *set-variables-subdomain
- step:
name: vars for subdomain
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export SUBDOMAIN=`echo $URL_DOMAIN | awk -F. '{print $1}'`" >> setenv.sh
- echo "export SUBDOMAIN=`echo $URL_DOMAIN | awk -F. '{print $1}'`" >> setenv.sh
- echo "export ENV=$ENV" >> setenv.sh
- echo "export CLUSTER=caresage-eks-cluster-$ENV" >> setenv.sh
- echo "export VERSION=$BITBUCKET_BUILD_NUMBER" >> setenv.sh
@@ -314,15 +413,20 @@ pipelines:
- echo "export MYSQL_FILE_NAME=$MYSQL_FILE_NAME" >> setenv.sh
- echo "export STATIC_FILE_NAME=$STATIC_FILE_NAME" >> setenv.sh
- echo "export BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG" >> setenv.sh
- echo "export TOKEN=$TOKEN" >> setenv.sh
- echo "export TOKEN=$TOKEN" >> setenv.sh
artifacts:
- setenv.sh
- step:
name: Deploy the wp source code
trigger: manual
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh
- chmod 755 ./common-jobs-bitbucket.sh && ./common-jobs-bitbucket.sh subdomain_deploy
artifacts:
@@ -332,8 +436,13 @@ pipelines:
- step:
name: Deploy the mysql database
trigger: manual
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh
- chmod 755 ./common-jobs-bitbucket.sh && ./common-jobs-bitbucket.sh mysql-restore $MYSQL_FILE_NAME
artifacts:
@@ -342,17 +451,26 @@ pipelines:
- step:
name: Deploy the static data
trigger: manual
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth && cp -rf ./common-scripts-web/* . && ls -lrth
- source setenv.sh
- chmod 755 ./common-jobs-bitbucket.sh && ./common-jobs-bitbucket.sh wp-data-restore $STATIC_FILE_NAME
release:
3-release:
- <<: *set-variables
- step:
name: "plan for the release and tag the given version."
image: atlassian/pipelines-awscli
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:pipelines-awscli-latest-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
#- chmod 755 ./validation.sh && ./validation.sh default
- echo "make sure that release version file and plan has been added to the release repo"
@@ -370,6 +488,11 @@ pipelines:
trigger: manual
- step:
name: vars for prod
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- source release
- echo "export VERSION=$RELEASE" >> setenv.sh
@@ -386,11 +509,17 @@ pipelines:
develop:
- step:
name: build the application and push that to dev env.
image: atlassian/default-image:3
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
# importing csw-token common scripts to the workspace #
- git clone --branch="develop" https://x-token-auth:${cswtoken}@bitbucket.org/connectamerica/common-scripts-web.git && ls -lrth
- cp -rf ./common-scripts-web/* . && ls -lrth && export ENV=dev
- chmod 755 ./validation.sh && ./validation.sh default
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install
- export BUILD_D=$BITBUCKET_BRANCH_$BITBUCKET_COMMIT_$BITBUCKET_BUILD_NUMBER
- export IMAGE="medicalalert-web" && export VERSION=$BITBUCKET_BUILD_NUMBER
- aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 716593996126.dkr.ecr.us-east-1.amazonaws.com
- docker build -t ${IMAGE} .
@@ -409,6 +538,11 @@ pipelines:
- step:
name: vars for dev
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export VERSION=$BITBUCKET_BUILD_NUMBER" >> setenv.sh
- echo "export ENV=dev" >> setenv.sh
@@ -420,6 +554,11 @@ pipelines:
name: "deploy to dev"
- step:
name: vars for qa
image:
name: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:atlassian-default-image4.x-v01
aws:
oidc-role: arn:aws:iam::716593996126:role/bitbucket-to-ecr
oidc: true
script:
- echo "export VERSION=$BITBUCKET_BUILD_NUMBER" >> setenv.sh
- echo "export ENV=qa" >> setenv.sh
@@ -429,5 +568,4 @@ pipelines:
<<: *deploy
deployment: qa
name: "deploy to qa"
trigger: manual
trigger: manual

View File

@@ -9,7 +9,7 @@ metadata:
namespace: medicalalert-web
spec:
progressDeadlineSeconds: 600
replicas: 3
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:

View File

@@ -20,7 +20,7 @@ spec:
- arm64
containers:
- name: common-job
image: wyveo/nginx-php-fpm:php74
image: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:nginx-php-fpm-php74-v02
envFrom:
- secretRef:
name: medicalalert-web-secrets

View File

@@ -20,7 +20,7 @@ spec:
- arm64
containers:
- name: common-job
image: wyveo/nginx-php-fpm:php74
image: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:nginx-php-fpm-php74-v02
envFrom:
- secretRef:
name: medicalalert-web-secrets

View File

@@ -20,7 +20,7 @@ spec:
- arm64
containers:
- name: common-job
image: wyveo/nginx-php-fpm:php74
image: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:nginx-php-fpm-php74-v02
envFrom:
- secretRef:
name: medicalalert-web-secrets

View File

@@ -20,7 +20,7 @@ spec:
- arm64
containers:
- name: common-job
image: wyveo/nginx-php-fpm:php74
image: 716593996126.dkr.ecr.us-east-1.amazonaws.com/common-images:nginx-php-fpm-php74-v02
envFrom:
- secretRef:
name: medicalalert-web-secrets

View File

@@ -1,25 +1,25 @@
#!/bin/bash
export REPO=$BITBUCKET_REPO_SLUG
export CLUSTER=caresage-eks-cluster-$ENV
export URL_DOMAIN=$SUBDOMAIN.$ENV-medicalalert.com
export PROD_URL_DOMAIN=$SUBDOMAIN.medicalalert.com
export PROD_FIND=medicalalert.com
case $ENV in
dev)
export CLUSTER=caresage-eks-cluster-$ENV
export URL_DOMAIN=$SUBDOMAIN.$ENV-medicalalert.com
;;
qa)
export CLUSTER=caresage-eks-cluster-$ENV
export URL_DOMAIN=$SUBDOMAIN.$ENV-medicalalert.com
;;
stage)
export CLUSTER=caresage-eks-cluster-$ENV
export URL_DOMAIN=$SUBDOMAIN.$ENV-medicalalert.com
;;
prod)
export CLUSTER=caresage-eks-cluster-$ENV
export URL_DOMAIN=$SUBDOMAIN.medicalalert.com
export URL_DOMAIN=$SUBDOMAIN.medicalalert.com
;;
*)
echo "source env varibales"
echo "Usage: $0 ENV"
;;
;;
esac