-
-
Notifications
You must be signed in to change notification settings - Fork 259
docs(readme): simplify quick-start docs #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
orangejulius
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty simple and good to me 👍
| # configure docker to write files as your local user | ||
| # see: https://github.com/pelias/docker#variable-docker_user | ||
| # note: use 'gsed' instead of 'sed' on a Mac | ||
| sed -i '/DOCKER_USER/d' .env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would it take to write a command that works on both Mac and Linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a doctorate in computer wizardry from Hogwarts 😸
| # see: https://github.com/pelias/docker#variable-docker_user | ||
| # note: use 'gsed' instead of 'sed' on a Mac | ||
| sed -i '/DOCKER_USER/d' .env | ||
| echo "DOCKER_USER=$(id -u)" >> .env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, why didn't we do this before!? So simple and obvious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the next step would be to make DOCKER_USER optional and have the scripts run id -u by default, thereby making the instructions even shorter.
I think that was the idea behind old work like #74, but it was a long time ago.
docs(readme): simplify quick-start docs
regarding #185 I would propose this as a simple solution to avoid the whole
/dataand/codethingI tested this out and placing the data files in
./dataworks fine, it's also nice because it makes archiving the installation much easier 🎉While I was at it I changed the line about permissions because it's wasn't super clear.