Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
6d67a54
Create Jenkinsfile
shivani-fission Feb 11, 2025
dc57809
Update Jenkinsfile
shivani-fission Feb 11, 2025
204f22b
Update Jenkinsfile
shivani-fission Feb 11, 2025
0b8d445
Update Jenkinsfile
shivani-fission Feb 12, 2025
14bd123
Update Jenkinsfile
shivani-fission Feb 12, 2025
1b6c016
Update Jenkinsfile
shivani-fission Feb 12, 2025
a410534
Update Jenkinsfile
shivani-fission Feb 12, 2025
8a3124e
Update Jenkinsfile
shivani-fission Feb 12, 2025
a34daf8
Update Jenkinsfile
shivani-fission Feb 12, 2025
3c19b76
Update Jenkinsfile
shivani-fission Feb 12, 2025
81ca9e8
Update Jenkinsfile
shivani-fission Feb 12, 2025
8fa9af9
Update Jenkinsfile
shivani-fission Feb 12, 2025
0d96050
Update Jenkinsfile
shivani-fission Feb 12, 2025
5a89553
Update Jenkinsfile
shivani-fission Feb 12, 2025
37edd0b
Update Jenkinsfile
shivani-fission Feb 12, 2025
b8ccbef
Update Jenkinsfile
shivani-fission Feb 13, 2025
1794554
Update Jenkinsfile
shivani-fission Feb 13, 2025
ff2a696
Update Jenkinsfile
shivani-fission Feb 13, 2025
365463f
Create Jenkinsfile
shivani-fission Feb 13, 2025
1fb55ed
Delete Dockerfile
shivani-fission Feb 13, 2025
1eb0e85
Create Jenkinsfile.deployment
shivani-fission Feb 24, 2025
2278011
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
c14db4d
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
4c7d980
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
0d9f98c
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
93ad533
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
89de989
Create entrypoint.sh
shivani-fission Feb 24, 2025
8f2424d
Create flotorch.conf
shivani-fission Feb 24, 2025
26aeb8b
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
663b986
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
ddf1e19
Update Dockerfile
shivani-fission Feb 24, 2025
ff5ad5c
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
32de973
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
0a6a3dc
Update Jenkinsfile.deployment
shivani-fission Feb 24, 2025
782426f
Create Flotorch-Deployments
shivani-fission Feb 25, 2025
72d77af
Delete Jenkins/Flotorch-Deployments
shivani-fission Feb 25, 2025
6008389
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
6ae3b2a
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
4710643
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
cdc9553
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
eb6e2df
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
ed49d03
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
810754c
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
1fe0b94
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
eb37a94
Update Jenkinsfile.deployment
shivani-fission Feb 25, 2025
59049fd
Create Jenkinsfile.imagepush
shivani-fission Feb 26, 2025
2bfceed
Update Jenkinsfile.imagepush
shivani-fission Feb 26, 2025
29b1df2
Update Jenkinsfile.imagepush
shivani-fission Feb 26, 2025
844cf83
Update Jenkinsfile.imagepush
shivani-fission Feb 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 0 additions & 126 deletions Dockerfile

This file was deleted.

114 changes: 114 additions & 0 deletions Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
pipeline {
agent {
docker {
image 'ubuntu:latest'
args '-u root'
}
}

parameters {
string(name: 'AWS_REGION', defaultValue: 'us-east-1', description: 'AWS Region (e.g., us-east-1)')
string(name: 'PROJECT_NAME', defaultValue: 'flotorch', description: 'Project Name (e.g., flotorch)')
string(name: 'TABLE_SUFFIX', defaultValue: '', description: 'Unique Table Suffix (6 lowercase letters)')
string(name: 'CLIENT_NAME', defaultValue: 'flotorch', description: 'Client Name (e.g., flotorch)')
string(name: 'CREATED_BY', defaultValue: 'DevOpsTeam', description: 'Created by (e.g., DevOpsTeam)')
string(name: 'TEMPLATE_VERSION', defaultValue: 'v1.0.0', description: 'Template Version (e.g., 2.0.1)')
string(name: 'OPENSEARCH_ADMIN_USER', defaultValue: 'admin', description: 'OpenSearch Admin Username')
password(name: 'OPENSEARCH_ADMIN_PASSWORD', description: 'OpenSearch Admin Password')
password(name: 'NGINX_AUTH_PASSWORD', description: 'Nginx Auth Password')
}

environment {
AWS_REGION = "${params.AWS_REGION}"
PROJECT_NAME = "${params.PROJECT_NAME}"
TABLE_SUFFIX = "${params.TABLE_SUFFIX}"
CLIENT_NAME = "${params.CLIENT_NAME}"
CREATED_BY = "${params.CREATED_BY}"
TEMPLATE_VERSION = "${params.TEMPLATE_VERSION}"
OPENSEARCH_ADMIN_USER = "${params.OPENSEARCH_ADMIN_USER}"
OPENSEARCH_ADMIN_PASSWORD = "${params.OPENSEARCH_ADMIN_PASSWORD}"
NGINX_AUTH_PASSWORD = "${params.NGINX_AUTH_PASSWORD}"
}

stages {
stage('Install dependencies') {
steps {
script {
sh '''
echo "Installing AWS CLI..."
apt-get update
apt-get install -y unzip curl

# Check if AWS CLI is already installed
if ! command -v aws &> /dev/null; then
echo "AWS CLI not found. Installing..."
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -o -q awscliv2.zip
./aws/install --update
else
echo "AWS CLI is already installed"
aws --version
fi

# Verify AWS CLI installation
aws --version || {
echo "AWS CLI installation failed"
exit 1
}
echo "AWS CLI installation successful"
'''
}
}
}

stage('Checkout Repository') {
steps {
script {
git branch: 'main', url: 'https://github.com/FissionAI/FloTorch.git'
}
}
}

stage('Deploy FloTorch Master Stack') {
steps {
withAWS(credentials: 'aws-creds', region: env.AWS_REGION) {
sh '''
echo "Starting FloTorch Stack Deployment..."

aws cloudformation create-stack \
--region ${AWS_REGION} \
--stack-name flotorch-stack \
--template-url https://flotorch-public.s3.amazonaws.com/${TEMPLATE_VERSION}/templates/master-template.yaml \
--capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM \
--parameters \
ParameterKey=ProjectName,ParameterValue=${PROJECT_NAME} \
ParameterKey=TableSuffix,ParameterValue=${TABLE_SUFFIX} \
ParameterKey=ClientName,ParameterValue=${CLIENT_NAME} \
ParameterKey=CreatedBy,ParameterValue=${CREATED_BY} \
ParameterKey=TemplateVersion,ParameterValue=${TEMPLATE_VERSION} \
ParameterKey=OpenSearchAdminUser,ParameterValue=${OPENSEARCH_ADMIN_USER} \
ParameterKey=OpenSearchAdminPassword,ParameterValue=${OPENSEARCH_ADMIN_PASSWORD} \
ParameterKey=NginxAuthPassword,ParameterValue=${NGINX_AUTH_PASSWORD} \
ParameterKey=PrerequisitesMet,ParameterValue=yes

echo "Waiting for stack creation to complete..."
aws cloudformation wait stack-create-complete \
--stack-name flotorch-stack \
--region ${AWS_REGION}

echo "CloudFormation Stack Deployment Successful!"
'''
}
}
}
}

post {
success {
echo "FloTorch Stack deployed successfully!"
}
failure {
echo "Deployment failed!"
}
}
}
Loading