Skip to content

Commit

Permalink
Install certificates in orca if provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzzz committed Dec 10, 2018
1 parent 36e2668 commit 46ae8ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RUN apt-get update -y && apt-get install -y subversion && \
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' && \
apt-get update -y && \
apt-get install -y google-chrome-stable xvfb poppler-utils git && \
apt-get install -y google-chrome-stable xvfb poppler-utils git libnss3-tools && \
rm -rf /var/lib/apt/lists/* && apt-get clean

COPY package.json /var/www/image-exporter/
Expand Down
9 changes: 9 additions & 0 deletions deployment/run_server
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

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

# Install certificates present in data directory
if [[ -d /data/ssl/ ]]; then
echo "Adding custom certificates..."
for CERT in `ls /data/ssl/*.crt`; do
echo "Adding:" $i
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n $CERT -i $CERT
done
fi

BUILD_DIR=/var/www/image-exporter/build
if [[ -n "${PLOTLY_JS_SRC}" ]]; then
# Fetch plotly js bundle and save it locally:
Expand Down

0 comments on commit 46ae8ec

Please sign in to comment.