Skip to content

Commit

Permalink
added nulp tenant pages
Browse files Browse the repository at this point in the history
  • Loading branch information
saiakhil46 committed Mar 12, 2023
0 parents commit 6a680f3
Show file tree
Hide file tree
Showing 199 changed files with 19,471 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/.git
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tenants/diksha-static/node_modules/
tenants/diksha-static/package-lock.json
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG player_image
FROM $player_image
COPY ./tenants /home/sunbird/app_dist/tenant/
WORKDIR /home/sunbird/app_dist
CMD ["node", "server.js", "&"]
80 changes: 80 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
@Library('deploy-conf') _
node('build-slave') {
try {
String ANSI_GREEN = "\u001B[32m"
String ANSI_NORMAL = "\u001B[0m"
String ANSI_BOLD = "\u001B[1m"
String ANSI_RED = "\u001B[31m"
String ANSI_YELLOW = "\u001B[33m"

ansiColor('xterm') {
timestamps {
stage('Checkout') {
folder = new File("$WORKSPACE/.git")
if (folder.exists())
{
println "Found .git folder. Clearing it.."
sh'git clean -fxd'
}
checkout scm
if (params.diksha_tenant_tag == "master") {
def scmVars = checkout scm
checkout scm: ([$class: 'GitSCM', branches: [[name: "refs/heads/master"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '08c3d026-0bf1-4bee-bcfd-a2b22419cd3c', url: 'https://github.com/project-sunbird/demo-tenant.git']]])
commit_hash = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
branch_name = sh(script: 'git name-rev --name-only HEAD | rev | cut -d "/" -f1| rev', returnStdout: true).trim()
build_tag = branch_name + "_" + commit_hash + "_" + env.BUILD_NUMBER
println(ANSI_BOLD + ANSI_YELLOW + "diksha_tenant_tag not specified, using the latest commit hash: " + commit_hash + ANSI_NORMAL)
} else {
def scmVars = checkout scm
checkout scm: ([$class: 'GitSCM', branches: [[name: "refs/tags/params.diksha_tenant_tag"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '08c3d026-0bf1-4bee-bcfd-a2b22419cd3c', url: 'https://github.com/project-sunbird/demo-tenant.git']]])
build_tag = params.diksha_tenant_tag + "_" + env.BUILD_NUMBER
println(ANSI_BOLD + ANSI_YELLOW + "diksha_tenant_tag specified, building from tag: " + params.diksha_tenant_tag + ANSI_NORMAL)
}
echo "build_tag: " + build_tag
}

stage('Build') {
// values = docker_params()
if (params.build_number == "") {
println(ANSI_BOLD + ANSI_YELLOW + "Setting build_number to lastSuccessfulBuild to copy metadata.json" + ANSI_NORMAL)
buildNumber = "lastSuccessfulBuild"
} else
buildNumber = params.build_number

values = [:]
try {
copyArtifacts projectName: params.absolute_job_path, fingerprintArtifacts: true, flatten: true, selector: specific(buildNumber)
}
catch (err) {
println ANSI_YELLOW + ANSI_BOLD + "Ok that failed!. Lets try an alertnative.." + ANSI_NORMAL
copyArtifacts projectName: params.absolute_job_path, flatten: true, selector: upstream()
}
currentWs = sh(returnStdout: true, script: 'pwd').trim()
image_tag = sh(returnStdout: true, script: 'jq -r .image_tag metadata.json').trim()
agent = sh(returnStdout: true, script: 'jq -r .node_name metadata.json').trim()
image_name = sh(returnStdout: true, script: 'jq -r .image_name metadata.json').trim()
commit_hash = sh(returnStdout: true, script: 'jq -r .commit_hash metadata.json').trim()
values.put('image_name', image_name)
values.put('image_tag', image_tag)
values.put('commit_hash', commit_hash)

sh("bash build.sh ${values.image_tag} ${env.NODE_NAME} ${hub_org} ${values.image_name} ${build_tag} ${commit_hash}")
}
stage('ArchiveArtifacts') {
archiveArtifacts "metadata.json"
cdn_file_exists = new File("$currentWs/index_cdn.ejs")
if (cdn_file_exists.exists()) {
archiveArtifacts "index_cdn.ejs, cdn_assets.zip"
}
currentBuild.description = "${values.image_tag}"
}
}
}

}
catch (err) {
currentBuild.result = "FAILURE"
throw err
}

}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nulp-tenant
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Build script
set -o pipefail
image_tag=$1
node_name=$2
hub_org=$3
image_name=$4
tenant_tag=$5
commit_hash=$6

