vesoft-inc / nebula-docker-compose

Docker compose for Nebula Graph
https://github.com/vesoft-inc/nebula
Apache License 2.0
107 stars 80 forks source link

nebula-conosle container failure in ARM docker env #134

Open wey-gu opened 1 year ago

wey-gu commented 1 year ago

In ARM server or Docker Desktop of macOS with Apple Chip, the current console container will fail to run due to it's x86 arch only.

The fix is https://github.com/vesoft-inc/nebula-console/pull/189 .

Before that, one mitigation could be to add platform: linux/amd64 for the console container like, while this only fixed the case we have docker desktop(not for arm64 linux servers)

  console:
    image: vesoft/nebula-console:nightly
    # this line------------
    platform: linux/amd64
    # this line------------
    entrypoint: ""
    command: 
      - sh
      - -c
      - |
        for i in `seq 1 60`;do
          var=`nebula-console -addr graphd -port 9669 -u root -p nebula -e 'ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779'`;
          if [[ $$? == 0 ]];then
            break;
          fi;
          sleep 1;
          echo "retry to add hosts.";
        done && tail -f /dev/null;
    depends_on:
      - graphd
    networks:
      - nebula-net

For ARM linux servers, we could ignore this error and perform ADD HOSTS from binary console by our own.

wey-gu commented 1 year ago

https://discuss.nebula-graph.com.cn/t/topic/11492?u=wey