File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ Use "mock [command] --help" for more information about a command.
114
114
115
115
provided ` /usr/local/bin ` is part of the $PATH environment variable.
116
116
117
- ### Via docker
117
+ ### Using Docker
118
118
+ Pull the image & you are all set
119
119
```
120
120
docker pull ghcr.io/pivotal-gss/mock-data:latest
@@ -143,6 +143,12 @@ provided `/usr/local/bin` is part of the $PATH environment variable.
143
143
```
144
144
docker run -v /tmp/mock:/home/mock mock database -f -a host.docker.internal -u postgres -d demodb
145
145
```
146
+ + **[Optional]** You can also make an alias of the above command, for eg.s alias with `.zshrc`
147
+ ```
148
+ echo alias mock=\"docker run -it -v /tmp/mock:/home/mock ghcr.io/pivotal-gss/mock-data:latest\" >> ~/.zshrc
149
+ source ~/.zshrc
150
+ mock tables -t "public.gardens" --uri="postgres://pg_user:mypassword@myhost:5432/database_name?sslmode=disable"
151
+ ```
146
152
147
153
## Examples
148
154
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ func init() {
222
222
rootCmd .PersistentFlags ().IntVarP (& cmdOptions .Port , "port" , "p" ,
223
223
viper .GetInt ("PGPORT" ), "Port number of the postgres database" )
224
224
rootCmd .PersistentFlags ().StringVar (& cmdOptions .URI , "uri" ,
225
- "" , "Postgres connection URI, eg. postgres://user:pass@host:= port/db?sslmode=disable" )
225
+ "" , "Postgres connection URI, eg. postgres://user:pass@host:port/db?sslmode=disable" )
226
226
rootCmd .PersistentFlags ().StringVarP (& cmdOptions .Hostname , "address" , "a" ,
227
227
viper .GetString ("PGHOSTADDR" ), "Hostname where the postgres database lives" )
228
228
rootCmd .PersistentFlags ().StringVarP (& cmdOptions .Username , "username" , "u" ,
You can’t perform that action at this time.
0 commit comments