Important note: Microsoft provides its own emulator for Asure CosmosDB NoSQL, you can find more information on this page:
You should consider using this one as it is fully supported by Microsoft.
This emulator is created as a replacement for azure-cosmos-emulator on NoSQL to work around three issues:
- The evaluation period mode.
- The (undocumented) capability to store data.
- The unstable image that requires restart from time-to-time.
Current restrictions for the project:
- Works only with collections having a
id
property that is as well the partition of the collection. - Don't support attachments
docker pull superfaz/cosmosdb-emulator:latest
docker run --name cosmosdb-emulator -p 127.0.0.1:8081:8081 -v data:/app/data -d superfaz/cosmosdb-emulator:latest
docker build . --tag cosmosdb-emulator:latest
docker run --name cosmosdb-emulator -p 127.0.0.1:8081:8081 -v data:/app/data -d cosmosdb-emulator:latest
docker tag cosmosdb-emulator:latest superfaz/cosmosdb-emulator:latest
docker push superfaz/cosmosdb-emulator:latest
docker run --rm --volume "${PWD}:/app/.certs" finalgene/openssh openssl genrsa -out key.pem
docker run --rm -it --volume "${PWD}:/app/.certs" finalgene/openssh openssl req -new -key key.pem -out csr.pem
docker run --rm --volume "${PWD}:/app/.certs" finalgene/openssh openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem