How to set environment variables in Dockerfile via Azure DevOps

0 votes

My  environment variables look like this:

ENV ACCEPT_EULA=Y
ENV SA_PASSWORD=Password
ENV MSSQL_PID=Developer
ENV MSSQL_TCP_PORT=1433 

I have 2 pipelines in  Azure DevOps.

There are options to set variables in both these pipelines: enter image description here

enter image description here

 I have set the password in both the  pipelines and edited my password in the Dockerfile to look like this:
ENV SA_PASSWORD=$(SA_PASSWORD)

Is this a safe way of passing secrets? Is there any way someone could read secrets from a Docker image?

Apr 12, 2022 in Other DevOps Questions by Kichu
• 19,050 points
3,334 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers

How to set WIP limit in Azure DevOps Board - Sprint View

Is it possible to set WIP limits ...READ MORE

Mar 23, 2022 in Other DevOps Questions by Kichu
• 19,050 points
376 views
0 votes
1 answer
0 votes
1 answer

How to include Different Types of Workitems in Boards of Azure DevOps?

Predefined backlog levels in Azure DevOps may ...READ MORE

answered Feb 11, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,316 views
0 votes
0 answers
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
2,435 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP