This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#11 Added 1password cli to Dockerfile.
1 parent
10bb005
commit 4734dc9
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |