gudarzi / SaveHere

Minimal Cloud File Manager
The Unlicense
37 stars 8 forks source link

Cant run on mac #46

Open artoodeeto opened 1 month ago

artoodeeto commented 1 month ago

Hello has anyone tried running it on mac? I'm new to c# and wanted to contribute to this project but im running macOS Sequoia.

When running the development environment: docker compose up -d --build --force-recreate

I get this docker error.

Error response from daemon: Mounts denied: 
The path /Microsoft/UserSecretsis not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/settings/mac/#file-sharing for more info.

I check the docker volume and its not being created. Just wondering if this is an OS issue.

I also run the production environment: docker compose -f docker-compose.production.yml up -d --build --force-recreate

I'm getting this error:

Error response from daemon: Ports are not available: exposing port TCP 172.17.0.1:18443 -> 0.0.0.0:0: listen tcp 172.17.0.1:18443: bind: can't assign requested address

Not sure about this error but I checked my ports there's no open port that uses 18443.

artoodeeto commented 1 month ago

Btw I dont have nginx installed. Should? It's already on docker so I didn't install.

artoodeeto commented 1 month ago

Hello again. Manage to run the dev environment by changing the docker-compose.override.yml volumes from this.

volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro

to this:

volumes:
      - $HOME/Library/Application Support/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - $HOME/Library/Application Support/ASP.NET/Https:/home/app/.aspnet/https:ro
gudarzi commented 1 month ago

@artoodeeto hmm, I don't have mac so I can't test this. Did you manage to fix both dev and prod environment with this change? If so, do a PR please. (You don't have to have nginx installed.)

artoodeeto commented 1 month ago

@gudarzi Hello, I havent fixed the prod environment yet. im looking for a issue that I could fix and maybe after I could create an issue for the prod environment to be fixed?

Also I think this fixed on mac OS will have issue on windows OS because this path is mac specific so im not sure. but ill test it on windows. im going to borrow windows OS and let you know. Thank you.