How to pass docker build args while building an azureml environment.

2024-03-11T15:42:48.0233333+00:00

Hello, how to pass --build-args during AzureML environment building. I am already aware of passing the environment variables via DockerConfiguration during docker run time. However, I want to pass the azure repo id and password for cloning inside the dockerfile. Hence, I need these variables during building of the dockerfile and I want to keep them as secret. Any suggestions please. Thanks.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,333 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2024-03-12T08:16:32.1733333+00:00

    @Bharthipudi V S S Bharadwaja HYD DIWID24 I think you can look at using ssh keys instead, something similar to what is mentioned in this thread from docker forums. You can then use the BuildContext() option to build the environment as mentioned in this notebook.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.