ForestAdmin/lumber

Consider adding the Z SELinux label to the docker installation script

Opened this issue · 0 comments

Context:

Expected behavior

The docker setup script provided by the website should work.

Actual behavior

I get the EACCES error when running the script.

Failure Logs

Error: EACCES: permission denied, mkdir '/usr/src/app/my-project-name'

Context

I'm installing ForestAdmin for the first time using the docker container installation on a SELinux machine (Fedora 34). Fedora34 uses podman instead of Docker.

  • Lumber Package Version: latest
  • Database Dialect: Postgres
  • Database Version: 12

I was getting this EACCES error due to the docker script trying to edit my host machine via this bind mount (-v `pwd`:/usr/src/app). On SELinux, the Z label is required for this to work.
https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label

With the flag, the installation seems to have worked, but I just thought I should let you guys know.