Updated Developer Guide: Installing and using Docker (markdown) authored by Rich Turner's avatar Rich Turner
...@@ -148,13 +148,24 @@ Check your Docker host machines with `docker-machine ls`. ...@@ -148,13 +148,24 @@ Check your Docker host machines with `docker-machine ls`.
To prepare your shell environment (variables), run `eval $(docker-machine env openremote)`. Now execute `docker [version|images|ps|...]` to interact with your Docker host. You can login directly on your Docker host machine with `vagrant ssh`. To prepare your shell environment (variables), run `eval $(docker-machine env openremote)`. Now execute `docker [version|images|ps|...]` to interact with your Docker host. You can login directly on your Docker host machine with `vagrant ssh`.
--> -->
## Exporting and importing images ## Building images
The docker images created by boulding the docker-compose files can be exported and send to another machine to import them.
### Export
Run the following command to build the images with the proper tags: Run the following command to build the images with the proper tags:
``` ```
SETUP_WIPE_CLEAN_INSTALL=<true or false> SETUP_ADMIN_PASSWORD=<someSecret> DATE_TAG=<some_date> docker-compose -p your_project -f profile/production.yml build SETUP_WIPE_CLEAN_INSTALL=<true or false> SETUP_ADMIN_PASSWORD=<someSecret> DATE_TAG=<some_date> docker-compose -p your_project -f profile/production.yml build
``` ```
When the enviroment variable `DATE_TAG` is omitted, then the tag `latest` is used for the image. When the environment variable `DATE_TAG` is omitted, then the tag `latest` is used for the image.
## Publishing images
Push images to [Docker Hub](https://hub.docker.com/u/openremote):
```
docker login
docker push openremote/proxy:latest
docker push openremote/postgresql:latest
docker push openremote/keycloak:latest
docker push openremote/manager:latest
docker push openremote/map:latest
```
## Exporting and importing images
The docker images created from the docker-compose files can be exported and sent to another machine to import them.