Skip to content

Commit 793fef4

Browse files
authored
Merge pull request #26 from UCEAP/dx/secrets
Support secrets handling
2 parents b84202d + 5cddea3 commit 793fef4

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

Dockerfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,22 @@ RUN echo 'xdebug.log_level = 0' >> /usr/local/etc/php/conf.d/xdebug.ini
3636
RUN sed -i 's/Listen\s*80$/# Listen 80/' /etc/apache2/ports.conf
3737

3838
# Install terminus
39-
RUN curl -L https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar --output /usr/local/bin/terminus
40-
RUN chmod +x /usr/local/bin/terminus
39+
RUN curl -L https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar --output /usr/local/bin/terminus \
40+
&& chmod +x /usr/local/bin/terminus \
41+
&& terminus self:plugin:install terminus-secrets-manager-plugin
42+
43+
# Install 1password-cli, see https://developer.1password.com/docs/cli/get-started/
44+
RUN curl -sS https://downloads.1password.com/linux/keys/1password.asc \
45+
| gpg --dearmor --output /usr/share/keyrings/1password-archive-keyring.gpg \
46+
&& 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" \
47+
| tee /etc/apt/sources.list.d/1password.list \
48+
&& mkdir -p /etc/debsig/policies/AC2D62742012EA22/ \
49+
&& curl -sS https://downloads.1password.com/linux/debian/debsig/1password.pol \
50+
| tee /etc/debsig/policies/AC2D62742012EA22/1password.pol \
51+
&& mkdir -p /usr/share/debsig/keyrings/AC2D62742012EA22 \
52+
&& curl -sS https://downloads.1password.com/linux/keys/1password.asc \
53+
| gpg --dearmor --output /usr/share/debsig/keyrings/AC2D62742012EA22/debsig.gpg \
54+
&& apt update && apt install 1password-cli
4155

4256
# Install atuin
4357
#

0 commit comments

Comments
 (0)