Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Python 3.4 incompatibility with aws cli 1.19 #30

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
5 changes: 4 additions & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ phases:
- 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 jq python3-pip python3-dev && pip3 install --upgrade awscli
- apt-get update && apt-get -y install jq python3-pip python3-dev
- pip3 install 'awscli<1.18' --upgrade
pre_build:
commands:
- TAG="$REPOSITORY_NAME.$REPOSITORY_BRANCH.$ENVIRONMENT_NAME.$(date +%Y-%m-%d.%H.%M.%S).$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)"
Expand All @@ -16,6 +17,7 @@ phases:
- export KUBECONFIG=$HOME/.kube/config
build:
commands:
- docker login -u ekslabaccount -p 76700ac2-6b4d-4211-89f9-e0bacd318ef0
- docker build --tag $REPOSITORY_URI:$TAG .

post_build:
Expand All @@ -31,3 +33,4 @@ phases:
- printf '[{"name":"hello-k8s","imageUri":"%s"}]' $REPOSITORY_URI:$TAG > build.json
artifacts:
files: build.json

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {

f := fib()

res := &response{Message: "Hello World"}
res := &response{Message: "Update to Feature v1.2"}

for _, e := range os.Environ() {
pair := strings.Split(e, "=")
Expand Down