Altinn / app-localtest

Solution for testing apps locally on your own machine
8 stars 14 forks source link

Bind mounts not working on some setups with podman #76

Open tjololo opened 8 months ago

tjololo commented 8 months ago

Description of the bug

In some setup with podman the folders mounted as bind-mounts from the host gives Permission denied on all files and folders. A hacky fix is just running some containers with podman run with the volumes mounted with the flag z. Not sure if this is a problem related to selinux or not, but might be something we need to report back to podman

Steps To Reproduce

Experienced in Apple M3 and Fedora with selinx (not tested fedora without selinux)

  1. Start localtest on Apple M3 or Fedora with a fresh install of podman
  2. See that nginx returns the defualt nginx page
  3. run the hack function in Makefile
  4. restart nginx container, should now serve the localtest page

Additional Information

No response