N
Size: a a a
OK
OK
OK
OK
OK
V
OK
OK
OK
phases:
install:
commands:
- curl -sS -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/aws-iam-authenticator
- curl -sS -o kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/kubectl
- chmod +x ./kubectl ./aws-iam-authenticator
- export PATH=$PWD/:$PATH
- apt-get update && apt-get -y install python3-pip python3-dev && pip3 install --upgrade awscli
pre_build:
commands:
- export SHELL=/bin/bash
- aws sts get-caller-identity
- TAG="$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)"
- sed -i -e "s@MONGODB_HOST_VALUE@$MONGODB_HOST@" -e "s@REDIS_URL_VALUE@$REDIS_HOST@" -e "s@SESSION_SECRET_VALUE@$SESSION_SECRET@" k8s/configmap.yaml
- sed -i 's@CONTAINER_IMAGE@'"$REPOSITORY_URI:$TAG"'@' k8s/deployment.yaml
- $(aws ecr get-login --no-include-email --region us-east-1)
- export KUBECONFIG=$HOME/.kube/config
OK
OK
[Container] 2020/04/17 12:55:54 Entering phase PRE_BUILD
[Container] 2020/04/17 12:55:54 Running command export SHELL=/bin/bash
[Container] 2020/04/17 12:55:54 Running command aws sts get-caller-identity
{
"UserId": "AROAYQ3CLLUBCFX5QM2TB:AWSCodeBuild-934fba08-9297-4d23-a7ea-f4d36a9663bd",
"Account": "xxx",
"Arn": "arn:aws:sts::xxx:assumed-role/CodeBuildServiceRole/AWSCodeBuild-934fba08-9297-4d23-a7ea-f4d36a9663bd"
}
[Container] 2020/04/17 12:55:54 Running command TAG="$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)"
[Container] 2020/04/17 12:55:54 Running command sed -i -e "s@MONGODB_HOST_VALUE@$MONGODB_HOST@" -e "s@REDIS_URL_VALUE@$REDIS_HOST@" -e "s@SESSION_SECRET_VALUE@$SESSION_SECRET@" k8s/configmap.yaml
[Container] 2020/04/17 12:55:54 Running command sed -i 's@CONTAINER_IMAGE@'"$REPOSITORY_URI:$TAG"'@' k8s/deployment.yaml
[Container] 2020/04/17 12:55:54 Running command $(aws ecr get-login --no-include-email --region us-east-1)
/usr/bin/env: 'sh #\r': No such file or directory
[Container] 2020/04/17 12:55:55 Command did not exit successfully $(aws ecr get-login --no-include-email --region us-east-1) exit status 127
V
OK
V
V
AV
[Container] 2020/04/17 12:55:54 Entering phase PRE_BUILD
[Container] 2020/04/17 12:55:54 Running command export SHELL=/bin/bash
[Container] 2020/04/17 12:55:54 Running command aws sts get-caller-identity
{
"UserId": "AROAYQ3CLLUBCFX5QM2TB:AWSCodeBuild-934fba08-9297-4d23-a7ea-f4d36a9663bd",
"Account": "xxx",
"Arn": "arn:aws:sts::xxx:assumed-role/CodeBuildServiceRole/AWSCodeBuild-934fba08-9297-4d23-a7ea-f4d36a9663bd"
}
[Container] 2020/04/17 12:55:54 Running command TAG="$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)"
[Container] 2020/04/17 12:55:54 Running command sed -i -e "s@MONGODB_HOST_VALUE@$MONGODB_HOST@" -e "s@REDIS_URL_VALUE@$REDIS_HOST@" -e "s@SESSION_SECRET_VALUE@$SESSION_SECRET@" k8s/configmap.yaml
[Container] 2020/04/17 12:55:54 Running command sed -i 's@CONTAINER_IMAGE@'"$REPOSITORY_URI:$TAG"'@' k8s/deployment.yaml
[Container] 2020/04/17 12:55:54 Running command $(aws ecr get-login --no-include-email --region us-east-1)
/usr/bin/env: 'sh #\r': No such file or directory
[Container] 2020/04/17 12:55:55 Command did not exit successfully $(aws ecr get-login --no-include-email --region us-east-1) exit status 127
OK
AV