Skip to content

kaarthik21/AlphaQ_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alphaQ_server

TO BUILD THE IMAGES: docker-compose build

TO RUN THE CONTAINERS: docker-compose up -d

TO GET IN alphaq_server CONTAINER WITH INTERACTIVE TERMINAL: docker exec -it alphaq_server bash

TO GET IN mysql_docker CONTAINER WITH INTERACTIVE TERMINAL: docker exec -it mysql_docker bash

Inside alphaq_server container

mv crontab-schedule.txt /var/spool/cron/crontabs/crontab-schedule.txt

./schedule.sh

./attendance.sh (with both y and n options)

./genMoM_1.sh

./getMoM_2.sh

In the host shell

docker cp alphaq_server:/home/Jay_Jay/MoM.txt /tmp/MoM.txt

docker cp /tmp/MoM.txt mysql_docker:/var/lib/mysql-files/MoM.txt

Inside mysql in mysql_docker container, run below commands if permission is denied

CREATE USER 'root'@'localhost' IDENTIFIED BY 'root';

GRANT ALL PRIVILEGES ON {star}.{star} TO 'root'@'localhost' WITH GRANT OPTION;

NOTE : {star} IS REPLACED BY *

CREATE USER 'root'@'%' IDENTIFIED BY 'root';

GRANT ALL PRIVILEGES ON {star}.{star} TO 'root'@'%' WITH GRANT OPTION;

NOTE : {star} IS REPLACED BY *

FLUSH PRIVILEGES;

Inside alphaq_server container

service apache2 start

pip install cryptography

python3 db.py

mv moms.local.conf /etc/apache2/sites-available/moms.local.conf

cd /etc/apache2/sites-available/

a2dissite 000-default.conf

service apache2 reload

a2ensite moms.local.conf

service apache2 reload

echo "127.0.0.1 www.moms.local" >> /etc/hosts

Browse [IP_ADDR of docker]:[port of the container]/config.php to get the MoM login page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published