We would prefer to go with Ubuntu Server 16.04 LTS (HVM) [ami-0d03add87774b12c5]
for backward compatibility for older applications. But one can choose any version as per thier
preference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GIT COMMITS CREATOR # | |
| # ====================== | |
| # WARNING!!!!! | |
| # _____ | |
| # / \ | |
| # | () () | | |
| # \ ^ / | |
| # ||||| | |
| # ||||| | |
| # This script creates new commits in your existing folder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| replicaCount: 1 | |
| image: | |
| repository: nginx | |
| tag: stable | |
| pullPolicy: IfNotPresent | |
| imagePullSecrets: [] | |
| nameOverride: "" | |
| fullnameOverride: "" | |
| service: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: secret-env-pod | |
| spec: | |
| containers: | |
| - name: mycontainer | |
| image: redis | |
| env: | |
| - name: PORT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Query the chaincode | |
| peer chaincode query -C buyer1seller1channel1 -n mycc2 -c '{"Args":["query","key"]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Instantiate the chaincode | |
| peer chaincode instantiate -o orderer-example-com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example-com/tlsca.example-com-cert.pem -C buyer1seller1channel1 -n mycc2 -l node -v 2.0 -c '{"Args":["init","key", "test value"]}' -P "AND ('BuyerOneMSP.peer','SellerOneMSP.peer')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update the environment variable for Peer0 | |
| export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/users/Admin@buyerone-example-com/msp | |
| export CORE_PEER_LOCALMSPID="BuyerOneMSP" | |
| export CORE_PEER_ADDRESS=peer0-buyerone-example-com:7051 | |
| export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/peers/peer0-buyerone-example-com/tls/ca.crt | |
| # Install the chaincode for Peer0 | |
| peer chaincode install -n mycc2 -v 2.0 -l node -p /opt/gopath/src/github.com/chaincode/default_chaincode/node/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update the environment variable for Peer0 | |
| export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/users/Admin@buyerone-example-com/msp | |
| export CORE_PEER_LOCALMSPID="BuyerOneMSP" | |
| export CORE_PEER_ADDRESS=peer0-buyerone-example-com:7051 | |
| export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/peers/peer0-buyerone-geoverse-com/tls/ca.crt | |
| # Install the chaincode for Peer0 | |
| peer chaincode install -n mycc2 -v 2.0 -l node -p /opt/gopath/src/github.com/chaincode/default_chaincode/node/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl exec -it <CLI_POD_ID> --namespace=peers -- /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ExtraPods: | |
| - Name: buyerone-node-app | |
| Chart: ./buyerone | |
| Values: | |
| - name: "replicaCount" | |
| value: "1" | |
| - name: "name" | |
| value: buyerone-node-app | |
| - name: "NODE_ENV" | |
| value: "production" |
NewerOlder