Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
MatthiasEgli-chainsecurity authored Jun 11, 2019
commit 44615aa7a56521c596bb36ca46ee7af4534afdae
8 changes: 4 additions & 4 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ you can use the official [Docker image](https://hub.docker.com/r/kriskbx/gitlab-

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

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

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

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

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