A Java based container application implementing Threads and Sockets.
- Install Docker in your host machine (if you wish, it will work with manual javac compiling, but to do it is up to you).
- Run
docker-compose pullto download container images - Execute
docker-compose run mvnto build Java classes and download dependencies. - Run
docker-compose run mvn dependency:copy-dependenciesto copy mysql odbc driver to target. - Launch
docker-compose up serverto start the server. - To start the client, run
docker-compose run --rm clientin a new terminal inside project root. - Play with the application.
Use Maven Standard Directory Layout to organize the app.
This project is in package br.ufscar.
Maven container entrypoint is set to mvn, making easy to run maven commands (e.g: docker-compose run mvn clean install). Default command is install, so running docker-compose run mvn is the same as docker-compose run maven mvn install in case if entrypoint is not set.
A database dump file could be placed on database\data folder. When MySQL container is created, all scripts in that folder will be executed.