Giter Site home page Giter Site logo

datawrapper_docker's Introduction

Datawrapper Docker

Dockerfile and related build scripts for a docker image for datawrapper.

To Pull

docker pull arahayrabedian/datawrapper:latest

To Build

docker build .

To Run

  • export env var DATAWRAPPER_SECURE_AUTH_KEY and expose appropriate ports (-p 0.0.0.0:80:80 if you like).
  • if you'd like some fancier config options, some are available, but look through the various .tpl files to figure them out, will be documented when this is more mature. for example docker run -e DATAWRAPPER_SECURE_AUTH_KEY=slartibartfast -p 0.0.0.0:80:80 arahayrabedian/datawrapper:latest

Caveats

  • Uses @rubensfernando's plugin-embed to allow embedding charts - not native as native is broken.

Limitations

  • currently has an ephemeral on-board sql, this is fine to develop against and such, but is NOT production ready.

How it works

  • A lot of this script has to be deferred to startup due to dynamic configuration based on environment variables, the startup script itself is generated from a template at startup. mind = blown
  • At build time we'll have put everything in place ready for runtime to start up and do the final putting-it-all together parts.

Credits

Thnaks to the people at datawrapper for putting this solution together, I'm bored of dealing with gcharts and other solutions that didn't fit my needs. Special thanks to @rubensfernando for writing the plugin used to re-enable embedding charts (and generating them correctly)

Anti-Credits

The people at datawrapper for (appearing) to fall off the open source trail (which alone is okay, but be open about it), disabling embedding charts and not mentioning it anywhere, and generally ignoring the community that's trying to help them on their repository (see issues and pull requests).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.