Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Is the entrypoint of a Dockerfile respected when being used as the base of a container job? #20614

Open
1 of 4 tasks
james-ro-williams opened this issue Nov 4, 2024 · 1 comment

Comments

@james-ro-williams
Copy link

Task name

Task version

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 24.04 (Noble)

Question

Hi,

We are using a custom Docker image built from the C++ Ubuntu Noble dev container image hosted here: https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/cpp/ as the base for a custom task running as a container job in Azure Pipelines.

In the ENTRYPOINT of the Docker image, we do some setup which results in the setting of some environment variables for all users inside any container running the Docker image. When building and running locally, this works and the environment variables are set as expected. However, when using this image in a container job, we see no evidence of the ENTRYPOINT being evaluated at all.

So my question is this: is the ENTRYPOINT of a Docker image overridden when using it as the basis for a container job?

@james-ro-williams
Copy link
Author

Any movement on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants