Merge pull request #6 from 8thlight/VDB-337-Dockerize-vDB

VDB-337 Dockerize vDB
This commit is contained in:
Edvard Hübinette
2019-02-11 12:37:56 +01:00
committed by GitHub
14 changed files with 176 additions and 45 deletions
+4
View File
@@ -19,6 +19,7 @@ package cmd
import (
"fmt"
"os"
"strings"
"time"
"github.com/ethereum/go-ethereum/ethclient"
@@ -78,6 +79,9 @@ func database(cmd *cobra.Command, args []string) {
func init() {
cobra.OnInitialize(initConfig)
// When searching for env variables, replace dots in config keys with underscores
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viper.AutomaticEnv()
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file location")
rootCmd.PersistentFlags().String("database-name", "vulcanize_public", "database name")