-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ncheneweth] update opw installation method
Signed-off-by: Nic Cheneweth <[email protected]>
- Loading branch information
1 parent
36d8bff
commit 176c130
Showing
3 changed files
with
27 additions
and
6 deletions.
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 |
---|---|---|
|
@@ -12,9 +12,11 @@ ENV PATH=/home/circleci/bin:/home/circleci/.local/bin:$PATH \ | |
ENV USER=circleci | ||
SHELL ["/bin/ash", "-o", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL3003,DL3004,DL3018 | ||
# hadolint ignore=DL3003,DL3004,DL4001 | ||
RUN apk add --no-cache \ | ||
sudo \ | ||
wget \ | ||
curl \ | ||
libintl \ | ||
bash && \ | ||
apk --no-cache add --virtual build-dependencies \ | ||
|
@@ -31,7 +33,13 @@ RUN apk add --no-cache \ | |
make && make install && \ | ||
cd .. && rm -r musl-locales-master && \ | ||
apk add --no-cache --repository https://alpine.secrethub.io/alpine/edge/main --allow-untrusted \ | ||
secrethub-cli && \ | ||
secrethub-cli==0.44.0-r0 && \ | ||
sudo bash -c "echo https://downloads.1password.com/linux/alpinelinux/stable/ >> /etc/apk/repositories" && \ | ||
sudo bash -c "wget https://downloads.1password.com/linux/keys/alpinelinux/[email protected] -P /etc/apk/keys" && \ | ||
sudo apk update && sudo apk add --no-cache 1password-cli && \ | ||
curl -SLO https://github.com/ThoughtWorks-DPS/opw/releases/latest/download/opw_Linux_x86_64.tar.gz && \ | ||
tar -xzf opw_Linux_x86_64.tar.gz && \ | ||
sudo mv opw /usr/local/bin/opw && \ | ||
addgroup --gid 3434 -S $USER && \ | ||
adduser --uid 3434 --ingroup $USER --disabled-password $USER && \ | ||
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER && \ | ||
|
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
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 |
---|---|---|
|
@@ -5,14 +5,27 @@ LABEL maintainer=<[email protected]> | |
ENV DEBIAN_FRONTEND=noninteractive | ||
SHELL ["/bin/bash", "-exo", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL4001,DL3004,DL3047, DL3008 | ||
# hadolint ignore=DL4001,DL3004,DL3047 | ||
RUN echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90circleci && \ | ||
echo 'DPkg::Options "--force-confnew";' >> /etc/apt/apt.conf.d/90circleci && \ | ||
echo "deb [trusted=yes] https://apt.secrethub.io stable main" > /etc/apt/sources.list.d/secrethub.sources.list && apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
sudo \ | ||
locales \ | ||
curl \ | ||
wget \ | ||
gnupg \ | ||
secrethub-cli && \ | ||
curl -sS https://downloads.1password.com/linux/keys/1password.asc | sudo gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg && \ | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/$(dpkg --print-architecture) stable main" | sudo tee /etc/apt/sources.list.d/1password.list && \ | ||
sudo mkdir -p /etc/debsig/policies/AC2D62742012EA22/ && \ | ||
curl -sS https://downloads.1password.com/linux/debian/debsig/1password.pol | sudo tee /etc/debsig/policies/AC2D62742012EA22/1password.pol && \ | ||
sudo mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22 && \ | ||
curl -sS https://downloads.1password.com/linux/keys/1password.asc | sudo gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg && \ | ||
sudo apt update && sudo apt install 1password-cli && \ | ||
curl -SLO https://github.com/ThoughtWorks-DPS/opw/releases/latest/download/opw_Linux_x86_64.tar.gz && \ | ||
tar -xzf opw_Linux_x86_64.tar.gz && \ | ||
sudo mv opw /usr/local/bin/opw && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen && \ | ||
|