Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
898f44b
all
Feb 8, 2025
8e96365
Update pom.xml
devops0014 Feb 8, 2025
b893ba8
all
Feb 8, 2025
e22dd9c
Create compose.yml
devops0014 Feb 8, 2025
ed35b53
Update compose.yml
devops0014 Feb 9, 2025
4375613
Update compose.yml
devops0014 Feb 9, 2025
97264a8
Update compose.yml
devops0014 Feb 9, 2025
a8e3cd1
Update compose.yml
devops0014 Apr 25, 2025
9beb2a0
Update compose.yml
devops0014 Apr 25, 2025
8609ef5
Update compose.yml
devops0014 Apr 25, 2025
2186429
Update compose.yml
devops0014 Apr 25, 2025
5fd3260
Update compose.yml
devops0014 Apr 25, 2025
a215d6d
Update compose.yml
devops0014 Apr 25, 2025
c65fabc
Update compose.yml
devops0014 Apr 25, 2025
cfd5265
Update compose.yml
devops0014 May 12, 2025
a98d1b2
Update compose.yml
devops0014 May 12, 2025
cf87059
Update compose.yml
devops0014 May 12, 2025
c1773ca
Create app-deployment.yml
devops0014 Jun 15, 2025
905e1fb
Create db-deployment.yml
devops0014 Jun 15, 2025
65c7505
Update app-deployment.yml
devops0014 Jun 15, 2025
2688b81
Update db-deployment.yml
devops0014 Jun 15, 2025
e0dcf06
Update app-deployment.yml
devops0014 Jun 15, 2025
4641065
Update db-deployment.yml
devops0014 Jun 15, 2025
111eee5
Update db-deployment.yml
devops0014 Jun 15, 2025
3ad8c01
Update app-deployment.yml
devops0014 Jun 15, 2025
dec350b
Update db-deployment.yml
devops0014 Jun 15, 2025
4703118
Update app-deployment.yml
devops0014 Jun 15, 2025
6eb919b
Update db-deployment.yml
devops0014 Jun 15, 2025
2dfca5e
Update app-deployment.yml
devops0014 Jun 15, 2025
051ddfa
Update app-deployment.yml
devops0014 Oct 31, 2025
e431f69
Update db-deployment.yml
devops0014 Oct 31, 2025
13516e5
Update app-deployment.yml
devops0014 Nov 1, 2025
4b6bd71
Update db-deployment.yml
devops0014 Nov 1, 2025
7460717
this is my first commit
Dec 23, 2025
c08cf90
Update POM file for dependency and plugin changes
ashok898 Jan 4, 2026
9baab9a
Update Docker images and port mappings
ashok898 Jan 5, 2026
a9d583a
Merge branch 'devops0014:main' into project
ashok898 Jan 23, 2026
552907d
Add or update the Azure App Service build and deployment workflow config
ashok898 Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
76 changes: 76 additions & 0 deletions .github/workflows/project_railroot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - railroot

on:
push:
branches:
- project
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read #This is required for actions/checkout

steps:
- uses: actions/checkout@v4

- name: Set up Python version
uses: actions/setup-python@v5
with:
python-version: '3.14'

# 🛠️ Local Build Section (Optional)
# The following section in your workflow is designed to catch build issues early on the client side, before deployment. This can be helpful for debugging and validation. However, if this step significantly increases deployment time and early detection is not critical for your workflow, you may remove this section to streamline the deployment process.
- name: Create and Start virtual environment and Install dependencies
run: |
python -m venv antenv
source antenv/bin/activate
pip install -r requirements.txt

# By default, when you enable GitHub CI/CD integration through the Azure portal, the platform automatically sets the SCM_DO_BUILD_DURING_DEPLOYMENT application setting to true. This triggers the use of Oryx, a build engine that handles application compilation and dependency installation (e.g., pip install) directly on the platform during deployment. Hence, we exclude the antenv virtual environment directory from the deployment artifact to reduce the payload size.
- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v4
with:
name: python-app
path: |
.
!antenv/

