@@ -45,3 +45,19 @@ The last command `main.bat` will compile the model and run it in a server contai
__NOTE:__ Autopilot EMAM model works only in _Windows 64 bit_ environment.
The scripts in `script` directory are already adjusted to use _Autopilot_ model. If a new model has to be integrated to the RMI Model server, an implementation of _VehicleModel_ has to be created and adjusted with the _ModelManager_. Additionally, all dependencies of the new model have to be declared in the _library_ or _class-path_ of the RMI Model server.
## Docker
To run the RMI server in docker, first you need to build the docker image with `./docker/build.sh`. This script only does 2 things:
1. Copy the latest rmi-model-server build into ./docker/ in order to prepare the build.
2. Then use ./docker/Dockerfile to build the rmi-model-server docker image.
You can simply replace the `./docker/rmi-model-server-1.0.1-SNAPSHOT.jar` with latest maven build if there are any updates, just remember to update `RMI_VERSION` in the Dockerfile. But if you want to update the `AutopilotAdapter.dll`, you shoudld rebuild it under a linux 64-bit environment by using scripts in `./EMAM-showcase/scripts/linux`. A build from Mac or Windows environment won't work.
After the docker image is built. Run following command to start the RMI server:
```
docker run --name=rmi-server -p 10101:10101 --rm rmi-server