For this deployment on a testing environment, we decided to split the actors into two contexts. The context with the business logic and the main components of the system is to be run on a
The
gradlew -b build.gradle.kts distTar
The
FROM openjdk:8-jre-alpine EXPOSE 8101 ADD ./build/distributions/*.tar / WORKDIR /carparking.webgui-1.0/bin CMD ["sh", "carparking.webgui"] # docker build --rm -t client-carparking-webgui . # docker save -o client_carparking_webgui.tar client-carparking-webgui # docker load -i client_carparking_webgui.tar
Since they are deployed on the same node, we can leverage a single
services: client: image: client-carparking-webgui ports: - 8100:8100 manager: image: manager-carparking-webgui ports: - 8101:8101 # docker-compose -f carparking_webgui.yaml up
A
Since the difficulty to make
distZip { into(project.name+"-1.0/bin") { from '.' include 'sonar.c' include 'sonar' include '*.pl' include 'parkingMap.bin' include 'parkingMap.txt' include 'Californium.properties' } } # gradle -b build2021.gradle distZip
We created a testing file as requested by the client, assuming that the temperature is and remains ok, the fan is off, INDOOR and OUTDOOR are free and some parking slots are occupied since the beginning. We need to simulate on the system an