In this project, we take several integer numbers from stdin, calculate mathematical properties of the numbers and print them in stdout, text file and image. The text file and the image are stored in Docker volume.
- Download files from the repository:
git clone https://github.com/NikitaVasilevN/FSE_Project.git
- Change your directory to the one with downloaded repository
cd FSE_Project
- Build the Docker image from the Dockerfile:
docker build -t team10 .
- Launch the container
docker run -it --rm -v team10_volume:/calc_n_draw team10
- Follow the instructions
- Results are stored in files
results.txt
andresults.jpg
in Docker volumeteam10_volume
- Run an empty ubuntu:23.04 container:
docker run -it ubuntu:23.04
apt update && apt install git
- Clone the repo
git clone https://github.com/NikitaVasilevN/FSE_Project.git
cd FSE_Project
- Make the files executables
chmod +x prereqs.sh
chmod +x build.sh
chmod +x run_tests.sh
- Run the scripts:
. prereqs.sh
. build.sh
. run_tests.sh
- Run the app:
build/CalcAndDraw
-
Source code of the project is placed in the file
project_with_images.cpp
. We use math functions from standart libraries, but if you will need more sophisticated ones, you should add a new library with a desired functionality. In that case you will need to build desired libraries and add them toCMakeLists.txt
to make it possible to include them into your source file. -
We use library
OpenCV
for visualization. If you would like to change functionality, probably you will need to change list of packages of OpenCV that are built. Other option is to remove option-DBUILD_LIST=<modules>
inbuild.sh
and include the whole opencv library, but building opencv takes a lot of time. -
Results of calculations are stored in Docker volume "team10_volume".