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

az acr build fails on creating a symlink #633

Open
mherda64 opened this issue Sep 27, 2022 · 0 comments
Open

az acr build fails on creating a symlink #633

mherda64 opened this issue Sep 27, 2022 · 0 comments
Labels

Comments

@mherda64
Copy link

Describe the bug
az acr build fails to build image on creating symlink with No such file or directory. Builing the same image with docker build is successful.

To Reproduce
Steps to reproduce the behavior:

  1. Create Dockerfile with contents:
FROM splunk/universalforwarder:8.2

USER root

RUN mkdir -p /opt/splunkforwarder/var/log/splunk
RUN mkdir -p /opt/splunkforwarder/var/log/tmp
RUN ln -sf /opt/splunkforwarder/var/log/splunk /opt/splunkforwarder/var/log/tmp

ENTRYPOINT ["/bin/bash"]
  1. Run az acr build

It seems that workaround with RUN mkdir -p /opt/splunkforwarder/var/log/tmp && ln -sf /opt/splunkforwarder/var/log/splunk /opt/splunkforwarder/var/log/tmp works.

Expected behavior
Image is successfully built using az acr build

Any relevant environment information

  • OS: MacOS Monterey 12.5
  • Version: azure-cli 2.40
@mherda64 mherda64 added the bug label Sep 27, 2022
@northtyphoon northtyphoon transferred this issue from Azure/acr-cli Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant