Skip to content

Commit 0c2ef64

Browse files
committed
Install certificates in orca if provided.
1 parent 36e2668 commit 0c2ef64

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

deployment/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ RUN apt-get update -y && apt-get install -y subversion && \
9090
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
9191
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' && \
9292
apt-get update -y && \
93-
apt-get install -y google-chrome-stable xvfb poppler-utils git && \
93+
apt-get install -y google-chrome-stable xvfb poppler-utils git libnss3-tools && \
9494
rm -rf /var/lib/apt/lists/* && apt-get clean
9595

9696
COPY package.json /var/www/image-exporter/

deployment/run_server

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
fc-cache -v /usr/share/fonts/user
44

5+
# Install certificates present in data directory
6+
if [[ -d /data/ssl/ ]]; then
7+
echo "Adding custom certificates..."
8+
for CERT in `ls /data/ssl/*.crt`; do
9+
echo "Adding:" $i
10+
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n $CERT -i $CERT
11+
done
12+
fi
13+
514
BUILD_DIR=/var/www/image-exporter/build
615
if [[ -n "${PLOTLY_JS_SRC}" ]]; then
716
# Fetch plotly js bundle and save it locally:

0 commit comments

Comments
 (0)