docker build -f ./Dockerfile --build-arg player_image=${hub_org}/${image_name}:${image_tag} -t ${hub_org}/${image_name}:${image_tag}_${tenant_tag} .
echo {\"image_name\" : \"${image_name}\", \"image_tag\" : \"${image_tag}_${tenant_tag}\",\"commit_hash\" : \"${commit_hash}\", \"node_name\" : \"$node_name\"} > metadata.json
230 changes: 230 additions & 0 deletions tenant/sunbird/aboutus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#ffffff">

<title>Welcome: National Urban Learning Platform</title>

<!-- Font Awesome CSS -->
<link href="vendor/font-awesome.min.css" rel="stylesheet">

<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/card.min.css" rel="stylesheet">

<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/[email protected]/slick/slick.css"/>

<!-- Custom CSS -->
<link href="../sunbird/css/custom.css" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;1,600&display=swap" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>

<body class="about-us">
<!-- header -->
<header>
<div class="ui grid">
<div class="row">
<div class="sixteen wide tablet six wide computer column sb-logo p-0">
<div class="logos-container">
<a style="width:199px;" class="logo1" href="./index.html">
<img width="100%" src="./images/national_logo.png" alt="Logo"/>
</a>
<a style="padding: 5px 0;" href="https://mohua.gov.in" target="_blank">
<img style="width:157px;" src="images/MoHUA_.png" alt="Logo Center" class="img-fluid"/>
</a>
<a href="./index.html" class="logo3">
<img style="width: 139px;" src="images/AKAAM_.png" alt="Logo Center" class="img-fluid"/>
</a>
</div>
</div>
<div class="sixteen wide tablet ten wide computer column sb-right-menu">
<div class="sb-search-btn">
<input type="search" id="site-search" name="q" autocomplete="off"
aria-label="Search through site content" placeholder="Explore Content">

<button id="site-search-btn" class="searchIcon" onclick="navigateToExplore()"><i class="fa fa-search"
aria-hidden="true"></i></button>
</div>
<div class="ui compact menu">
<div class="ui simple dropdown item">
<div class="hamburger" id="hamburger-icon">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
</div>
<div class="menu">
<a href="aboutus.html" target="_blank" class="item">About Us</a>
<a href="https://www.niua.org/" class="item" target="_blank" class="item">NIUA</a>
<a href="https://mohua.gov.in/" class="item" target="_blank" class="item">MoHUA</a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>

<!-- <landingui -->
<section id="intro">

<div class="intro-content">
<div class="ui container banner-txt">
<h2 class="text-white fs-45 pl-60">NATIONAL URBAN <br>LEARNING PLATFORM </h2>
</div>
</div>
<div class="intro-carousel">
<div class="item" style="background-image: url('img/intro-carousel/landing.png');"></div>
</div>
</section>
<!-- #intro -->

<main id="main">
<section>
<div style="background:url('img/about/vision.jpg') no-repeat right top ;">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">
<div class="px-4">
<h2><b>Our Vision</b></h2>
<p class="paracol" style="font-size:16px;">To be the largest community of Urban Practitioners learning from each other.</p>
</div>
</div>
</div>
</section>



<section>
<div style="background:url('img/about/mission.jpg') no-repeat top left;">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">
<div class="content-alig1">
<div class="px-4">
<h2><b>Our Mission</b></h2>
<p class="paracol" style="font-size:16px;">To create an Urban Learning Platform, supplementing traditional capacity building with online learning to<br> enhance skills of urban practitioners in an ever-changing ecosystem.</p>
</div>
</div>
</div>
</div>
</section>
<section>
<div style="background:url('img/about/objectives.jpg') no-repeat right top;">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">
<div class="px-4">
<h2><b>Our Approach</b></h2>
<ul class="paracol">
<li>Provide a digital platform to deliver learning, based on user’s convenience.</li>
<li>Built on tenets of peer learning where such users are not only learners, but also creators of content sharing on-ground experience, success stories and insights. </li>
<li>Offer a marketplace to create partnerships to address learning needs of the community.</li>
</ul>
</div>
</div>
</div>
</section>

<section>
<div style="background:url('img/about/mission.jpg') no-repeat top left;">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">

<div class="content-alig1">
<div class="px-4">
<h2><b>Our offerings</b></h2>
<ul class="paracol">
<li>We create virtual communities to share, follow, like multiple discussion threads.</li>
<li>We provide certification courses to address need based demands for skills for urban domains. </li>
<li>We celebrate user contribution by rewards and recognition and motivate active community participation.</li>
</ul>
</div>
</div>

</div>
</div>
</section>
<section>
<div class="bg-im">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">
<div class="text-center px-4">
<h2><b>Why does NULP exist?</b></h2>
<p class="paracol">Urban officials have a variety of functional needs because of the practical challenges of urban governance. There is a scope to supplement the skills and capacities of city officials to address these functional needs. The National Urban Learning Platform (NULP) is a demand-driven digital platform that responds to these needs and aims to affect real improvements in the skills of urban practitioners.</p>

<p class="paracol">NULP is building a collaborative network where the urban administrators of the Indian cities learn from each other and the rest of the urban ecosystem via peer-to-peer connections.</p>

<p class="paracol">Therefore, the main elements of NULP include a marketplace via mobile first approach, simple to use tools to create, share and consume content, collate demand dynamically from the field, reward & recognition frameworks and user feedback to ignite a culture of social learning in the community of urban practitioners.</p>
</div>
</div>
</div>
</section>


<section>
<div class="bg-im1">
<div class="ui container pt-200 pb-200 pt-sm-100 pb-sm-100">
<div class="text-center px-4">
<h2><b>Partner with us</b></h2>
<p class="paracol"> NULP invites your contribution towards collaborative learning to enhance the skills and knowledge of Urban Ecosystem participants. Government departments, academic institutions, industries, start-ups, and civil society organizations can provide thought leadership and domain expertise by catering to the existing and emerging learning requirements of the NULP community.</p>
<p class="paracol"> By creating and facilitating a flow of knowledge & skill resources onto the platform, partners can become pioneers in this initiative on nurturing capacities in the urban development sector for better citizen experience. </p>

<p class="paracol"> If you wish to partner with us or would like more information, please mail us at <a href="mailto:[email protected]." target="_blank">[email protected].</a></p>
</div>
</div>
</div>
</section>
</main>
<!-- <footer></footer> -->
<div class="sb-foot-separate"></div>
<footer>
<div class="ui grid sm-text-center px-74">
<div class="row py-40">
<div class="sixteen wide tablet column eight wide computer">
<h4 class="fs-0-925">Important Links</h4>
<div class="ui list">
<a href="https://niua.org/cdg/" target="_blank" class="item fs-0-925 text-white">Centre for Digital Governance</a>
<a href="https://nudm.mohua.gov.in/" target="_blank" class="item fs-0-925 text-white">National Urban Digital Mission</a>
</div>
<div class="sb-social sm-d-none">
<a href="https://www.linkedin.com/school/national-institute-of-urban-affairs/" target="_blank" ><i class="icon linkedin"></i></a>
<a href="https://www.facebook.com/profile.php?id=100068273286928" target="_blank" ><i class="icon facebook"></i></a>
<a href="https://twitter.com/NIUA_India" target="_blank" ><i class="icon twitter"></i></a>
</div>
</div>
<div class="sixteen wide tablet column eight wide computer">
<h4 class="fs-0-925 font-weight-bold sb-mb-10">Nodal Ministry:</h4>

<p class="fs-0-925 mt-15">Ministry of Housing and Urban Affairs, Government of India</p>
<p class="fs-0-925">Nirman Bhawan, New Delhi- 110001, INDIA</p>
<h4 class="fs-0-925 font-weight-bold pt-18">Anchor Institute:</h4>

<p class="fs-0-925 mt-0 sb-mb-10">National Institute of Urban Affairs</p>

<p class="fs-0-925"> 1st Floor, Core 4B, India Habitat Centre, Lodhi Road, New Delhi - 110003, INDIA
</p>
<p class="fs-0-925">Phone: (+91 11) 24617517, 24617543, 24617595</p>
<div class="sb-social sm-position">
<a href="https://www.linkedin.com/school/national-institute-of-urban-affairs/" target="_blank" ><i class="icon linkedin"></i></a>
<a href="https://www.facebook.com/profile.php?id=100068273286928" target="_blank" ><i class="icon facebook"></i></a>
<a href="https://twitter.com/NIUA_India" target="_blank" ><i class="icon twitter"></i></a>
</div>
</div>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- <script src="vendor/jquery.min.js"></script>
<script src="vendor/bootstrap.min.js"></script>
<script src="vendor/owl.carousel.min.js"></script>
<script src="vendor/scrollreveal.min.js"></script>
<script src="vendor/jquery.magnific-popup.min.js"></script> -->
<script src="js/custom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</html>
Binary file added tenant/sunbird/appLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6a680f3

Please sign in to comment.