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

The web editor modifies the dockerfile_inline element when editing #673

Open
2 tasks done
lildata opened this issue Nov 18, 2024 · 0 comments
Open
2 tasks done

The web editor modifies the dockerfile_inline element when editing #673

lildata opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lildata
Copy link

lildata commented Nov 18, 2024

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I encounter a strange web editor behavior when I edit a docker compose file with the dockerfile_inline element https://docs.docker.com/reference/compose-file/build/#dockerfile_inline

When I click Edit the editor will modify the inline dockerfile (| is replaced by > and a line is inserted between each lines)
I did check (cat /opt/stacks/xxx/compose.yaml) it really happens at the opening for edit.

I do not see any error in the Console of the browser Web developer tools

👟 Reproduction steps

  1. Create a Compose with the dockerfile_inline element
  2. Save the file
  3. Edit the Compose (bug)

👀 Expected behavior

I would expect my inline dockerfile not to be modified by the editor

build:
  context: .
  dockerfile_inline: |
    FROM baseimage
    RUN some command  
    ENTRPOINT hello

😓 Actual Behavior

instead the | is replaced by > and a line is inserted between each lines of the inline dockerfile

build:
  context: .
  dockerfile_inline: >
    FROM baseimage

    RUN some command  

    ENTRYPOINT hello

I do not see any error in the Console of the browser Web developer tools

Dockge Version

1.4.2

💻 Operating System and Arch

Alpine / amd64

🌐 Browser

Chromium: 129 and Firefox 131

🐋 Docker Version

Docker 26.1.5

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@lildata lildata added the bug Something isn't working label Nov 18, 2024
@lildata lildata changed the title The web editor will the dockerfile_inline element when editing The web editor modifies the dockerfile_inline element when editing Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant