Skip to content

Commit dd185f6

Browse files
committed
Update README to use --mount and correct docker repo
- mount will make it easier to inspect the file contents when debugging
1 parent 7b71663 commit dd185f6

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ install:
1010

1111
.PHONY: image
1212
image:
13-
docker build -t repp:latest .
13+
docker build -t jjtimmons/repp:latest .
14+
15+
image/push: image
16+
docker push jjtimmons/repp:latest
1417

1518
.PHONY: test
1619
test:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ See [the docs](https://lattice-automation.github.io/repp/) or `--help` for any c
2929
Run `repp` via Docker:
3030

3131
```sh
32-
alias repp="docker run -i --rm -v repp:/root/.repp jjtimmons/repp:latest"
32+
mkdir -p $HOME/.repp
33+
alias repp="docker run -i --rm --mount type=bind,src=$HOME/.repp,dst=/root/.repp jjtimmons/repp:latest"
3334
repp --help
3435
```
3536

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ See [the docs](https://lattice-automation.github.io/repp/) or `--help` for any c
2929
Run `repp` via Docker:
3030

3131
```sh
32-
# alias repp="docker run -i --rm -v repp:/root/.repp -i jjtimmons/repp:latest"
33-
alias repp="docker run -i --rm -v repp:/root/.repp repp:latest"
32+
mkdir -p $HOME/.repp
33+
alias repp="docker run -i --rm --mount type=bind,src=$HOME/.repp,dst=/root/.repp jjtimmons/repp:latest"
3434
repp --help
3535
```
3636

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/mitchellh/mapstructure v1.5.0
99
github.com/spf13/cobra v1.4.0
1010
github.com/spf13/viper v1.12.0
11+
go.uber.org/zap v1.21.0
1112
gopkg.in/yaml.v2 v2.4.0
1213
)
1314

@@ -28,7 +29,6 @@ require (
2829
github.com/subosito/gotenv v1.3.0 // indirect
2930
go.uber.org/atomic v1.9.0 // indirect
3031
go.uber.org/multierr v1.8.0 // indirect
31-
go.uber.org/zap v1.21.0 // indirect
3232
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
3333
golang.org/x/text v0.3.7 // indirect
3434
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect

0 commit comments

Comments
 (0)