Skip to content

Commit

Permalink
use /src as workdir in the docker image and document the binary install
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Feb 7, 2024
1 parent c02ab09 commit 0b5f03c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cross:
docker-build:
ARG from=scratch
FROM $from
WORKDIR /app
WORKDIR /src
COPY +cross/yage /yage
# make sure we have the required dependencies in the image
# can't do that unfortunately because of https://github.com/earthly/earthly/issues/2618
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,26 @@ some interesting use cases:

## Installation

Only available from source for now. More to come soon!
### From binaries

Go to the [releases page](https://github.com/glehmann/yage/releases), download the binary for your
platform, extract it and put the `yage` binary in a directory in your `PATH`.

For example on linux with an intel/amd64 processor, you can run the following commands to install `yage` in `~/.local/bin`:

```sh
curl -ssL https://github.com/glehmann/yage/releases/download/0.2.0/yage-0.2.0-linux-amd64.tar.gz | tar xzf - -C ~/.local/bin --strip-components=1
```

### Docker

`yage` is also available as a [docker image](https://github.com/glehmann/yage/pkgs/container/yage).

Here is how you can use it to encrypt a file in place:

~~~sh
docker run --rm -t -v $(pwd):/src ghcr.io/glehmann/yage:0.2.0 encrypt -iR prod.pub secrets.yaml
~~~

### From source

Expand Down

0 comments on commit 0b5f03c

Please sign in to comment.