I hereby claim:
- I am joshcass on github.
- I am joshcass (https://keybase.io/joshcass) on keybase.
- I have a public key whose fingerprint is 5A4E 3B22 0AB5 5DDA 2D05 B0FF 122A 0C0E A72D A005
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
There are 4 types of queries that are supported:
A query that gets an entire collection without any filtering. We have a few collections that represent internal data that doesn't need to be filtered by company. For these your json object would look like:
{
"name": "name_of_collection_you_want_to_get",
"filter": "none",
}
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
docker: latest | |
pre_build: | |
commands: | |
- echo Fetching data from Atlas | |
- ./go-get-db |
FROM mongo:4.2 | |
RUN mkdir -p tmp/collections | |
COPY tmp/collections tmp/collections | |
COPY data-import.sh /docker-entrypoint-initdb.d |
FILES=/tmp/collections/* | |
for f in $FILES; do | |
mongoimport --db "database_name" --file $f | |
done |