Doppler & Docker Integration

Hi there,

I got Doppler today and I’m trying to integrate it with my Docker system. I followed this guide.

My Dockerfile currently looks something like this (few things removed)

FROM node:latest

# Install Doppler CLI
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg && \
    curl -sLf --retry 3 --tlsv1.2 --proto "=https" 'https://packages.doppler.com/public/cli/gpg.DE2A7741A397C129.key' | apt-key add - && \
    echo "deb https://packages.doppler.com/public/cli/deb/debian any-version main" | tee /etc/apt/sources.list.d/doppler-cli.list && \
    apt-get update && \
    apt-get -y install doppler

COPY package.json /usr/src/bot
RUN npm install

COPY . /usr/src/bot
RUN doppler --version
# Start the bot.
CMD ["doppler", "run", "--", "node index.js"]

In my Google Cloud Build, it outputs v3.45.0 for the doppler --version so I know that the Doppler is successfully working. In addition to that, each container I have has an ENV Variable for my DOPPLER_TOKEN. When I visit my Integrations page, I do not see Docker there and it’s prompting me to setup Docker.

Any help would be appreciated.

Hi @itilva8630!

Welcome to the Doppler Community!

Could you elaborate on what you mean by:

When I visit my Integrations page, I do not see Docker there and it’s prompting me to setup Docker.

When using a Docker deployment method like you have described above, nothing additional would show up in the Doppler project integrations page. Could you describe the problem you’re having? Are you getting an error from the Doppler CLI when doppler run -- node index.js runs? Or is it simply not populating the secrets you’d expect from your Doppler config?

Regards,
-Joel

Hi Joel,

There is no error, however, the secrets are not populating. Are you able to describe how I should go about populating the secrets?

Any secrets you have setup in your Doppler config should get populated into process.env in your node app. Could you give me a concrete example with sample output showing what you’re doing?