Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
#11 Added 1password cli to Dockerfile.
Browse files Browse the repository at this point in the history
frankscholten committed May 20, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 10bb005 commit 4734dc9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
FROM registry.access.redhat.com/ubi7-dev-preview/ubi-minimal:7.6

RUN microdnf install unzip -y

ENV OPERATOR=/usr/local/bin/externalsecret-operator \
USER_UID=1001 \
USER_NAME=externalsecret-operator
USER_NAME=externalsecret-operator \
ONEPASSWORD_CLI_VERSION=v0.5.6-003

# install operator binary
COPY build/_output/bin/externalsecret-operator ${OPERATOR}

COPY build/bin /usr/local/bin
RUN /usr/local/bin/user_setup

# install 1password binary
RUN cd /tmp; curl https://cache.agilebits.com/dist/1P/op/pkg/${ONEPASSWORD_CLI_VERSION}/op_linux_amd64_${ONEPASSWORD_CLI_VERSION}.zip -o op_linux_amd64_${ONEPASSWORD_CLI_VERSION}.zip; unzip op_linux_amd64_${ONEPASSWORD_CLI_VERSION}.zip; mv ./op /usr/local/bin/
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 3FEF9748469ADBE15DA7CA80AC2D62742012EA22
RUN cd /tmp; gpg --verify /tmp/op.sig /usr/local/bin/op || (echo "ERROR: Incorrect GPG signature for 1password op binary." && exit 1)

ENTRYPOINT ["/usr/local/bin/entrypoint"]

USER ${USER_UID}

0 comments on commit 4734dc9

Please sign in to comment.