encointer / encointer-node

encointer node and cli client
Apache License 2.0
23 stars 8 forks source link

Publish docker images of the node and the client #278

Closed clangenb closed 1 year ago

clangenb commented 2 years ago

I wanted to use the binaries from here for the integration tests in the encointer-wallet. However, the integration tests there run on MacOS machines, which means our binaries do not work there.

clangenb commented 2 years ago

Alternatively, we can also just build for Mac machines in the CI because I am uncertain if our python libs can just execute docker images instead of the binary.

clangenb commented 2 years ago

We could also prepare a docker image that contains the python scripts and the encointer-client, so we can bootstrap a community from within the docker image.

clangenb commented 2 years ago

@mosonyi thinks docker is easy. So I think we should have two docker images:

  1. the encointer-node as usual.
  2. The encointer-client. It needs inside:
    encointer-client-notee
    client/py_client
    client/bootstrap_demo_community.py
    client/cli.py
    client/test-data

    And the entry points should be:

[./encointer-client-notee]
[./client/bootstrap_demo_community.py --client encointer-client-notee]
[./client/cli.py --client  encointer-client-notee]
clangenb commented 1 year ago

Install python deps: https://github.com/encointer/encointer-node/blob/master/scripts/install_python_deps.sh

mosonyi commented 1 year ago

@clangenb client is ready to test. Usage: docker run -it encointer/encointer-client-notee: [encointer-client-notee|bootstrap_demo_community.py|cli.py] Example: $ docker run -it encointer/encointer-client-notee:0.0.2 encointer-client-notee --version

mosonyi commented 1 year ago

@clangenb the node is added too example: docker run -it encointer/encointer-node-notee:0.0.2 --help

Please edit the Readme accordingly

clangenb commented 1 year ago

Done #293.

Thanks a lot, it works like a charm!