Public Repository

Last pushed: a year ago
Short Description
Official Docker repository for Highcharts Export Server
Full Description

The Highcharts Export server docker image

This is a Dockerfile to build a container image for highcharts-export-server.

Git repository

The source files for this project can be found here:

https://github.com/highcharts/highcharts-export-server

If you have any improvements please submit a pull request.

Docker hub repository

The Docker hub build can be found here: https://hub.docker.com/r/highcharts/highcharts-export-server/

Versions

JAVA: 1.8
MAVEN: 3
PHANTOMJS: 2.0

Building from source

To build from source you need to clone the git repo and run docker build:

    git clone https://github.com/highcharts/highcharts-export-server.git
    docker build -t highcharts-export-server:<TAG> .

Pulling from Docker Hub

Pull the image from docker hub rather than downloading the git repo. This prevents you having to build the image on every docker host:

    docker pull highcharts/highcharts-export-server:<TAG>

Running

To simply run the container:

 docker run -p 8080:8080 --rm -it highcharts/highcharts-export-server:<TAG>

You can then browse to http://<DOCKER_HOST>:8080 to view the live export-server. To find your DOCKER_HOST use the docker inspect to get the IP address.

Customize export-server

Choose Highcharts JS version

Within Dockerfile, you can declare the specific version of highcharts you gonna use and specific js modules as well.
For licensing reasons, it's recommended to use the highcharts compiled files from code.highcharts.com/[highcharts-version-you-use]/
and when you use them, you acknowledge that you own highcharts license.

In Dockerfile, find these lines and config the specific modules you gonna include docker container or not.

ENV HIGHCHARTS_VERSION 4.2.5

RUN wget http://code.highcharts.com/$HIGHCHARTS_VERSION/highcharts.js \
&&  wget http://code.highcharts.com/stock/$HIGHCHARTS_VERSION/highstock.js \
&&  wget http://code.highcharts.com/maps/$HIGHCHARTS_VERSION/highmaps.js

Add More Fonts

You can find more fonts online and place them in this location /fonts/usr/share/fonts
Note that you have to be responsible of authorization of using some fonts

Build your own docker image to Dockerhub

Build docker image

        $ docker build -t <DOCKER_HUB>/highcharts-export-prod:424 .

Run it

        $ docker run -p 8080:8080 --rm -it  <DOCKER_HUB>/highcharts-export-prod:424
Docker Pull Command
Owner
highcharts

Comments (0)