Merge pull request #417 from smellman/dev-light2
add option to pass npm publish
This commit is contained in:
commit
9e12ee6f8c
3 changed files with 27 additions and 4 deletions
|
@ -33,7 +33,7 @@ Alternatively, you can use the `tileserver-gl-light` package instead, which is p
|
||||||
|
|
||||||
## Using Docker
|
## Using Docker
|
||||||
|
|
||||||
An alternative to npm to start the packed software easier is to install [Docker](http://www.docker.com/) on your computer and then run in the directory with the downloaded MBTiles the command:
|
An alternative to npm to start the packed software easier is to install [Docker](https://www.docker.com/) on your computer and then run in the directory with the downloaded MBTiles the command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl
|
docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl
|
||||||
|
@ -45,4 +45,4 @@ On laptop you can use [Docker Kitematic](https://kitematic.com/) and search "til
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
You can read full documentation of this project at http://tileserver.readthedocs.io/.
|
You can read full documentation of this project at https://tileserver.readthedocs.io/.
|
||||||
|
|
|
@ -11,7 +11,25 @@ Then you can simply run `tileserver-gl-light zurich_switzerland.mbtiles` to star
|
||||||
|
|
||||||
See also `tileserver-gl` which contains server side rendering.
|
See also `tileserver-gl` which contains server side rendering.
|
||||||
|
|
||||||
Prepared vector tiles can be downloaded from [OpenMapTiles](https://openmaptiles.org/downloads/).
|
Prepared vector tiles can be downloaded from [OpenMapTiles.com](https://openmaptiles.com/downloads/planet/).
|
||||||
|
|
||||||
|
## Building docker image
|
||||||
|
|
||||||
|
You can build TileServer GL light image from source.
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/maptiler/tileserver-gl.git
|
||||||
|
cd tileserver-gl
|
||||||
|
node publish.js --no-publish
|
||||||
|
cd light
|
||||||
|
docker build -t tileserver-gl-light .
|
||||||
|
```
|
||||||
|
|
||||||
|
[Download from OpenMapTiles.com](https://openmaptiles.com/downloads/planet/) or [create](https://github.com/openmaptiles/openmaptiles) your vector tile, and run following in directory contains your *.mbtiles.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run --rm -it -v $(pwd):/data -p 8000:80 tileserver-gl-light
|
||||||
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
You can read full documentation of this project at http://tileserver.readthedocs.io/.
|
You can read full documentation of this project at https://tileserver.readthedocs.io/.
|
|
@ -35,6 +35,11 @@ fs.writeFileSync('light/package.json', str);
|
||||||
fs.renameSync('light/README_light.md', 'light/README.md');
|
fs.renameSync('light/README_light.md', 'light/README.md');
|
||||||
fs.renameSync('light/Dockerfile_light', 'light/Dockerfile');
|
fs.renameSync('light/Dockerfile_light', 'light/Dockerfile');
|
||||||
|
|
||||||
|
// for Build tileserver-gl-light docker image, don't publish
|
||||||
|
if (process.argv.length > 2 && process.argv[2] == "--no-publish") {
|
||||||
|
process.exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
/* PUBLISH */
|
/* PUBLISH */
|
||||||
|
|
||||||
// tileserver-gl
|
// tileserver-gl
|
||||||
|
|
Loading…
Reference in a new issue