Search results
Start a Cosmos DB Emulator Docker Container
#!/bin/bash
ipaddr="`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -n 1`"
docker run -d \
--publish 8081:8081 \
--publish 10250-10255:10250-10255 \
--memory 3g --cpus=4.0 \
--name=cosmosdb-linux-emulator \
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
--env AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \
--env AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipaddr \
--interactive \
--tty \
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator
Also related to this page:
Recipe to add the self-signed Cosmos DB emulator certificate to the Java TrustStore
Recipe to create a KeyStore / Truststore programmatically
How to extract a certificate and add it to a Truststore programmatically
How to write integration tests with Testcontainers and Cosmos DB Docker emulator for Spring Boot applications
Recipe to add the self-signed Cosmos DB emulator certificate to the Java TrustStore
Recipe to create a KeyStore / Truststore programmatically
How to extract a certificate and add it to a Truststore programmatically
How to write integration tests with Testcontainers and Cosmos DB Docker emulator for Spring Boot applications