Giter VIP home page Giter VIP logo

docker-kosmtik's People

Contributors

joxit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-kosmtik's Issues

Building kosmtik Docker image gives error on plugins

When I clone this master and try to build the Docker image as instructed in Readme I get an error when it tries to install the kosmtik plugins (I am especially interested in kosmtik-mbtiles-export). I do understand that this repository is 2 years old already but I hoped that Docker image could still be build.

The error I get is:

`[Core] No usable config file found in /root/.config/kosmtik.yml
[Core] Loading plugin from ../plugins/base-exporters/index.js
[Core] Loading plugin from ../plugins/hash/index.js
[Core] Loading plugin from ../plugins/local-config/index.js
[Core] Loading plugin from ../plugins/datasource-loader/index.js
[Core] Starting installation of kosmtik-mbtiles-export
/opt/kosmtik/node_modules/npm/node_modules/bluebird/js/release/async.js:61
fn = function () { throw arg; };
^

TypeError: Cannot convert undefined or null to object
at /opt/kosmtik/src/back/PluginsManager.js:100:38`

I think this has to do with the version of node. The build script installs node with apt but then you probably get the wrong (too new) version. I changed the script to install nvm and with that older versions of node. But still I get the same error. When I go below v6 of node I get a different error:

npm ERR! Linux 4.15.0-46-generic npm ERR! argv "/root/.nvm/versions/node/v5.12.0/bin/node" "/root/.nvm/versions/node/v5.12.0/bin/npm" "install" "--production" npm ERR! node v5.12.0 npm ERR! npm v3.8.6 npm ERR! code ELIFECYCLE

When I use the already build image the plugin seems to be installed but when I use it for mbtiles export I get the following error:

water.mss:252:6 The font 'Noto Sans Italic, Noto Sans Regular, Noto Sans CJK JP Regular, Noto Sans Adlam Regular, Noto Sans Adlam Unjoined Regular, Noto Sans Balinese Regular, Noto Sans Bamum Regular, Noto Sans Batak Regular, Noto Sans Bengali UI Regular, Noto Sans Buginese Regular, Noto Sans Buhid Regular, Noto Sans Canadian Aboriginal Regular, Noto Sans Chakma Regular, Noto Sans Cham Regular, Noto Sans Cherokee Regular, Noto Sans Coptic Regular, Noto Sans Devanagari UI Regular, Noto Sans Ethiopic Regular, Noto Sans Georgian Regular, Noto Sans Gujarati UI Regular, Noto Sans Gurmukhi UI Regular, Noto Sans Hanunoo Regular, Noto Sans Hebrew Regular, Noto Sans Javanese Regular, Noto Sans Kannada UI Regular, Noto Sans Kayah Li Regular, Noto Sans Khmer UI Regular, Noto Sans Lao UI Regular, Noto Sans Lepcha Regular, Noto Sans Limbu Regular, Noto Sans Lisu Regular, Noto Sans Malayalam UI Regular, Noto Sans Mandaic Regular, Noto Sans Mongolian Regular, Noto Sans Myanmar UI Regular, Noto Sans New Tai Lue Regular, Noto Sans NKo Regular, Noto Sans Ol Chiki Regular, Noto Sans Oriya UI Regular, Noto Sans Osage Regular, Noto Sans Osmanya Regular, Noto Sans Samaritan Regular, Noto Sans Saurashtra Regular, Noto Sans Shavian Regular, Noto Sans Sinhala UI Regular, Noto Sans Sinhala Regular, Noto Sans Sundanese Regular, Noto Sans Symbols Regular, Noto Sans Symbols2 Regular, Noto Sans Syriac Eastern Regular, Noto Sans Tagalog Regular, Noto Sans Tagbanwa Regular, Noto Sans Tai Le Regular, Noto Sans Tai Tham Regular, Noto Sans Tai Viet Regular, Noto Sans Tamil UI Regular, Noto Sans Telugu UI Regular, Noto Sans Thaana Regular, Noto Sans Thai UI Regular, Noto Sans Tibetan Regular, Noto Sans Tifinagh Regular, Noto Sans Vai Regular, Noto Sans Yi Regular, Noto Sans Arabic UI Regular, Noto Emoji Regular, Noto Naskh Arabic UI Regular, DejaVu Sans Book, HanaMinA Regular, HanaMinB Regular, Unifont Medium, unifont Medium, Unifont Upper Medium' (specified as text-face-name) is not a known font on your system, please provide an existing font face name. at Object.env.error (/opt/kosmtik/node_modules/carto/lib/carto/parser.js:249:55) at Rule.tree.Rule.toXML (/opt/kosmtik/node_modules/carto/lib/carto/tree/rule.js:98:28) at Definition.tree.Definition.symbolizersToXML (/opt/kosmtik/node_modules/carto/lib/carto/tree/definition.js:145:39) at Definition.tree.Definition.toXML (/opt/kosmtik/node_modules/carto/lib/carto/tree/definition.js:218:33) at /opt/kosmtik/node_modules/carto/lib/carto/tree/style.js:40:27 at Array.map (native) at Object.tree.StyleXML (/opt/kosmtik/node_modules/carto/lib/carto/tree/style.js:39:29) at Renderer.render (/opt/kosmtik/node_modules/carto/lib/carto/renderer.js:180:43) at Carto.render (/opt/kosmtik/src/back/renderer/Carto.js:20:45) at Project.render (/opt/kosmtik/src/back/Project.js:58:25)

I will try to install these fonts (shouldn't they already be on the image?)

Do you (I only see a single maintainer) have any suggestions?

Docker Hub seems to muck up the README.md

screen shot 2019-02-04 at 11 41 11 pm

The example command on docker hub is missing </opt/project/project.(mml|yml)> that's in the markdown (which shows up fine on github). As much as I'd like to admit that I figured this out really quickly, it took me an embarrassingly long time.

It looks like Docker Hub is trying to remove xml tags or something? You may want to change the "<" to "&lt;" and ">" to "&gt;"?

Missing plugins

Hi,

I'm not sure, if I'm using something wrong, but after pull and start, it seems like there are missing some plugins in the container?

docker run -it -p 6789:6789 -v $(pwd):/opt/project --link trusting_kapitsa:postgres-osm     -e USER_ID=1000     joxit/kosmtik bash
root@64034dbf9c8a:/opt/project# kosmtik -h
[Core] Loading config from /root/.config/kosmtik.yml
[Core] Loading plugin from ../plugins/base-exporters/index.js
[Core] Loading plugin from ../plugins/hash/index.js
[Core] Loading plugin from ../plugins/local-config/index.js
[Core] Loading plugin from ../plugins/datasource-loader/index.js
[Core] Unable to load plugin kosmtik-tiles-export MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-tiles-export
[Core] Unable to load plugin kosmtik-fetch-remote MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-fetch-remote
[Core] Unable to load plugin kosmtik-overlay MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-overlay
[Core] Unable to load plugin kosmtik-deploy MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-deploy
[Core] Unable to load plugin kosmtik-overpass-layer MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-overpass-layer
[Core] Unable to load plugin kosmtik-map-compare MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-map-compare
[Core] Unable to load plugin kosmtik-mapnik-reference MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-mapnik-reference
[Core] Unable to load plugin kosmtik-osm-data-overlay MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-osm-data-overlay
[Core] Unable to load plugin kosmtik-mbtiles-export MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-mbtiles-export
[Core] Unable to load plugin kosmtik-place-search MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-place-search
[Core] Unable to load plugin kosmtik-geojson-overlay MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-geojson-overlay
[Core] Unable to load plugin kosmtik-open-in-josm MODULE_NOT_FOUND
[Core] → try: node index.js plugins --install kosmtik-open-in-josm

Usage: /usr/bin/node index.js <command> [options]

command     
  serve       Run the server
  plugins     Manage plugins
  export      Export a project

Options:
   --port             Port to listen on.  [6789]
   --host             Host to listen on.  [127.0.0.1]
   --mapnik-version   Optional mapnik reference version to be passed to Carto  [3.0.20]
   --proxy            Optional proxy to use when doing http requests
   --keep-cache       Do not flush cached metatiles on project load
   --renderer         Specify a renderer by its name, carto is the default.  [carto]
   --metatile         Override mml metatile setting [Default: mml setting]
   --localconfig      Path to local config file [Default: {projectpath}/localconfig.json|.js]

root@64034dbf9c8a:/opt/project# ls

I was able to fix it in the running container by executing the provided commands in try.
Maybe the last build on dockerhub went wrong?

Font missing

Need upgrade the Docker file to include this fonts, possible solution
https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#installation-on-ubuntudebian
placenames.mss:106:4 The font 'Noto Sans UI Regular, Noto Sans CJK JP Regular, Noto Sans Armenian Regular, Noto Sans Balinese Regular, Noto Sans Bamum Regular, Noto Sans Batak Regular, Noto Sans Bengali UI Regular, Noto Sans Buginese Regular, Noto Sans Buhid Regular, Noto Sans Canadian Aboriginal Regular, Noto Sans Cham Regular, Noto Sans Cherokee Regular, Noto Sans Coptic Regular, Noto Sans Devanagari UI Regular, Noto Sans Devanagari Regular, Noto Sans Ethiopic Regular, Noto Sans Georgian Regular, Noto Sans Gujarati UI Regular, Noto Sans Gujarati Regular, Noto Sans Gurmukhi UI Regular, Noto Sans Hanunoo Regular, Noto Sans Hebrew Regular, Noto Sans Javanese Regular, Noto Sans Kannada UI Regular, Noto Sans Kayah Li Regular, Noto Sans Khmer UI Regular, Noto Sans Lao UI Regular, Noto Sans Lepcha Regular, Noto Sans Limbu Regular, Noto Sans Lisu Regular, Noto Sans Malayalam UI Regular, Noto Sans Mandaic Regular, Noto Sans Mongolian Regular, Noto Sans Myanmar UI Regular, Noto Sans New Tai Lue Regular, Noto Sans NKo Regular, Noto Sans Ol Chiki Regular, Noto Sans Oriya UI Regular, Noto Sans Oriya Regular, Noto Sans Osmanya Regular, Noto Sans Samaritan Regular, Noto Sans Saurashtra Regular, Noto Sans Shavian Regular, Noto Sans Sinhala Regular, Noto Sans Sundanese Regular, Noto Sans Symbols Regular, Noto Sans Syriac Eastern Regular, Noto Sans Syriac Estrangela Regular, Noto Sans Syriac Western Regular, Noto Sans Tagalog Regular, Noto Sans Tagbanwa Regular, Noto Sans Tai Le Regular, Noto Sans Tai Tham Regular, Noto Sans Tai Viet Regular, Noto Sans Tamil UI Regular, Noto Sans Telugu UI Regular, Noto Sans Thaana Regular, Noto Sans Thai UI Regular, Noto Sans Tibetan Regular, Noto Sans Tifinagh Regular, Noto Sans Vai Regular, Noto Sans Yi Regular, Noto Naskh Arabic UI Regular, Noto Emoji Regular, DejaVu Sans Book, HanaMinA Regular, HanaMinB Regular, Unifont Medium, unifont Medium, Unifont Upper Medium' (specified as text-face-name) is not a known font on your system, please provide an existing font face name.

kosmtik start but cant see nothing

Hi, first of all, great job, but I'm facing an error when running the dock container. I'll describe what I'm doing

  • i pull the docker coupler image from docker dock dock / joxit / kosmtik```
  • I have a local postgres installation with potgis and data from my data.osm.pbf file already imported.
  • I create my `` `localconfig.js``` file and I define the following
    (I.e.
    exports.LocalConfig = function (localizer, project) {
    localizer.where ('Layer') if ({'Datasource.type': 'postgis'}). then ({
    'Datasource.dbname': 'gis',
    'Datasource.password': '',
    'Datasource.user': 'postgres',
    'Datasource.host': ''
    });
    };
    (I.e.
  • Then I run the following command in console according to example
    (I.e.
    docker run -d
    -p 6789: 6789
    -v / path / to / my / project: / opt / project
    -and USER_ID = 1000
    joxit / kosmtik
    kosmtik serves /opt/project/project.mml --host 0.0.0.0
    (I.e.

and when I check my browser in the address http://127.0.0.1:6789 nothing comes out
what is the problem, I am doing something wrong, it is by the local database. Could help me

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.