OpenSpeedmonitor on Docker
Of course you can use the OSM as a docker-container. By this you don't have to care about any java-version or grails-version or building your war-file.
Grails supports an embedded Tomcat which is used in this docker-image. This container listens on port 8080, so you have to set docker-port-forwarding if you want to use another port on your host.
You can pass some environment-variables to your osm-container for configuring it:
- OSM_URL: full URL under which your OSM-instance will be reachable, f.e.:
- OSM_ADMIN_USER: name of the admin-user which will be bootstrapped, f.e.:
- OSM_ADMIN_PASSWORD: password of the admin-user which will be bootstrapped, f.e.:
- OSM_ROOT_USER: name of the root-user which will be bootstrapped, f.e.:
- OSM_ROOT_PASSWORD: password of the root-user which will be bootstrapped, f.e.:
- MYSQL_HOST: hostname of your mysql-instance, f.e.:
- MYSQL_DATABASE: name of database on mysql-host, f.e.:
- MYSQL_USER: user-name for accessing mysql-database, f.e.:
- MYSQL_PASSWORD: user-password for mysql-user, f.e.:
Run your own dockerized OSM
In the OSM-git-repo is a docker-compose-file for you placed. This file will ensure there is a mysql-db running which is linked to the OSM-container.
For testing purposes just start this OSM-environment by typing
If you want a long-term OSM-environment please adopt the given docker-compose-file to your infrastructure. Of course you can use this docker-compose-file to boot up your OSM, but you should (seriously) modify the given passwords for security-reasons.
After the bootup, you should reach your OSM-instance under this URL: