Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
vms:webdev:fabric [2017/03/17 02:57] admin [GIT] |
vms:webdev:fabric [2017/03/17 03:52] admin [Fabric Components] |
||
---|---|---|---|
Line 155: | Line 155: | ||
> cd sample-applications/packages/getting-started | > cd sample-applications/packages/getting-started | ||
> npm install | > npm install | ||
+ | </code> | ||
+ | |||
+ | Had to run the ''npm-install'' command as root, otherwise couldn't connect to docker deamon:\\ | ||
+ | > docker pull hyperledger/fabric-baseimage:x86_64-0.1.0 | ||
+ | > Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/ | ||
+ | > Cannot connect to the Docker daemon. Is the docker daemon running on this host? | ||
+ | |||
+ | This required to add the following in ''/root/.bashrc'': | ||
+ | <code> | ||
+ | export NVM_DIR="/home/sysadmin/.nvm" | ||
+ | [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | ||
+ | </code> | ||
+ | |||
+ | Also had to run a few commands //manually// before I got it running (root in ''/home/sysadmin/sample-applications/packages/getting-started''): | ||
+ | <code> | ||
+ | > docker pull hyperledger/fabric-baseimage:x86_64-0.1.0 | ||
+ | > scripts/download-hyperledger.sh | ||
+ | > scripts/start-hyperledger.sh | ||
+ | > npm run deployNetwork /home/sysadmin/sample-applications/packages/getting-started | ||
</code> | </code> |