I have this yml:
jobs:
deploy_to_staging:
docker:
- image: google / cloud-sdk
- image: circleci / openjdk: 11-jdk
I have access to commands only from the first image, for example when the command gradle build
runs it returns:
/ bin / bash: gradle: command not found
If I invert image order then I can access gradle commands but gcloud will not be found.
Does anyone know which is my mistake?
This is how the Docker executor works. The first image is the primary image, which is the environment where all of your commands run in. The additional images are only connected via TCP/IP.