diff --git a/7z/Dockerfile b/7z/Dockerfile index ffe9749..4eda486 100644 --- a/7z/Dockerfile +++ b/7z/Dockerfile @@ -1,10 +1,7 @@ FROM alpine:edge LABEL maintainer="Backplane BV " -RUN set -x \ - && apk add --no-cache \ - p7zip \ - && true +RUN apk add --no-cache p7zip WORKDIR /work diff --git a/7z/README.md b/7z/README.md index d0111f2..efef05c 100644 --- a/7z/README.md +++ b/7z/README.md @@ -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 ```