2019-11-29 23:30:48 +08:00
|
|
|
# Testing with Docker
|
|
|
|
|
|
|
|
Before running the tests with docker, you'll need Docker installed and the docker image downloaded.
|
2018-04-27 19:05:52 +08:00
|
|
|
|
|
|
|
## Install docker
|
2019-11-29 23:30:48 +08:00
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo apt install docker.io && sudo usermod -aG docker $(whoami)
|
|
|
|
```
|
2018-04-27 19:05:52 +08:00
|
|
|
|
|
|
|
## Download image
|
2019-11-29 23:30:48 +08:00
|
|
|
|
|
|
|
```shell
|
|
|
|
docker pull carto/IMAGE
|
|
|
|
```
|
2018-05-03 23:38:54 +08:00
|
|
|
|
|
|
|
## Carto account
|
2019-11-29 23:30:48 +08:00
|
|
|
|
|
|
|
* `https://hub.docker.com/r/carto/`
|
2018-04-27 19:05:52 +08:00
|
|
|
|
|
|
|
## Update image
|
2019-11-29 23:30:48 +08:00
|
|
|
|
2019-12-01 20:04:31 +08:00
|
|
|
* Edit the docker image file
|
2019-11-29 23:30:48 +08:00
|
|
|
* Build image:
|
|
|
|
* `docker build -t carto/IMAGE -f docker/DOCKER_FILE docker/`
|
|
|
|
|
|
|
|
* Upload to docker hub:
|
|
|
|
* Login into docker hub:
|
|
|
|
* `docker login`
|
|
|
|
* Create tag:
|
|
|
|
* `docker tag carto/IMAGE carto/IMAGE`
|
|
|
|
* Upload:
|
|
|
|
* `docker push carto/IMAGE`
|