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

[Bug] redefining BUILDPLATFORM when using Podman #31488

Open
3 tasks done
nktnet1 opened this issue Dec 17, 2024 · 1 comment · May be fixed by #31489
Open
3 tasks done

[Bug] redefining BUILDPLATFORM when using Podman #31488

nktnet1 opened this issue Dec 17, 2024 · 1 comment · May be fixed by #31489
Labels
install:docker Installation - docker container

Comments

@nktnet1
Copy link

nktnet1 commented Dec 17, 2024

Bug description

The following error occurs:

Error: reading multiple stages: attempted to redefine "BUILDPLATFORM": invalid argument

when using podman with the command:

podman compose -f docker-compose-non-dev.yml up --build

Screenshots/recordings

image

Superset version

master / latest-dev

Python version

v3.12.6

Node version

v20.18.0

Browser

Firefox

Additional context

Works with Docker, issue only occus with Podman.

OS: macOS Sequoia 15.0.1 arm64
Host: MacBook Pro (16-inch, 2023)
Kernel: Darwin 24.0.0

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Copy link

dosubot bot commented Dec 17, 2024

The error you're encountering with Podman seems to be related to the redefinition of the BUILDPLATFORM variable. This issue arises because Podman handles build arguments differently than Docker, and it doesn't allow redefinition of certain variables like BUILDPLATFORM.

To resolve this, you can try the following workaround:

  1. Modify the Dockerfile: Remove or comment out the line where BUILDPLATFORM is defined if it's being redefined. This might look like:

    # ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
  2. Use Podman-specific options: If Podman has specific options or flags to handle such cases, consider using them. Unfortunately, Podman might not support all Docker features directly, so checking Podman's documentation for any specific flags or environment variable handling could be helpful.

  3. Environment Variables: Ensure that BUILDPLATFORM is not being set elsewhere in your environment or scripts that might conflict with Podman's handling.

These steps should help you bypass the issue with Podman. If the problem persists, you might need to look into Podman's documentation or community for more specific guidance on handling build arguments.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the install:docker Installation - docker container label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install:docker Installation - docker container
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant