Skip to content

Conversation

@missinglink
Copy link
Member

regarding #185 I would propose this as a simple solution to avoid the whole /data and /code thing

I tested this out and placing the data files in ./data works 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.

@missinglink missinglink requested a review from orangejulius April 3, 2020 09:09
Copy link
Member

@orangejulius orangejulius left a 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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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

Copy link
Member

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.

@missinglink missinglink merged commit 355a1eb into master May 12, 2020
@missinglink missinglink deleted the relative_data_dir branch May 12, 2020 12:11
calpb pushed a commit to sorelle/docker that referenced this pull request Mar 29, 2021
docs(readme): simplify quick-start docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants