Skip to content

Commit

Permalink
Merge pull request Narigo#42 from Narigo/fix-docker-build-commands
Browse files Browse the repository at this point in the history
Update Readme how to build and alias containered version of keepass-diff
  • Loading branch information
Narigo authored Jan 22, 2022
2 parents 8dedfe4 + 3f9b328 commit c843e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
docs/screencast.mov
target/
.DS_Store
container_image_id
tmp-tests/
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,21 @@ If you don't have the Rust toolchain installed, there is an alternative installa
The following commands assume `docker` for building and running the container, but it should be possible to replace it with `podman` and maybe other engines. Please check whether the options are available.

To build the container, run:

```
docker build -f Containerfile.install --iidfile container_image_id .
docker build -f Containerfile.install -t "keepass-diff:custom-local" .
```

To get the correct alias for your machine to use, run:

```
echo alias keepass-diff="'"docker run -it --rm -v '"'$(pwd)'"':/app:ro '"'$(cat container_image_id)'"'"'"
alias keepass-diff='docker run -it --rm -v "$(pwd)":/app:ro "keepass-diff:custom-local"'
```

This should return an `alias keepass-diff=...` command that you can copy and paste into your `.bashrc` or `.zshrc` file. This will make sure to have keepass-diff available whenever you start a new terminal session. Either start a new shell or run the command in the current terminal once to make it available right away.

With the alias being set up, `keepass-diff` should be available. Try running:

```
keepass-diff --help
```
Expand Down

0 comments on commit c843e40

Please sign in to comment.