# 🚫 Opting Out of Oryx Build
# If you prefer to disable the Oryx build process during deployment, follow these steps:
# 1. Remove the SCM_DO_BUILD_DURING_DEPLOYMENT app setting from your Azure App Service Environment variables.
# 2. Refer to sample workflows for alternative deployment strategies: https://github.com/Azure/actions-workflow-samples/tree/master/AppService


deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: python-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_96613E449BF74C959A041BDF0A6302B3 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_BC842BAFF0B5473880E4EA0CAD4B115E }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D4F7BBF6E7774C7A831B7A936A501A42 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: 'railroot'
slot-name: 'Production'

9 changes: 9 additions & 0 deletions Docker-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM tomcat:8-jre11

RUN rm -rf /usr/local/tomcat/webapps/*

COPY target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war

EXPOSE 8080
CMD ["catalina.sh", "run"]

25 changes: 25 additions & 0 deletions Docker-app/target/classes/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#JDBC Configutation for Database Connection
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://devopsdb:3306/accounts?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc.username=root
jdbc.password=devopspassword

#Memcached Configuration For Active and StandBy Host
#For Active Host
memcached.active.host=vprocache01
memcached.active.port=11211
#For StandBy Host
memcached.standBy.host=vprocache02
memcached.standBy.port=11211

#RabbitMq Configuration
rabbitmq.address=vpromq01
rabbitmq.port=15672
rabbitmq.username=guest
rabbitmq.password=guest

#Elasticesearch Configuration
elasticsearch.host =vprosearch01
elasticsearch.port =9300
elasticsearch.cluster=vprofile
elasticsearch.node=vprofilenode
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
121 changes: 121 additions & 0 deletions Docker-app/target/classes/db_backup.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64)
--
-- Host: localhost Database: accounts
-- ------------------------------------------------------
-- Server version 5.7.18-0ubuntu0.16.10.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `role`
--

DROP TABLE IF EXISTS `role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `role`
--

LOCK TABLES `role` WRITE;
/*!40000 ALTER TABLE `role` DISABLE KEYS */;
INSERT INTO `role` VALUES (1,'ROLE_USER');
/*!40000 ALTER TABLE `role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`userEmail` varchar(255) DEFAULT NULL,
`profileImg` varchar(255) DEFAULT NULL,
`profileImgPath` varchar(255) DEFAULT NULL,
`dateOfBirth` varchar(255) DEFAULT NULL,
`fatherName` varchar(255) DEFAULT NULL,
`motherName` varchar(255) DEFAULT NULL,
`gender` varchar(255) DEFAULT NULL,
`maritalStatus` varchar(255) DEFAULT NULL,
`permanentAddress` varchar(255) DEFAULT NULL,
`tempAddress` varchar(255) DEFAULT NULL,
`primaryOccupation` varchar(255) DEFAULT NULL,
`secondaryOccupation` varchar(255) DEFAULT NULL,
`skills` varchar(255) DEFAULT NULL,
`phoneNumber` varchar(255) DEFAULT NULL,
`secondaryPhoneNumber` varchar(255) DEFAULT NULL,
`nationality` varchar(255) DEFAULT NULL,
`language` varchar(255) DEFAULT NULL,
`workingExperience` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user`
--

LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (4,'admin_vp','admin_vp@vp.com',NULL,NULL,'28/03/1994','M Khan','R Khan','male','unMarried','Ameerpet,Hyderabad','Ameerpet,Hyderabad','Software Engineer','Software Engineer','Java HTML CSS ','9960862529','9960862529','India','english','2 ','$2a$11$enwqb8vLp6TNRuSQwuJs9.p.0RsBVmvJYAsLq.g883Ly87YCiaxKi'),(5,'admin_vp2','admin@visualpathit.com',NULL,NULL,'28/03/1994','M Khan','R Khan','male','unMarried','Ameerpet,Hyderabad','Ameerpet,Hyderabad','Software Engineer','Software Engineer','Java HTML CSS ','9960862529','9960862529','India','english','12','$2a$11$Yflhl432jiLZQqr0DBcQKuJ.bxhZlR1YDFilK3SKeFX/WIulEsW2q'),(6,'admin_vp3','admin@visualpathit.com',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'$2a$11$PDx0mSd5lf22zP4ulURwp.jVP.AG.wUO94MY72j1FRogs/FcadNCa');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_role`
--

DROP TABLE IF EXISTS `user_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_role` (
`user_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
KEY `fk_user_role_roleid_idx` (`role_id`),
CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_role`
--

LOCK TABLES `user_role` WRITE;
/*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
INSERT INTO `user_role` VALUES (4,1),(5,1),(6,1);
/*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2017-10-24 15:03:57
24 changes: 24 additions & 0 deletions Docker-app/target/classes/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE logback>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date{HH:mm:ss.SSS} [%thread] %-5level %logger{15}#%line %msg\n</pattern>
</encoder>
</appender>

<logger name="com.visualpathit.account">
<level value="debug"/>
</logger>

<logger name="org.springframework">
<level value="info"/>
</logger>

<root>
<level value="error"/>
<appender-ref ref="STDOUT"/>
</root>

</configuration>
5 changes: 5 additions & 0 deletions Docker-app/target/classes/validation.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NotEmpty=This field is required.
Size.userForm.username=Please use between 6 and 32 characters.
Duplicate.userForm.username= User has already taken this Username.
Size.userForm.password=Try one with at least 8 characters.
Diff.userForm.passwordConfirm=These passwords don't match.
Binary file added Docker-app/target/jacoco.exec
Binary file not shown.
3 changes: 3 additions & 0 deletions Docker-app/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=vprofile
groupId=com.visualpathit
version=v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
com/visualpathit/account/service/ProducerService.class
com/visualpathit/account/model/Role.class
com/visualpathit/account/validator/UserValidator.class
com/visualpathit/account/utils/ElasticsearchUtil.class
com/visualpathit/account/controller/UserController.class
com/visualpathit/account/service/UserDetailsServiceImpl.class
com/visualpathit/account/beans/Components.class
com/visualpathit/account/service/SecurityServiceImpl.class
com/visualpathit/account/model/User.class
com/visualpathit/account/repository/UserRepository.class
com/visualpathit/account/controller/FileUploadController.class
com/visualpathit/account/service/ConsumerService.class
com/visualpathit/account/utils/MemcachedUtils.class
com/visualpathit/account/controller/ElasticSearchController.class
com/visualpathit/account/utils/RabbitMqUtil.class
com/visualpathit/account/service/ProducerServiceImpl.class
com/visualpathit/account/service/ConsumerServiceImpl.class
com/visualpathit/account/service/UserServiceImpl.class
com/visualpathit/account/service/SecurityService.class
com/visualpathit/account/service/UserService.class
com/visualpathit/account/repository/RoleRepository.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/beans/Components.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/controller/ElasticSearchController.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/controller/FileUploadController.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/controller/UserController.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/model/Role.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/model/User.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/repository/RoleRepository.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/repository/UserRepository.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/ConsumerService.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/ConsumerServiceImpl.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/ProducerService.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/ProducerServiceImpl.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/SecurityService.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/SecurityServiceImpl.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/UserDetailsServiceImpl.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/UserService.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/service/UserServiceImpl.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/utils/ElasticsearchUtil.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/utils/MemcachedUtils.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/utils/RabbitMqUtil.java
/root/dockerswarmimages/dockerwebapp/src/main/java/com/visualpathit/account/validator/UserValidator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
com/visualpathit/account/controllerTest/UserControllerTest.class
com/visualpathit/account/modelTest/UserTest.class
com/visualpathit/account/controllerTest/SampleTest.class
com/visualpathit/account/modelTest/RoleTest.class
com/visualpathit/account/setup/StandaloneMvcTestViewResolver.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/root/dockerswarmimages/dockerwebapp/src/test/java/com/visualpathit/account/controllerTest/SampleTest.java
/root/dockerswarmimages/dockerwebapp/src/test/java/com/visualpathit/account/controllerTest/UserControllerTest.java
/root/dockerswarmimages/dockerwebapp/src/test/java/com/visualpathit/account/modelTest/RoleTest.java
/root/dockerswarmimages/dockerwebapp/src/test/java/com/visualpathit/account/modelTest/UserTest.java
/root/dockerswarmimages/dockerwebapp/src/test/java/com/visualpathit/account/setup/StandaloneMvcTestViewResolver.java
Loading