github.com/IBM-Blockchain/fabric-operator@v1.0.4/sample-network/scripts/console.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright contributors to the Hyperledger Fabric Operator project
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  # Licensed under the Apache License, Version 2.0 (the "License");
     8  # you may not use this file except in compliance with the License.
     9  # You may obtain a copy of the License at:
    10  #
    11  # 	  http://www.apache.org/licenses/LICENSE-2.0
    12  #
    13  # Unless required by applicable law or agreed to in writing, software
    14  # distributed under the License is distributed on an "AS IS" BASIS,
    15  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  # See the License for the specific language governing permissions and
    17  # limitations under the License.
    18  #
    19  
    20  function console_up() {
    21  
    22    init_namespace
    23  
    24    apply_operator
    25    wait_for_deployment fabric-operator
    26  
    27    apply_console
    28    wait_for_deployment hlf-console
    29  
    30    local console_hostname=${NS}-hlf-console-console
    31    local console_url="https://${CONSOLE_USERNAME}:${CONSOLE_PASSWORD}@${console_hostname}.${CONSOLE_DOMAIN}"
    32  
    33    log ""
    34    log "The Fabric Operations Console is available at ${console_url}"
    35    log ""
    36  
    37    # TODO: prepare an FoC bulk JSON import for the test network assets
    38    #  log "Log into Console and import the asset archive at build/console/console_assets.zip"
    39  }
    40  
    41  function apply_console() {
    42    push_fn "Applying Fabric Operations Console"
    43  
    44    apply_kustomization config/console
    45  
    46    sleep 5
    47  
    48    pop_fn
    49  }