dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[QUESTION] Docker mapping all of /app/public question

Open cyrus104 opened this issue 3 years ago • 8 comments
trafficstars

Question

I am using docker to map an nfs/smb volume in for my configuration. The issue with this is you can smb map a folder but not a file. I would like to see if there would be an issue with mapping the whole /app/public folder in. I know there are a decent number of files in there that might have issues with restarts or rebuilts?

Category

Configuration

Please tick the boxes

cyrus104 avatar Jun 02 '22 14:06 cyrus104

Welcome to Dashy 👋 It's great to have you here, but unfortunately your ticket has been closed to prevent spam. Before reopening this issue, please ensure the following criteria are met.

Issues are sometimes closed when users:

  • Have only recently joined GitHub
  • Have not yet stared this repository
  • Have not previously interacted with the repo

Before you reopen this issue, please also ensure that:

  • You have checked that a similar issue does not already exist
  • You have checked the documentation for an existing solution
  • You have completed the relevant sections in the Issue template

Once you have verified the above standards are met, you may reopen this issue. Sorry for any inconvenience caused, I'm just a bot, and sometimes make mistakes 🤖

liss-bot avatar Jun 02 '22 14:06 liss-bot

Yeah, this has been something that's been discussed on and off over the past few months. From my end, I'd like to make a change where all user configured stuff is in a single directory. The issue with that, is that it would be a breaking change, for everyone with auto-update enabled, so would need to be planned properly.

In the short-term, if you must map a directory, then you can map the /public folder, but you will need to paste Dashy's current /public files into your new folder, the first time you set it up. Otherwise the app won't work.

Lissy93 avatar Jun 02 '22 15:06 Lissy93

What about creating a config folder in side the public app and then adding an if statement looking for the config files and if it falls fall back to the current location?

cyrus104 avatar Jun 06 '22 09:06 cyrus104

This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Jul 12 '22 01:07 liss-bot

Just an update, I am addressing this in a big update to the conig that I'm working on at the moment.

It's part of some much bigger changes, so it may take a week or two to complete.

When it's merged, you'll just be able to map /user-data, and that directory can include all your custom assets (config files, and optional assets like icons, stylesheets, widgets, fonts, images, etc etc)

Lissy93 avatar Jul 12 '22 12:07 Lissy93

Sounds great. I have dashy on kubernetes and the same problem occurs if you want a custom config file from the beginning. I'm countering it with an init container but would be great to have a specific folder for users configuration.

Thank you!

rizlas avatar Jul 18 '22 12:07 rizlas

@rizlas see https://github.com/Lissy93/dashy/discussions/799 :)

Lissy93 avatar Jul 18 '22 12:07 Lissy93

Hi @Lissy93, just running into this same issue myself and was wondering if there's any update on the /user-data mapping?

joshbuker avatar Jan 20 '23 17:01 joshbuker

I have a swarm cluster with nfs volumes for persistance and have the same problem with the config file.

gzl10g avatar Jun 11 '23 12:06 gzl10g