Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

Here is an unofficial Dockerfile for the [1Password command-line tool][ophomepage].

It is available on [docker hub][dockerhubpage] based on [Debian][debianhubpage] and using the last available release from the official [1Password CLI download page][opdlpage].
It is available on [docker hub][dockerhubpage] based on [Debian][debianhubpage] and [Alpine][alpinehubpage] using the last available release from the official [1Password CLI download page][opdlpage].

## Changelog

- 2022-03-30 Upgrading 1Password CLI to 2.0.0
- 2020-04-01 Upgrading 1Password CLI to 0.9.4
- 2020-04-01 Upgrading 1Password CLI to 0.9.3
- 2020-02-29 Upgrading 1Password CLI to 0.9.2
Expand Down Expand Up @@ -38,8 +39,8 @@ Add this line to you `.bashrc`:

then just run `op` like you would with a standard install (without docker) from a new bash session.

[ophomepage]: https://support.1password.com/command-line-getting-started "1Password command-line tool"
[opdlpage]: https://app-updates.agilebits.com/product_history/CLI "1Password CLI downloads"
[ophomepage]: https://developer.1password.com/docs/cli/get-started "1Password command-line tool"
[opdlpage]: https://app-updates.agilebits.com/product_history/CLI2 "1Password CLI downloads"
[dockerhubpage]: https://hub.docker.com/r/tophfr/op "1Password CLI (op) hub page"
[debianhubpage]: https://hub.docker.com/_/debian "Docker Official Images hub page"

[alpinehubpage]: https://hub.docker.com/_/alpine "Docker Official Images hub page"
6 changes: 3 additions & 3 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM alpine:3.11
FROM alpine:3.15

ENV OP_VERSION 0.9.4
ENV OP_VERSION 2.0.0
RUN apk add --no-cache ca-certificates \
&& apk add --no-cache --virtual .build-deps gnupg \
&& cd /root \
&& wget -O op.zip https://cache.agilebits.com/dist/1P/op/pkg/v$OP_VERSION/op_linux_386_v$OP_VERSION.zip \
&& wget -O op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v$OP_VERSION/op_linux_arm64_v$OP_VERSION.zip \
&& unzip op.zip \
&& gpg --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22 \
&& gpg --verify op.sig op \
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM debian:buster-slim

ENV OP_VERSION 0.9.4
ENV OP_VERSION 2.0.0
RUN buildDeps="curl gnupg dirmngr unzip" \
&& runDeps="ca-certificates" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $runDeps $buildDeps \
&& cd /root \
&& curl -sSL -o op.zip https://cache.agilebits.com/dist/1P/op/pkg/v$OP_VERSION/op_linux_amd64_v$OP_VERSION.zip \
&& curl -sSL -o op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v$OP_VERSION/op_linux_$(dpkg --print-architecture)_v$OP_VERSION.zip \
&& unzip op.zip \
&& gpg --keyserver hkp://keyserver.ubuntu.com --receive-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22 \
&& gpg --verify op.sig op \
Expand Down