Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docker #15

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
05cba28
new commit
KishorABCodz Dec 22, 2022
822dc40
Update index.html
KishorABCodz Dec 23, 2022
286a566
Update index.html
KishorABCodz Dec 23, 2022
89befad
new commit
Kishor-A-B Dec 23, 2022
4cdd39d
new commit
Kishor-A-B Dec 23, 2022
c8080fb
new commit
Kishor-A-B Dec 23, 2022
fc596b8
new commit
Kishor-A-B Dec 23, 2022
73e4a3a
new commit
Kishor-A-B Dec 23, 2022
8636170
new commit
Kishor-A-B Dec 23, 2022
e20d568
new commit
Kishor-A-B Dec 23, 2022
a57bbe4
new commit
Kishor-A-B Dec 23, 2022
aa48a43
new commit
Kishor-A-B Dec 23, 2022
1f211d5
new commit
Kishor-A-B Dec 23, 2022
8b407c1
new commit
Kishor-A-B Dec 23, 2022
630b30a
new commit
Kishor-A-B Dec 23, 2022
939b531
new commit
Kishor-A-B Dec 23, 2022
e1b084e
new commit
Kishor-A-B Dec 23, 2022
97e4b90
new commit
Kishor-A-B Dec 23, 2022
689e5ce
new commit
Kishor-A-B Dec 23, 2022
c80c6fb
new commit
Kishor-A-B Dec 23, 2022
38389ad
new commit
Kishor-A-B Dec 23, 2022
9cc4ee0
commit No:01
Kishor-A-B Dec 26, 2022
9a89cd3
commit No:01
Kishor-A-B Dec 26, 2022
8fcf6b6
commit No:01
Kishor-A-B Dec 26, 2022
7f4d78b
commit No:01
Kishor-A-B Dec 26, 2022
4c8f83c
commit No:01
Kishor-A-B Dec 26, 2022
4fc7c61
commit No:01
Kishor-A-B Dec 26, 2022
7f0baa3
commit No:01
Kishor-A-B Dec 26, 2022
cdf02b8
commit No:01
Kishor-A-B Dec 26, 2022
c7387a1
new commmit
Kishor-A-B Dec 26, 2022
74cde90
new commmit
Kishor-A-B Dec 26, 2022
358eed1
new
Kishor-A-B Dec 28, 2022
47a1098
new
Kishor-A-B Dec 28, 2022
8e496ab
new
Kishor-A-B Dec 28, 2022
983f885
new
Kishor-A-B Dec 28, 2022
0f15142
new
Kishor-A-B Dec 28, 2022
239f5b7
new
Kishor-A-B Dec 28, 2022
b5670db
Set up CI with Azure Pipelines
KishorABCodz Aug 5, 2024
18986cc
Update azure-pipelines.yml for Azure Pipelines
KishorABCodz Aug 5, 2024
8f890a1
Update azure-pipelines.yml for Azure Pipelines
KishorABCodz Aug 5, 2024
fe97ecb
Create subash
KishorABCodz Aug 5, 2024
f5574b2
Update azure-pipelines.yml for Azure Pipelines
KishorABCodz Aug 5, 2024
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
7 changes: 3 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ def about():

if __name__ == "__main__":
env = os.environ.get('FLASK_ENV', 'development')
port = int(os.environ.get('PORT', 5000))
port = int(os.environ.get('PORT',8000))
debug = False if env == 'production' else True
app.run(debug=True)
app.run(port=port, debug=debug)
# Careful with the debug mode..
app.run(host='0.0.0.0',port=8000)
# Careful with the debug mode..
50 changes: 50 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
trigger:
branches:
exclude:
- '*'

# pr:
# branches:
# include:
# - '*'

pool:
name: Default
demands:
- agent.name -equals WIN-4G3TNA4VMUF

stages:
- stage: ValidateComposeFile
jobs:
- job: Validate
steps:
- script: |
docker-compose config
displayName: 'Validate docker-compose.yml'

- stage: BuildAndTest
dependsOn: ValidateComposeFile
jobs:
- job: Build
steps:
- task: DockerCompose@0
inputs:
action: 'Build services'
dockerComposeFile: 'docker-compose.yml'
displayName: 'Build Docker Services'

- task: DockerCompose@0
inputs:
action: 'Run services'
dockerComposeFile: 'docker-compose.yml'
displayName: 'Run Docker Services'

- script: |
docker-compose run my-service ./run-tests.sh
displayName: 'Run Tests'

- task: DockerCompose@0
inputs:
action: 'Down services'
dockerComposeFile: 'docker-compose.yml'
displayName: 'Tear Down Services'
1 change: 1 addition & 0 deletions subash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
23 changes: 12 additions & 11 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html>
<head>
<title>{{t}}</title>
<!-- href="/static/assets/style.css"-->
Expand All @@ -8,16 +8,17 @@
<script src="{{ url_for('static',filename='assets/emoji.js')}}"></script>
</head>
<body>
<h1>{{ h }}</h1>
<h1>{{ h }}haiioooo
hai helloooo hhello this is me third taary 6 test</h1>
<ul>
<li><a href="/list" class="{{ a1 }}">ALL</a></li>
<li><a href="/" class="{{ a2 }}">Uncompleted</a></li>
<li><a href="/completed" class="{{ a3 }}">Completed</a></li>
<li style="float:right"><a href="/about">About</a></li>
<li><a href="/completed" class="{{ a3 }}"> aalllCompleted</a></li>
<li style="float:right"><a href="/about">yhis About</a></li>
</ul>
{% if error %}
<div class="alert alert-danger">
<strong>Error!</strong> {{ error }}
<strong>Errssor!</strong> {{ error }}
</div>
{% endif %}
<hr>
Expand All @@ -27,28 +28,28 @@ <h1>{{ h }}</h1>
<table class="none" id="close">
<tr>
<td></td><td></td>
<td><big><b>Search Reference:</b></big></td>
<td><big><b>Ssgarch Reference new on :</b></big></td>
<td><select name="refer" required>
<option value="id">Unique ID</option>
<option value="name">Task Name</option>
<option value="name">11new Task Name</option>
<option value="desc">Description</option>
<option value="date">Date</option>
<option value="date">D8ate</option>
<option value="pr">Priority</option>
</select></td>
<td><input type="text" name="key" placeholder="Search Task" size="15" /></td>
<td><button type="submit">Search</button></td>
<td><button type="submit">Searjuhbcdcch</button></td>
</tr>
</table>
</form>
</div>
<b><big>To-Do LIST :</big></b>
<table>
<tr id="row">
<th class="status">Status</th>
<th class="status">Sssssstatus new file</th>
<th class="name">Task Name</th>
<th class="desc">Description Name</th>
<th class="date">Date</th>
<th class="pr">Priority</th>
<th class="pr">Prioritynew</th>
<th class="func1">Remove</th>
<th class="func2">Modify</th>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions templates/searchlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ h }}</h1>
<ul>
<li><a href="/list" class="{{ a1 }}">ALL</a></li>
<li><a href="/" class="{{ a2 }}">Uncompleted</a></li>
<li><a href="/completed" class="{{ a3 }}">Completed</a></li>
<li><a href="/completed" class="{{ a3 }}">Completed new One</a></li>
<li style="float:right"><a href="/about">About</a></li>
</ul>
<hr>
Expand All @@ -23,7 +23,7 @@ <h3>Result of the Search : ToDO List</h3>
<td class="name">Task Name</td>
<td class="desc">Task Description</td>
<td class="date">Date</td>
<td class="pr">Project</td>
<td class="pr">ProjectdATA</td>
<td class="func">Delete</td>
<td class="func">Modify</td>
</tr>
Expand Down
Loading