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
|
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:
|
To create the docker-compose and env.env run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -32,18 +32,20 @@ func generateNkeys(fileDir string) error {
|
||||||
fmt.Println("scanning line : ", text)
|
fmt.Println("scanning line : ", text)
|
||||||
|
|
||||||
if strings.HasPrefix(text, "S") {
|
if strings.HasPrefix(text, "S") {
|
||||||
fmt.Println("found S")
|
|
||||||
p := path.Join(fileDir, "seed.txt")
|
p := path.Join(fileDir, "seed.txt")
|
||||||
err := writekey(p, []byte(text))
|
err := writekey(p, []byte(text))
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if strings.HasPrefix(text, "U") {
|
if strings.HasPrefix(text, "U") {
|
||||||
fmt.Println("found U")
|
|
||||||
p := path.Join(fileDir, "user.txt")
|
p := path.Join(fileDir, "user.txt")
|
||||||
err := writekey(p, []byte(text))
|
err := writekey(p, []byte(text))
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -148,6 +150,7 @@ func main() {
|
||||||
socketFolder := flag.String("socketFolder", "./tmp/", "the complete path of the socket folder to mount")
|
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")
|
templateDir := flag.String("templateDir", "./steward/scripts/steward/create-docker-compose-files/", "the directory path to where the template files are located")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if *brokerAddress == "" {
|
if *brokerAddress == "" {
|
||||||
|
|
Loading…
Reference in a new issue