gpdb

command module
v0.0.0-...-8c069ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 26 Imported by: 0

README

Table of Contents

Introduction

The gpdb CLI helps to download, install, remove, and manage GPDB / GPCC installation, in both single and multi node installations.

Installation

  • To provision a vagrant VM with go-gpdb pre-installed, please follow the instructions in the datalab documentation. Make sure it can access the internet. Connect to the provisioned VM using datalab ssh and start using the gpdb cli using the examples mentioned below.
  • If configuring your own VM, please follow the instructions in INSTALL.md.

Usage

Usage:
  gpdb [command] [flags]
  gpdb [command]

Available Commands:
  download    Download the product from pivotal network
  env         Show all the environment installed
  help        Help about any command
  install     Install the product downloaded from download command
  remove      Removes the product installed using the install command

Flags:
  -d, --debug     Enable verbose or debug logging
  -h, --help      help for gpdb
      --version   version for gpdb

Use "gpdb [command] --help" for more information about a command.

Configuration

Configuration file is placed at the home directory of the user $HOME/config.yml. Alter this file for default configuration change.

Example

Download
  • To download product interactively from PivNet

    gpdb download
    
  • To download gpdb interactively from GitHub

    gpdb download --github
    
  • To download a specific version

    gpdb download -v <GPDB VERSION>
    
  • To download and install a specific version

    gpdb download -v <GPDB VERSION> --install
    
  • To download GPCC software in interactive mode.

    gpdb download -p gpcc
    
  • To download GPCC software of specific version.

    gpdb download -p gpcc -v <GPDB VERSION>
    
  • To download all GPDB products in interactive mode

    gpdb download -p gpextras
    
  • To download all products of specific version.

    gpdb download -p gpextras -v <GPDB VERSION>
    
  • To obtain help menu of the download command

    gpdb help download
    
Install
  • To install gpdb
    gpdb install -v <GPDB VERSION>
    
  • To install gpdb & standby
    gpdb install -v <GPDB VERSION> --standby
    
  • To install gpcc
    gpdb install -p gpcc -v <GPDB VERSION> -c <GPCC VERSION>
    
  • To obtain help menu of the install command
    gpdb help install
    
Env
  • To list all environments that have been installed.
    gpdb env -l
    
  • To list all environments that have been installed and choose env in interactive mode.
    gpdb env
    
  • To start and use a specific installation.
    gpdb env -v <GPDB VERSION>
    
  • To prevent stopping other environment when the environment is set.
    gpdb env -v <GPDB VERSION> --dont-stop
    
  • To obtain help menu of the env command
    gpdb help env
    
Remove
  • To remove a particular installation.
    gpdb remove -v <GPDB VERSION>
    
  • To remove a particular installation forcefully.
    gpdb remove -v <GPDB VERSION> -f
    
  • To obtain help menu of the remove command
    gpdb help remove
    

Demo

asciicast

Developers / Contributors

  1. Clone the git repository
  2. Export the GOPATH
    export GOPATH=<path to the clone repository>
    
  3. cd to project folder
    cd $GOPATH/src/github.com/pivotal-gss/go-gpdb/gpdb
    
  4. Install all the dependencies. If you don't have dep installed, follow the instruction from here
    dep ensure
    
  5. You are all set, you can run it locally using
    go run *.go <commands>
    
  6. To build the package use
    env GOOS=linux GOARCH=amd64 go build -o gpdb
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL