Skip to content

Commit 44615aa

Browse files
author
MatthiasEgli-chainsecurity
authored
Set env var in docker command to allow editing
Before, running `gtt edit` or `gtt config` with the docker alias would silently fail. By specifying the editor available inside the docker image, this works now.
1 parent e059f1f commit 44615aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

documentation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ you can use the official [Docker image](https://hub.docker.com/r/kriskbx/gitlab-
6868

6969
```shell
7070
docker run \
71-
--rm -it \
71+
--rm -it -e VISUAL=vi \
7272
-v ~:/root \
7373
kriskbx/gitlab-time-tracker \
7474
--help
@@ -80,7 +80,7 @@ home directory inside the container. If you want to store the config in another
8080

8181
```shell
8282
docker run \
83-
--rm -it \
83+
--rm -it -e VISUAL=vi \
8484
-v /path/to/gtt-config:/root \
8585
kriskbx/gitlab-time-tracker \
8686
--help
@@ -92,7 +92,7 @@ home directory inside the container. If you want to store the config in another
9292
docker volume create gtt-config
9393

9494
docker run \
95-
--rm -it \
95+
--rm -it -e VISUAL=vi \
9696
-v gtt-config:/root \
9797
kriskbx/gitlab-time-tracker \
9898
--help
@@ -101,7 +101,7 @@ docker run \
101101
I highly recommend creating an alias and adding it to your `bashrc`:
102102

103103
```shell
104-
echo "alias gtt='docker run --rm -it -v ~:/root kriskbx/gitlab-time-tracker'" >>~/.bashrc
104+
echo "alias gtt='docker run --rm -it -e VISUAL=vi -v ~:/root kriskbx/gitlab-time-tracker'" >>~/.bashrc
105105
```
106106

107107
Now you can simply write `gtt` instead of the bulky Docker command before. Try it out: `gtt --help`

0 commit comments

Comments
 (0)