Improve docker section in docs

This commit is contained in:
Daniel García Aubert
2019-11-29 16:30:48 +01:00
parent 38a556b7d6
commit ef201e6fcf
2 changed files with 36 additions and 19 deletions
+12 -5
View File
@@ -74,18 +74,25 @@ We provide docker images just for testing and continuous integration purposes:
* [`nodejs-xenial-pg1121`](https://hub.docker.com/r/carto/nodejs-xenial-pg1121/tags)
* [`nodejs-xenial-pg101`](https://hub.docker.com/r/carto/nodejs-xenial-pg101/tags)
And useful `npm` scripts:
You can find instructions to install Docker, download, and update images [here](https://github.com/CartoDB/Windshaft-cartodb/blob/master/docker/reference.md).
* Run test in a docker image with a specific Node.js version:
### Useful `npm` scripts
Run test in a docker image with a specific Node.js version:
```shell
$ DOCKER_IMAGE=carto/nodejs-xenial-pg1121:latest NODE_VERSION=10.15.1 npm run test:docker
$ DOCKER_IMAGE=<docker-image-tag> NODE_VERSION=<nodejs-version> npm run test:docker
```
* In case you need to debug:
Where:
* `<docker-image-tag>`: the tag of required docker image, e.g. `carto/nodejs-xenial-pg1121:latest`
* `<nodejs-version>`: the Node.js version, e.g. `10.15.1`
In case you need to debug:
```shell
$ DOCKER_IMAGE=carto/nodejs-xenial-pg1121:latest npm run docker:bash
$ DOCKER_IMAGE=<docker-image-tag> npm run docker:bash
```
## Documentation