Hi All, I have a newb question that I'm sure someo...
# all-things-deployment
a
Hi All, I have a newb question that I'm sure someone on here will be able to answer. I am trying to follow the instructions to create users using the user.props file as per https://datahubproject.io/docs/how/auth/add-users however, for some reason I get a "The \"HOME\" variable is not set. Defaulting to a blank string." warning when I run datahub docker quickstart. I've looked in my home folder and there is a .datahub directory but the only file in there is telemetry-config.json. So, I created the C:\Users\user\.datahub\plugins\frontend\auth directory and put a user.props file in there, and restarted my datahub container. No luck with adding users this way. Can someone please shed some light on this? How can I set the /HOME/ variable, I am assuming this will fix the issue? Thanks.
e
Hi @adamant-magazine-62649 ! So we mount the directory mentioned in the doc into the container here https://github.com/datahub-project/datahub/blob/master/docker/quickstart/docker-compose-without-neo4j.quickstart.yml#L60 If you are not using this docker-compose, search for the datahub-frontend-react container’s volumes section. Since HOME directory does not exist in windows, you can specify a path here directly! so
Copy code
volumes:
- <<path-to-plugins-dir>>:/etc/datahub/plugins
plus1 1
Note that the part after the colon should not be changed as that is the path the app reads from!
plus1 1
a
@early-lamp-41924 Out of interest, if I start datahub with docker-compose instead of the quickstart can I put this setting into the .yml file? The answer to this isn't obvious on the datahubproject.io website
e
Yes!!
The docker-compose.yml files are designed to be a starting point for you to customize. Feel free to make edits to it locally and deploy!
a
excellent, so where does the local file start life? I'm assuming inside the appdata directories on windows?
e
So the <<path-to-plugin-dirs>> can be anything you prefer. Docker just mounts that directory into the docker container
a
ok, so I can get a copy of the .yml here: https://github.com/datahub-project/datahub/blob/master/docker/quickstart/docker-compose-without-neo4j.quickstart.yml#L60 and modify it locally with the directory I want to mount, then use docker-compose on that file to essentially "quickstart" datahub based on the settings I have defined locally?
e
Yes!
plus1 1
Not sure if the datahub cli works 100% on windows, but if it does, you can also specify the local docker-compose file by using
Copy code
datahub docker quickstart --quickstart-compose-file <<path-to-docker-compose-file>>
plus1 1
The CLI gives better signal about whether the components have been deployed successfully, which makes it easier to work with (It runs docker-compose under the hood)
a
@early-lamp-41924 tested and working for me. Thanks for your help, appreciate it.
e
Glad to hear!!
plus1 1