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 in Other DevOps Questions by Kichu
• 15,450 points
52 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
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 in Other DevOps Questions by Bhavitha
• 980 points
112 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,060 points
1,549 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP