Hi guys,
I have a similar setup as joedayz, actually I was following his blog to dockerize highchart-export-server, but I get the message:
Export Server not configured! Please complete the configuration by running node build.js in the export server root. If you installed by running npm install -g highcharts-export-server and declined the license argument, you need to re-install to confirm from dockerized Highcharts Export Server
I paste below my dockerfile, which is similar:
FROM node:carbon
ENV ACCEPT_HIGHCHARTS_LICENSE="1"
ENV HIGHCHARTS_USE_STYLED="1"
ENV HIGHCHARTS_USE_MAPS="1"
ENV HIGHCHARTS_USE_GANTT="1"
ENV HIGHCHARTS_VERSION="10.3.3"
ENV OPENSSL_CONF=/dev/null
#RUN npm install highcharts-export-server -g --unsafe-perm
COPY ./node-export-server /node-export-server
RUN cd node-export-server && npm install && npm link
RUN node /usr/local/lib/node_modules/highcharts-export-server/build.js
WORKDIR /node-export-server
RUN node build.js
WORKDIR /usr/share/fonts/truetype
ADD fonts/OpenSans-Regular.ttf OpenSans-Regular.ttf
ADD fonts/OpenSans-Light.ttf OpenSans-Light.ttf
ADD fonts/OpenSans-Semibold.ttf OpenSans-Semibold.ttf
ADD fonts/OpenSans-Bold.ttf OpenSans-Bold.ttf
ADD fonts/OpenSans-ExtraBold.ttf OpenSans-ExtraBold.ttf
ADD fonts/OpenSans-Italic.ttf OpenSans-Italic.ttf
ADD fonts/OpenSans-LightItalic.ttf OpenSans-LightItalic.ttf
ADD fonts/OpenSans-BoldItalic.ttf OpenSans-BoldItalic.ttf
ADD fonts/OpenSans-SemiboldItalic.ttf OpenSans-SemiboldItalic.ttf
ADD fonts/OpenSans-ExtraBoldItalic.ttf OpenSans-ExtraBoldItalic.ttf
COPY ./api /api
COPY start.sh /api/start.sh
WORKDIR /api
RUN npm install && chmod +x ./start.sh
EXPOSE 8080
CMD ["bash", "./start.sh"]
My start.sh is:
#!/bin/bash
export ACCEPT_HIGHCHARTS_LICENSE=yes
export HIGHCHARTS_VERSION=10.3.3
export HIGHCHARTS_USE_STYLED=true
export HIGHCHARTS_USE_MAPS=true
export HIGHCHARTS_USE_GANTT=true
export HIGHCHARTS_MOMENT=true
export HIGHCHARTS_CDN=
https://code.highcharts.com/
# Start the first process
node /node-export-server/lib/index.js &
#nodemon --inspect=0.0.0.0 index.js
# Start the second process
#cd ../node-export-server && npm start
highcharts-export-server --enableServer 1 --port 8080 --logLevel 4
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?
and I have no clue why I am getting that Export Server not configured! message.
I am using version 2.0.16 from highcharts-export-server. I have also applied the workaround mentioned by modifying default value of agree.default to 'yes' (in node-export-server/build.js file in the "schema" variable)
Do you maybe know why I get that message?
Thank you very much for your help.
Kind regards,
Sergio