wilkart / devops-capstone-project Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
As a [role]
I need [function]
So that [benefit]
* [document what you know]
gherkin
Given [some context]
When [certain action is taken]
Then [the outcome of action is observed]
As a [role]
I need [function]
So that [benefit]
* [document what you know]
gherkin
Given [some context]
When [certain action is taken]
Then [the outcome of action is observed]
As a [role]
I need [function]
So that [benefit]
* [document what you know]
gherkin
Given [some context]
When [certain action is taken]
Then [the outcome of action is observed]
Title: Need to add security headers and CORS policies
**As a** service provider
**I need** my service to use security headers and CORS policies
**So that** my web site is not vulnerable to CORS attacks
#### Assumptions
* Flask-Talisman will be used for security headers
* Flask-Cors will be used to establish cross-origin resource sharing (CORS) policies
#### Acceptance Criteria
```gherkin
Given the site is secured
When a REST API request is made
Then secure headers and a CORS policy should be returned
```
Title: Containerize your microservice using Docker
As a developer
I need to containerize my microservice using Docker
So that I can deploy it easily with all of its dependencies
Dockerfile
for repeatable buildsPython:3.9-slim
image as the baseroot
gunicorn
wsgi server as an entry pointGiven the Docker image named accounts has been created
When I use docker run accounts
Then I should see the accounts service running in Docker
Title: Need the ability to automate continuous integration checks
**As a** Developer
**I need** automation to build and test every pull request
**So that** I do not have to rely on manual testing of each request, which is time-consuming
#### Assumptions
* GitHub Actions will be used for the automation workflow
* The workflow must include code linting and testing
* The Docker image should be postgres:alpine for the database
* A GitHub Actions badge should be added to the README.md to reflect the build status
#### Acceptance Criteria
```gherkin
Given code is ready to be merged
When a pull request is created
Then GitHub Actions should run linting and unit tests
And the badge should show that the build is passing
```
Title: Deploy your Docker image to Kubernetes
As a service provider
I need my service to run on Kubernetes
So that I can easily scale and manage the service
Given the Kubernetes manifests have been created
When I use the oc command to apply the manifests
Then the service should be deployed and run in Kubernetes
Copied!
This story will make the service scalable and perform better and thus give the users a better experience. It could be seen as an enhancement. Assign the appropriate label to this story.
Give the story an estimate. Remember the values are Small = 3, Medium = 5, Large = 8, and Extra Large = 13.
Next, assign the story to Sprint 3.
Finally, move the the story to the Sprint Backlog, ranking it second.
Story 3: Create a CD Pipeline to Automate Deployment to Kubernetes
In this story, you will create a CD pipeline using Tekton to deploy to OpenShift. It will reuse the Kubernetes manifest that you created in the "Deploy to Kubernetes" story. This is why you didn't simply use the command line interface to deploy the service in that story.
Create the following story about creating a CD pipeline in the Product Backlog column of your Zenhub kanban board:
Note: You can cut-n-paste the markdown text below into your story:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Title: Create a CD pipeline to automate deployment to Kubernetes
As a developer
I need to create a CD pipeline to automate deployment to Kubernetes
So that the developers are not wasting their time doing it manually
Given the CD pipeline has been created
When I trigger the pipeline run
Then I should see the accounts service deployed to OpenShift
As a developer
I need to create a CD pipeline to automate deployment to Kubernetes
So that developers aren't wasting their time doing it manually
Assumptions
Use Tekton to define the pipeline
It should clone, lint, test, build, and deploy the service
Deployment should be to OpenShift
It can use a manual trigger for this MVP
Acceptance Criteria
1
2
3
Given the CD pipeline has been created
When I trigger the pipeline run
Then I should see the accounts service deployed to OpenShift
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.