I have a base image which exports a number of variables in it's ENTRYPOINT shell script docker-entry.sh.
Now I'm consuming the base image and running CMD with a mongo-entry.sh. I was hoping to access the variables exported from the ENTRYPOINT in the mongo-entry.sh.
I'm able to see the the log statements with the variables from docker-entry.sh being printed out, but, I'm unable to access it in mongo-entry.sh
I've already tried calling the docker-entry.sh and mongo-entry.sh as ENTRYPOINT in my DockerFile
Base Image ENTRYPOINT docker-entry.sh
export var1 = "var1"
FROM 'baseimage' COPY ["mongo-entry.sh"] CMD ["mongo-entry.sh"]