Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nebula-conosle container failure in ARM docker env #134

Open
wey-gu opened this issue Nov 22, 2022 · 1 comment
Open

nebula-conosle container failure in ARM docker env #134

wey-gu opened this issue Nov 22, 2022 · 1 comment
Labels
type/enhancement New feature or request

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Nov 22, 2022

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 vesoft-inc/nebula-console#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
Copy link
Contributor Author

wey-gu commented Nov 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants