Skip to content

Instantly share code, notes, and snippets.

View joshcass's full-sized avatar

Josh Cass joshcass

  • North Bend, WA
  • 10:31 (UTC -07:00)
View GitHub Profile
@joshcass
joshcass / import_example.sh
Created May 29, 2020 20:24
Shell script example
FILES=/tmp/collections/*
for f in $FILES; do
mongoimport --db "database_name" --file $f
done
@joshcass
joshcass / Dockerfile
Created May 29, 2020 20:06
Dockerfile example
FROM mongo:4.2
RUN mkdir -p tmp/collections
COPY tmp/collections tmp/collections
COPY data-import.sh /docker-entrypoint-initdb.d
@joshcass
joshcass / buildspec_example.yaml
Created May 29, 2020 19:54
Example of our buildspec
version: 0.2
phases:
install:
runtime-versions:
docker: latest
pre_build:
commands:
- echo Fetching data from Atlas
- ./go-get-db
@joshcass
joshcass / query_config_description.md
Last active May 25, 2020 21:00
Query config.json description

There are 4 types of queries that are supported:

1

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",
  }

Keybase proof

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: