Skip to content

Commit

Permalink
tweaks to improve 7z
Browse files Browse the repository at this point in the history
  • Loading branch information
actualben committed Oct 3, 2024
1 parent c5f2751 commit 2c83635
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
5 changes: 1 addition & 4 deletions 7z/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM alpine:edge
LABEL maintainer="Backplane BV <[email protected]>"

RUN set -x \
&& apk add --no-cache \
p7zip \
&& true
RUN apk add --no-cache p7zip

WORKDIR /work

Expand Down
24 changes: 13 additions & 11 deletions 7z/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ The source code for this image is hosted on GitHub in the [backplane/conex repo]

## Usage

### Interactive
### Examples

The following shell function can assist in running this image interactively:
#### Get help

```sh
docker run --rm -it -v "$(pwd):/work" backplane/7z -h
```

#### Create an archive

```sh
docker run --rm -it -v "$(pwd):/work" backplane/7z a archive.7z examplefile.txt
```

p7zip() {
docker run \
--rm \
--interactive \
--tty \
--volume "$(pwd):/work" \
"backplane/7z" \
"$@"
}
#### Extract

```sh
docker run --rm -it --volume "$(pwd):/work" backplane/7z x archive.7z
```

0 comments on commit 2c83635

Please sign in to comment.