---
# System prepended metadata

title: ROTA

---

# Solution: ROTA

[What is Rota Software?](https://www.techslang.com/what-is-rota-software/)


## Timefold (http://apr:8080)

* Install JDK 17+ and Maven 3.9+
* Git clone the timefold-quickstarts repo
```!
git clone https://github.com/TimefoldAI/timefold-quickstarts.git
cd timefold-quickstarts/use-cases/employee-scheduling
```
* Start the application with Maven
```
mvn -version
Apache Maven 3.9.4

mvn quarkus:dev -DdebugHost=0.0.0.0
```
* **Run the packaged application**

```!
//compiling
mvn package

java -jar ./target/quarkus-app/quarkus-run.jar -Dquarkus.http.host=0.0.0.0 &
```
* **Run the application in a container**
  * ssh 192.168.1.226
    * cd /media/
    * ls -l
      ``timefold-solver-quarkus-employee-scheduling-quickstart-1.0-SNAPSHOT.jar``
      ``timefold-solver-quarkus-maintenance-scheduling-quickstart-1.0-SNAPSHOT.jar``

  * Find a proper VM or LXC to run docker images below and access allowed externally.
  ```!
    $ docker run -p 8081:8080 timefold-solver-quarkus-employee-scheduling-quickstart:1.0-SNAPSHOT
  ```
  ```!
    $ docker run -p 8082:8080 timefold-solver-quarkus-maintenance-scheduling-quickstart-1.0-SNAPSHOT.jar
  ```

* **Build docker image**
	* mvn package -Dcontainer
	* docker tag `imageId` timefold-ai/timefold:`version`-`moduleName`
	* export image file - docker save imageName > imageFile.tar

## References

* [Update maven dependencies](https://bootcamptoprod.com/update-maven-dependencies/)
