mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
updated readme
This commit is contained in:
parent
a9308b2706
commit
c3866a8617
2 changed files with 7 additions and 8 deletions
|
@ -12,10 +12,6 @@ cd my_dir
|
|||
git clone https://github.com/RaaLabs/steward.git
|
||||
```
|
||||
|
||||
Then create the public and private nkey's by running:
|
||||
|
||||
`go run ./steward/scripts/nats-server/generate-nkeys/main.go`
|
||||
|
||||
To create the docker-compose and env.env run:
|
||||
|
||||
```bash
|
||||
|
|
|
@ -32,16 +32,18 @@ func generateNkeys(fileDir string) error {
|
|||
fmt.Println("scanning line : ", text)
|
||||
|
||||
if strings.HasPrefix(text, "S") {
|
||||
fmt.Println("found S")
|
||||
p := path.Join(fileDir, "seed.txt")
|
||||
err := writekey(p, []byte(text))
|
||||
return err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(text, "U") {
|
||||
fmt.Println("found U")
|
||||
p := path.Join(fileDir, "user.txt")
|
||||
err := writekey(p, []byte(text))
|
||||
return err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -148,6 +150,7 @@ func main() {
|
|||
socketFolder := flag.String("socketFolder", "./tmp/", "the complete path of the socket folder to mount")
|
||||
|
||||
templateDir := flag.String("templateDir", "./steward/scripts/steward/create-docker-compose-files/", "the directory path to where the template files are located")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
if *brokerAddress == "" {
|
||||
|
|
Loading…
Reference in a new issue