Sorry noob question since I’m new to circleci but it takes about 15 minutes to build my Dockerfile that I’m specifying in aws-ecr/build-and-push-image so I want to cache some of the layers.
I’ve tried 2 different ways but am still stuck:
1: When defining your own job I’ve seen that you can say
machine:
docker_layer_caching: true
but where would I put this when using an orb like aws-ecr/build-and-push-image?
2: This orb has params for
executor: docker
remote-docker-layer-caching: true
setup-remote-docker: true
but if I don’t give an executor it keeps saying
“Error: 1 error occurred:
* step 2 setup_remote_docker: step is not compatible with machine executor. You can use Docker without a special step if the build image has it installed.”
and if I do pass
executor: docker
then it says
“Cannot find a definition for executor named remote-docker”
Any suggestions?
Thanks!