Skip to content

Commit 9bb0231

Browse files
committed
authentication bug fix for ebs
1 parent 246d277 commit 9bb0231

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

ebs_base_template_v2.json.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"AWSEBDockerrunVersion": "1",
3+
"Authentication": {
4+
"Bucket": "@AWSS3AUTHBUCKET@",
5+
"Key": "services/common/dockercfg"
6+
},
7+
"Image": {
8+
"Name": "appiriodevops/@IMAGE@",
9+
"Update": "true"
10+
},
11+
"Ports": [],
12+
"Volumes": [],
13+
"Logging": ""
14+
}

master_deploy.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ APP_IMAGE_NAME=""
4545
DOCKERRUN="Dockerrun.aws.json"
4646
#EBS_EB_EXTENSTION_LOCATION=""
4747
IMG_WITH_EBS_TAG=""
48-
EBS_TEMPLATE_SKELETON_FILE="ebs_base_template_v1.json.template"
48+
EBS_TEMPLATE_SKELETON_FILE="ebs_base_template_v2.json.template"
4949
EBS_APPLICATION_NAME=""
5050
EBS_APPVER=""
5151
EBS_TAG=""
@@ -429,6 +429,9 @@ track_error $? "docker push failed."
429429
}
430430

431431
creating_updating_ebs_docker_json() {
432+
echo "updating auth bucket name"
433+
sed -i.bak -e "s/@AWSS3AUTHBUCKET@/appirio-platform-$ENV_CONFIG/g" $EBS_TEMPLATE_SKELETON_FILE
434+
rm ${EBS_TEMPLATE_SKELETON_FILE}.bak
432435

433436
if [ -z "$EBS_EB_EXTENSTION_LOCATION" ];
434437
then

0 commit comments

Comments
 (0)