Skip to content

Commit

Permalink
Squashed commit of the following: (#124)
Browse files Browse the repository at this point in the history
commit 78c8d23
Author: wanwiset25 <wanwiset25@gmail.com>
Date:   Wed Dec 20 15:39:23 2023 +0400

    puppeth exit with error code when fails

commit ef0be66
Author: wanwiset25 <wanwiset25@gmail.com>
Date:   Wed Dec 20 15:25:03 2023 +0400

    dockerfile

commit 51bc92a
Author: wanwiset25 <wanwiset25@gmail.com>
Date:   Tue Dec 19 15:04:33 2023 +0400

    add puppeth script
  • Loading branch information
wanwiset25 authored Jan 8, 2024
1 parent ecae5a0 commit c283020
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/puppeth/wizard_genesis_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ func (w *wizard) makeGenesisFile() {
configFile, err := ioutil.ReadFile(w.options.filePath)
if err != nil {
fmt.Println("read file error ", err)
os.Exit(1)
return
}
var input = NewGenesisInput()
// Unmarshal our input YAML file
if err := yaml.Unmarshal(configFile, &input); err != nil {
fmt.Println("parse YAML error ", err)
os.Exit(1)
return
}
SetDefaultAfterInputRead(input)
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN chmod +x /usr/bin/puppeth
# Copy over files
ADD docker/start.sh /work/start.sh
ADD docker/start-bootnode.sh /work/start-bootnode.sh
ADD docker/puppeth.sh /work/puppeth.sh

# Create an empty pwd file
RUN touch /work/.pwd
Expand Down
2 changes: 2 additions & 0 deletions docker/puppeth.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
puppeth --file /app/generated/genesis_input.yml --out /app/generated/

0 comments on commit c283020

Please sign in to comment.