azure-cosmos-db-emulator-docker icon indicating copy to clipboard operation
azure-cosmos-db-emulator-docker copied to clipboard

Container hangs on...

Open pvpmartins opened this issue 10 months ago • 4 comments

Describe the bug Often times the Linux emulator docker container completely freezes. No matter what I do, it keeps like that for a while. It is really time consuming.

  • Linux (mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest)

Docker Environment

version: '3'
services:
  cosmosdb:
    image: 'mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest'
    environment:
      SA_PASSWORD: 'Your_password123'
    cap_add:
      - SYS_PTRACE
    ports:
      - 8888:8888
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 8000M # Increase memory limit to 4GB (4000 megabytes)
        reservations:
          cpus: '1'
          memory: 4000M # Increase memory reservation to 2GB (2000 megabytes)

pvpmartins avatar Apr 17 '24 19:04 pvpmartins

Hi @pvpmartins, thanks for reporting this. Could you elaborate on the issue? Are you encountering it during startup or during a particular operation? Kindly provide any relevant details that may assist us in reproducing the problem.

amanrao23 avatar Apr 18 '24 11:04 amanrao23

@amanrao23 https://github.com/Azure/azure-cosmos-db-emulator-docker/assets/85913786/a8a8dcbb-ebd1-42ab-af02-1c44d1d65476

The container has been initialized for a while already...

pvpmartins avatar May 07 '24 19:05 pvpmartins

Not kidding you guys... You did a terrible job on this. I will move on from cosmosdb, the development experience is really bad.

pvpmartins avatar May 21 '24 22:05 pvpmartins

Is there really no interest on Microsoft's side to fix this docker emulator issue? I bet there are many organizations that would like to use Linux at least in github workflows but this issue practically prevents running integration tests on Linux agents.

There are so many similar issues and no proper explanation from a Microsoft employee: #68 #51 #45

Because of this issue alone I would not recommend Cosmos DB to anyone considering using it.

jvalkeejarvi avatar Jul 30 '24 13:07 jvalkeejarvi