Skip to content

Commit

Permalink
fix: "make import_prod_data" incorrect mapping on data folder (#8598)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrabkin authored Jun 27, 2023
1 parent b01ff33 commit 2968f39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ import_prod_data:
cd ./html/data && sha256sum --check gz-sha256sum
@echo "🥫 Restoring the MongoDB dump …"
${DOCKER_COMPOSE} exec -T mongodb //bin/sh -c "cd /data/db && mongorestore --quiet --drop --gzip --archive=/import/openfoodfacts-mongodbdump.gz"
rm html/data/openfoodfacts-mongodbdump.tar.gz && rm html/data/gz-sha256sum
rm html/data/openfoodfacts-mongodbdump.gz && rm html/data/gz-sha256sum

#--------#
# Checks #
Expand Down
1 change: 1 addition & 0 deletions docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ services:
command: mongod --wiredTigerCacheSizeGB ${MONGODB_CACHE_SIZE}
volumes:
- dbdata:/data/db
- ./html/data:/import
ports:
- "127.0.0.1:${MONGO_EXPOSE_PORT:-27017}:27017"
volumes:
Expand Down

0 comments on commit 2968f39

Please sign in to comment.