Module 3 - Docker build failure
Opened this issue · 0 comments
0xleastwood commented
While using Cloud9 I would run into an issue when running
docker build . -t {account_id}.dkr.ecr.{region}.amazonaws.com/mythicalmysfits/service:latest
I would get an error that the Dockerfile in MythicalMysfitsService was missing the Git command. This was causing the CodePipeline to fail for build.
github.com/aws/aws-sdk-go (download) go: missing Git command. See https://golang.org/s/gogetcmd package github.com/aws/aws-sdk-go/aws: exec: "git": executable file not found in $PATH
The fix to this was adding the RUN apk update && apk add --no-cache git
line of code found in module 2's Dockerfile.