It's a subsystem that provides statistics related to student registration. It includes two functionalities: displaying registration statistics and listing batch files.
The system allows users to view various statistics related to student registration. The following statistics should be shown:
- Number of users: 2
- Number of students registered in AI course: 2
- Number of students registered in Math course: 1
- Number of students registered in Prog course: 1
- Two students are registered with the following data:
- Ahmed, 1, Math, AI
- Mohamed, 2, AI, Prog
The system enables users to list all batch files located under the specified path. The following flow describes this functionality:
- The path
/app/data/batch/
is correctly mounted to a specific folder. - The files in this folder are:
- 1_verified.csv
- 2.csv
- 3_verified.csv
- 4.csv
- Run the component.
- The system should display the following information:
- Number of users: 2
- Number of students registered in AI course: 2
- Number of students registered in Math course: 1
- Number of students registered in Prog course: 1
- Number of batch files: 4
- Number of verified batch files: 2
- The assumptions mentioned in the first component requirements are also valid for this functionality.
To ensure the successful building and deployment of the relevant components, a CI/CD pipeline is implemented for the software. The pipeline consists of continuous integration (CI) and continuous deployment (CD) processes for each repository.
The CI process ensures that each repository's component is built successfully. It involves the following steps:
- Set up a CI configuration in the repository to trigger a build process on each commit.
- Configure the build process to compile the source code and run any necessary tests.
- If the build process succeeds, proceed to the CD process.
The CD process pushes the image for the relevant component to Docker Hub. It includes the following steps:
- Set up a CD configuration in the repository to trigger the deployment process upon a successful build.
- Build a Docker image for the component, using the provided Dockerfile.
- Tag the image with the appropriate version, such as
latest
. - Push the image to Docker Hub, using the specified repository and version.
The provided Docker Compose file allows for the deployment of the subsystem components. It defines two services: student-statistics-process
and registration-process
.
- Builds the image from the source code.
- Maps the local folder
/app/data/batch
to the corresponding folder in the Docker container. - Exposes port
80
for accessing the component.
- Builds the image from the source code.
- Maps the local folder
/app/data/batch
to the corresponding folder in the Docker container. - Exposes port
81
for accessing the component.
To run the Docker Compose file and deploy the subsystem, follow these steps:
-
Download the Docker Compose file from the repository.
-
Update the file with the appropriate local paths as indicated.
-
Open a terminal or PowerShell in the directory where the Docker Compose file is located.
-
Run the following command to start the containers:
docker-compose up -d
-
Open another terminal to execute the other component if needed.
-
To execute commands inside a container, run the following command in the terminal:
docker exec -it component-name bash
-
Run the component's main class or entry point inside the container. For example, for the main class
Main
:java Main
By following these steps, you can deploy and utilize the Student Registration Subsystem, incorporating CI/CD practices and Docker containerization concepts.
Contributions to the system are welcome. If you would like to contribute, please follow these steps:
-
Fork the repository on GitHub.
-
Create a new branch for your feature or bug fix.
-
Make the necessary changes in your branch.
-
Test your changes thoroughly.
-
Submit a pull request to the main repository.
-
Provide a clear description of your changes and the problem they solve.
-
Be responsive to any feedback or questions regarding your pull request.
This System was created by a team of four computer science students at Faculty of Computers and Artificial Intelligence Cairo University. The team members are:
- Khaled Ashraf Hanafy Mahmoud - 20190186.
- Kareem Galal Zaki Sayed - 20190383.
- Samah Moustafa Hussien Mahmoud - 20190248.
- Ayatullah Esam El-din Mohamed - 20190123.
-
This System is based on Cloud Computing course at Faculty of Computers and Artificial Intelligence Cairo University. We would like to thank prof. Fatma Omara for his guidance and support throughout this course.
The System is released under the MIT License. You are free to use, modify, and distribute the toolbox in accordance with the terms of this license.