Skip to content

Commit 14d1f09

Browse files
committed
Add sop-openpgpjs-v2 (prerelease)
To test OpenPGP.js v6 with profiles
1 parent 819055e commit 14d1f09

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Dockerfile

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ ARG SOP_OPENPGPJS_REPO=https://github.com/openpgpjs/sop-openpgpjs.git
137137

138138
ARG SOP_OPENPGPJS_REF=d35fe10b1818da9047d9a335f93d96bc098a1635
139139

140-
141-
142140
RUN mkdir ${SOP_OPENPGPJS_DIR}
143141

144142
RUN git clone ${SOP_OPENPGPJS_REPO} ${SOP_OPENPGPJS_DIR}
@@ -153,8 +151,28 @@ ENV PATH=${SOP_OPENPGPJS_DIR}:${PATH}
153151

154152
ENV SOP_OPENPGPJS=${SOP_OPENPGPJS_DIR}/sop-openpgp
155153

156-
# Install RNP
154+
# Install sop-openpgpjs with v6 support
155+
ENV SOP_OPENPGPJS_V2_DIR=/sop-openpgpjs-v2
156+
157+
ARG SOP_OPENPGPJS_V2_REPO=https://github.com/openpgpjs/sop-openpgpjs.git
158+
159+
ARG SOP_OPENPGPJS_V2_TAG=v2.0.0-0
160+
161+
RUN mkdir ${SOP_OPENPGPJS_V2_DIR}
162+
163+
RUN git clone ${SOP_OPENPGPJS_V2_REPO} ${SOP_OPENPGPJS_V2_DIR}
157164

165+
WORKDIR ${SOP_OPENPGPJS_V2_DIR}
166+
167+
RUN git checkout tags/${SOP_OPENPGPJS_V2_TAG}
168+
169+
RUN npm install
170+
171+
ENV PATH=${SOP_OPENPGPJS_V2_DIR}:${PATH}
172+
173+
ENV SOP_OPENPGPJS_V2=${SOP_OPENPGPJS_V2_DIR}/sop-openpgp
174+
175+
# Install RNP
158176
RUN apt update && apt install -y cmake libbz2-dev zlib1g-dev libjson-c-dev build-essential python3 python-is-python3
159177

160178
ENV BOTAN_DIR=/botan

0 commit comments

Comments
 (0)