Really enjoying using doppler. It would be great if you could clear a small doubt of mine.
As stated in this link,
Every time you run doppler run – ./your-command-here the command-line tool will automatically create a snapshot of your latest secrets and store it in an encrypted file. Then when we are unable to connect to the API, like if you are doing local development on a plane, the Doppler CLI will smartly fallback to this snapshot. The snapshot lives outside of your working directory in a dedicated folder managed by Doppler to ensure it is never committed to your git history.
So basically any service running on Doppler would download the fallback file as a backup, right?
But the below screenshot is confusing me a little bit-
Why we need to download a fallback file specifically for Dockerfiles, shouldn’t doppler automatically download the fallback file in case of docker as well, as stated in the first link? Why do i need to write -
RUN doppler secrets download doppler.encrypted.json ENTRYPOINT ["doppler", "run", "--fallback=doppler.encrypted.json", "--"]
and not just
ENTRYPOINT ["doppler", "run", "--"]
Shouldn’t the second command work as well if the doppler API is down; since it downloads the fallback file once
doppler run is passed?