Skip to content

Instantly share code, notes, and snippets.

Rafael Rocha rafarocha

View GitHub Profile
@rafarocha
rafarocha / docker_error_mount_directory_filepath_absolute_name.md
Last active Apr 19, 2020
docker error when mount directory filepath absolute name
View docker_error_mount_directory_filepath_absolute_name.md

command

docker run -d -p 9090:9090 -v /Volumes/work/github/demo-micrometer/src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus

error

rocha$ docker run -d -p 9090:9090 -v /Volumes/work/github/demo-micrometer/src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
3d2482a583fad258fd2ed6e6cfda18d54c16bd7cf12508d00fb07d7ff3ae61b6
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\"/Volumes/work/github/demo-micrometer/src/main/resources/prometheus.yml\\\" to rootfs \\\"/mnt/sda1/var/lib/docker/overlay2/d136b936f1a0f291eb0b24b647bfc3671fdc9a71bbdf02cc90e46c84c295d9c7/merged\\\" at \\\"/mnt/sda1/var/lib/docker/overlay2/d136b936f1a0f291eb0b24b647bfc3671fdc9a71bbdf02cc90e46c84c295d9c7/merged/etc/prometheus/prometheus.yml\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a
@rafarocha
rafarocha / fail_docker_image_oracle18.log
Created Dec 19, 2019
fail_docker_image_oracle18.log
View fail_docker_image_oracle18.log
sudo bash buildDockerImage.sh -v 18.4.0 -x -i
Ignored MD5 checksum.
==========================
DOCKER info:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 7
Server Version: 18.09.7
@rafarocha
rafarocha / hyperledger_explorer_fail_connect_client_peer.md
Created Oct 30, 2019
hyperledger_explorer_fail_connect_client_peer.md
View hyperledger_explorer_fail_connect_client_peer.md
******* Initialization started for hyperledger fabric platform ******, { 'my-basic-sample': { name: 'my-basic-sample', profile: 'connection-profile.json' } }
 client_configs.name  my-basic-sample  client_configs.profile  connection-profile.json
FabricUtils.createFabricClient 
config.client.tlsEnable  false
FabricConfig, this.config.channels  mychannel
'Error instantiating FabricCAServices '
Error: identity 'admin' isn't enrolled, or loaded
    at FileSystemWallet.setUserContext (/opt/explorer/node_modules/fabric-network/lib/impl/wallet/basewallet.js:56:10)
    at <anonymous>
@rafarocha
rafarocha / hyperledger_sucess_tutorial.md
Created Oct 30, 2019
hyperledger_sucess_tutorial.md
View hyperledger_sucess_tutorial.md
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh

npm install -g composer-cli@0.20
npm install -g composer-rest-server@0.20
npm install -g composer-playground@0.20

git clone https://github.com/hyperledger/fabric-samples
@rafarocha
rafarocha / problemas_tutorial_hyperledger.md
Last active Oct 30, 2019
problemas_tutorial_hyperledger.md
View problemas_tutorial_hyperledger.md

problema 1

descricao

container hyperledger/fabric-ca não inicia apos rodar start.sh, pag 3

motivo

docker logs <container_id_hyperledger/fabric-ca>

2019/10/29 23:57:44 [INFO] Configuration file location: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml
2019/10/29 23:57:44 [INFO] Starting server in home directory: /etc/hyperledger/fabric-ca-server
2019/10/29 23:57:44 [INFO] Server Version: 1.4.3
@rafarocha
rafarocha / hyperledger_fabric_master_scripts_bootstrap.sh
Last active Oct 29, 2019
hyperledger_fabric_master_scripts_bootstrap.sh
View hyperledger_fabric_master_scripts_bootstrap.sh
#!/bin/bash
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# if version not passed in, default to latest released version
VERSION=1.4.3
# if ca version not passed in, default to latest released version
@rafarocha
rafarocha / hyperledger-fail-install-bna.md
Last active Oct 28, 2019
hyperledger-fail-install-bna.md
View hyperledger-fail-install-bna.md

step 1 and 2

composer card create -p connection.json -u PeerAdmin -c Admin@org1.example.com-cert.pem -k e868c58636f99bd64405d68c3c79ef4cae1f5236d66681e9e82261a8505d5cc4_sk -r PeerAdmin -r ChannelAdmin
composer card import -f PeerAdmin@basic-network.card

# obtendo arquivo basic.bna
wget --no-check-certificate -r 'https://docs.google.com/uc?export=download&id=1tXRKk2nrFuI8cN8r6dZHY5mSgT-pjws4' -O basic.bna

# listando card
composer card list
@rafarocha
rafarocha / setup_bug_todolist-app-microsoft.md
Created Oct 25, 2019
setup_bug_todolist-app-microsoft.md
View setup_bug_todolist-app-microsoft.md

Chrome

Version 76.0.3809.87 (Official Build) (64-bit)

Linux

# uname -r
4.15.0-65-generic
# uname -a
@rafarocha
rafarocha / implantando_bna_hyperledger.md
Last active Oct 22, 2019
implantando_bna_hyperledger.md
View implantando_bna_hyperledger.md

Experimento

  1. Criando esqueleto para a aplicação yo hyperledger-composer:businessnetwork

  2. Gerando arquivo .bna, considerando composer archive create -t dir -n .

  3. Definindo e gerando card do Admin de seu Nò/channel composer card import -f PeerAdmin@connection-network-org1.card --card PeerAdmin@connection-network-org1

@rafarocha
rafarocha / publish-subscribe-pattern-false
Last active Oct 2, 2019
publish-subscribe-pattern false
View publish-subscribe-pattern-false
title Steps Publish-Subscribe Pattern
opt Publish on Network
Publisher->App: Send Message Topic
App->Wallet:
Wallet->Publisher: Confirm Transaction
Publisher->Wallet:
Wallet->Ethereum\nContract: Request Call Service
Ethereum\nContract->Ethereum\nNetwork: Registry Message
end
You can’t perform that action at this time.