NOTE: You can find the script files for this example on Github here
Test should be run on a clean environment in the given order.
#I. Download example scripts and make sure that scripts are in the current directory. git clone https://github.com/singnet/dev-portal cd dev-portal/docs/all/mpe/front-to-back-examples/scripts/example1 #II. Run ubuntu:latest docker container and "mount" ./ to /example1 docker run -v `pwd`:/example1 -it ubuntu:latest #III. Now you are inside a docker container. We will install everything. . /example1/for_docker/install_all.sh
At this point you can “commit” your docker container.
After this you will be able to use $USER/snet_example1 instead of ubuntu:latest (without running install_all.sh)
# you should be inside example1 directory #cd dev-portal/docs/all/mpe/front-to-back-examples/scripts/example1 docker run -v `pwd`:/example1 -it $USER/snet_example1
# reset environment . /example1/for_docker/reset_environment.sh # register your service . /example1/run_service.sh
After running the service, the terminal will not return to you, so you will need to open a second terminal in your container.
And your can run your client
. /example1/run_client.sh # it should print "42.0"
Last modified on : 02-Feb-23