Steps to reproduce:
fork sample-app-frontend-acme
docker build, tag, push
kick off circleci build
CircleCi gives:
“Either git or ssh (required by git to clone through SSH) is not installed in the image.”
during the “Checkout code” stage and then fails during execution of deploy.sh.
Checking sample-app/frontend-acme/.circleci/Dockerfile there are no installs for git or ssh from what I can see.
I’ve probably missed something obvious or a mandatory pre-build step…
jim
March 21, 2018, 4:16pm
2
Git is installed right here: https://github.com/gruntwork-io/sample-app-frontend-acme/blob/master/.circleci/Dockerfile#L46 . Are you sure you’ve properly configured your CircleCI build to use the image that gets built?
Thanks Jim - couldn’t see for looking.
Given that CircleCI complains about both git and aws being missing, and since the Dockerfile has both, I think you are correct and its a problem in my image - will dig further.
[Resolved]
Posting here in case this catches anyone else as newb as me
sample-app-frontend-acme has 2 Dockerfiles:
one in project_root for local deployment
one in .circleci that can be used to create the docker container for CI.
Build the CI image by using the correct Dockerfile by:
generating a Github PAT and then use when creating the CI Docker image (see instructions in .circleci/Dockerfile).
1 Like