Replies: 2 comments
-
What we do here: check if an environment variable is set, to download the data into a specific directory. What you could do without changing anything: mount the two files into the appropriate locations ( So you would need to add something like |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks!
…On Thu, Jan 6, 2022, 11:08 AM Philip Kozeny ***@***.***> wrote:
What we do here: check if an environment variable is set, to download the
data into a specific directory. What you could do without changing anything:
mount the two files into the appropriate locations (
${PROJECT_DIR}/wikimedia-importance.sql.gz,
${PROJECT_DIR}/us_postcode_data.sql.gz). They will be automatically used
if they are present in that location.
So you would need to add something like -v
/my/files/wikimedia-importance.sql.gz:/nominatim/wikimedia-importance.sql.gz
depending on how you launch the image.
—
Reply to this email directly, view it on GitHub
<#282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARKNSMXV26BJHUHHCQWNP2TUUXSC7ANCNFSM5LJNEW4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I already have wikimedia-importance.sql.gz and us_postcode_data.sql.gz files downloaded. I'm looking at the init.sh file, and I'm not sure how to switch it from downloading the file to reading it from local storage. Am I in the right place?
What do these sections need to be changed to in order to achieve this?
if [ "$IMPORT_WIKIPEDIA" = "true" ]; then
echo "Downloading Wikipedia importance dump"
curl https://nominatim.org/data/wikimedia-importance.sql.gz -L -o ${PROJECT_DIR}/wikimedia-importance.sql.gz
else
echo "Skipping optional Wikipedia importance import"
fi;
f [ "$IMPORT_US_POSTCODES" = "true" ]; then
curl https://nominatim.org/data/us_postcode_data.sql.gz -L -o ${PROJECT_DIR}/us_postcode_data.sql.gz
else
echo "Skipping optional US postcode import"
fi;
Beta Was this translation helpful? Give feedback.
All reactions