Development on Fedora Workstation 38

Is there a recommended way to setup a development environment on Linux in general or Fedora Workstation 38 for Home Assistant? :penguin:

I’ve been following the setup of the development container via vscode but I cannot seem to run Home Assistant from within the devcontainer.

When running the task ‘Run Home Assistant Core’ it errors out when trying to create a folder

PermissionError: [Errno 13] Permission denied: '/workspaces/core/build/translations-download'

I’m using the default devcontainer.json and my ~/core folder is connected the docker container via a bind mount. When running from the docker container via exec -it container_name /bin/bash I can see and create folders just fine. So I’m not sure why it’s failing on me on a permission error.

Thanks for the help :beer:

EDIT:
Ugh :nauseated_face: the default user vscode in the container (even though it has id 1000) does not have the correct permissions to edit my filesystem.

Did you ever resolve your issues? I’m trying to establish a development environment, but am having a terrible time with Docker. I’ve made my user a member of the ‘docker’ group, but I still get permission errors on /var/run/docker.sock, with is owned by root but the group is ‘docker’. Any thoughts on getting my permissions sorted out?

Welcome to the home assistant community! :star_struck:

If you are running into issues running the basic docker hello world container you could check out the official docker documentation. For Fedora / Debian it’s quite straightforward and should work out of the box.

If you’re basic hello world container is running fine (even with sudo) the next Google keywords to try are rootless docker

Afterwards for running the official home assistant development container my issues were mostly related to not using: a) vscode (I tried vscodium) b) docker via flathub iso from their proper repo’s

When using the official vscode on linux and the latest docker version from the official repo the official home assistant container is working just fine for me.

Thanks. I had originally installed packages from the official Fedora repositories. I removed these and added the official Docker repository and re-installed. All is well now!