Skip to content
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

feat(agora): update agora-mongo image to include Agora dataset #2440

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/agora/mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
FROM mongo:6.0.3
FROM mongo:6.0.3

ARG agoraDatasetVersion="1.0.0" \
synapseUsername="" \
synapseToken=""

COPY scripts ./scripts

RUN bash /scripts/download-data-from-synapse.sh

RUN bash /scripts/export-data-to-mongo.sh
3 changes: 3 additions & 0 deletions apps/agora/mongo/scripts/download-data-from-synapse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "Downloading Agora data from Synapse"
5 changes: 5 additions & 0 deletions apps/agora/mongo/scripts/export-data-to-mongo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# NOTE: MongoDB is not running when the docker image is being built. Is there a way to process the
# dataset files so that the data are loaded into the MongoDB instance when it start?
echo "Exporting files to MongoDB format"