-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare agora mongo image to build with data
- Loading branch information
1 parent
83a068a
commit 059b382
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Downloading Agora data from Synapse" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |