Skip to content

Commit

Permalink
allow for running the upgrade initialization in Docker by providing a…
Browse files Browse the repository at this point in the history
… data dir
  • Loading branch information
p0mvn committed Apr 22, 2022
1 parent de89119 commit dabb683
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/upgrade/init-e2e.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ COPY --from=build /osmosis/build/upgrade /bin/upgrade
ENV HOME /osmosis
WORKDIR $HOME

CMD [ "upgrade" ]
ENTRYPOINT [ "upgrade" ]
9 changes: 9 additions & 0 deletions tests/e2e/upgrade/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
package main

import (
"flag"
"fmt"
"io/ioutil"

"github.com/osmosis-labs/osmosis/v7/tests/e2e/chain"
)

func main() {
var dataDir string
flag.StringVar(&dataDir, "data-dir", "", "chain data directory")
flag.Parse()

if len(dataDir) == 0 {
panic("data-dir is required")
}

tmpDir, err := ioutil.TempDir("", "osmosis-e2e-testnet-")
if err != nil {
panic(err)
Expand Down

0 comments on commit dabb683

Please sign in to comment.