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
| #!/bin/bash | |
| #https://docs.cloudfoundry.org/devguide/deploy-apps/ssh-apps.html#ssh-command | |
| APP_NAME="my_app" | |
| GUID=$(cf app $APP_NAME --guid) | |
| INFO=$(cf curl /v2/info) | |
| export CF_SSH_ENDPOINT=$(printf $INFO | jq '.app_ssh_endpoint' | cut -d ':' -f1 | tail -c +2) | |
| export CF_SSH_PORT=$(printf $INFO | jq '.app_ssh_endpoint' | cut -d ':' -f2 | tr -d \") | |
| export CF_SSH_FINGERPRINT=$(printf $INFO | jq '.app_ssh_host_key_fingerprint' | cut -d ':' -f1 | tail -c +2) |
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
| /* | |
| This creates suite of environments using all available | |
| environment types and consensus methods. | |
| */ | |
| variable "kaleido_api_key" { | |
| type = "string" | |
| description = "Kaleido API 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
| variable "quorum_consensus" { | |
| type = "list" | |
| default = ["raft", "ibft"] | |
| description = "Consensus methods supported by quorum." | |
| } |
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
| resource "kaleido_environment" "myEnv" { | |
| consortium_id = "${kaleido_consortium.mine.id}" | |
| name = "My Environment" | |
| description = "Deployed with Terraform" | |
| env_type = "${element(var.env_types, 0)}" | |
| consensus_type = "${element(var.quorum_consensus, 0)}" | |
| } |
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
| package kaleido.quorum; | |
| import java.io.IOException; | |
| import java.math.BigInteger; | |
| import java.util.ArrayList; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| import org.web3j.protocol.Web3j; | |
| import org.web3j.protocol.core.RemoteCall; |
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
| const Web3 = require('web3'); | |
| module.exports = { | |
| networks: { | |
| geth: { | |
| provider: function () { | |
| return new Web3.providers.HttpProvider('https://USERNAME:PASSWORD@HTTP_RPC_ENDPOINT') | |
| }, | |
| network_id: '*', | |
| gasPrice: 0 | |
| }, |
OlderNewer