Skip to content

Commit d672835

Browse files
DevOps Lab 2021
0 parents  commit d672835

File tree

13 files changed

+1012
-0
lines changed

13 files changed

+1012
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Linguagem Utilizada para Desenvolver a Aplicação
2+
language: python
3+
4+
# Versão que a aplicação suporta.
5+
python:
6+
- "3.7"
7+
8+
# Faz a instalação com Sudo, para ter privilégio de Super Usuário.
9+
sudo: required
10+
11+
# Instalação de Módulos que são necessários para a Aplicação.
12+
install:
13+
- pip install flask
14+
15+
# Defini o script de Teste que deve rodar toda vez que o código for alterado.
16+
script:
17+
- python test.py
18+
19+
# Defini que o processo de Deploy será na Plataforma Heroku. É necessário informar o nome da APP criada no Heroku
20+
deploy:
21+
provider: heroku
22+
app: mudar_para_o_nome_de_sua_app_no_heroku

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: gunicorn app:app

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Trilha DevOps da 4Linux
2+
3+
<!-- Altere a Flag abaixo com sua URL do Travis -->
4+
[![Build Status](https://travis-ci.org/sua_conta/simple-unittest.svg?branch=master)](https://travis-ci.org/sua_conta/simple-unittest)
5+
6+
## Aplicação criada para exemplificar o Ciclo de uma PipeLine DevOps
7+
8+
9+
Para maiores informações acesse o [Site da 4Linux](https://www.4linux.com.br/cursos/devops)

app.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from flask import Flask, render_template
2+
3+
app = Flask(__name__)
4+
5+
@app.route("/")
6+
def index():
7+
return render_template('index.html')
8+
9+
10+
if __name__ == '__main__':
11+
app.run(debug=True)

application.wsgi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/python3.6
2+
import sys
3+
sys.path.insert(0,'/home/malbano/simple-unittest')
4+
from app import app as application

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Flask==0.12.2
2+
gunicorn

runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.7.10

static/css/main.css

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.sass

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700')
2+
3+
$alert: #78d25a
4+
$devops: #00aab0
5+
$devops-color: #fff
6+
$ops: #804297
7+
$ops-color: #fff
8+
$dev: #f0860c
9+
$dev-color: #fff
10+
$ex: #808080
11+
$ex-color: #fff
12+
13+
$main-font: Montserrat
14+
15+
16+
html
17+
box-sizing: border-box
18+
*
19+
box-sizing: inherit
20+
font-family: $main-font
21+
22+
body
23+
margin: 0
24+
25+
img
26+
outline: none
27+
28+
a
29+
color: inherit
30+
31+
.container
32+
max-width: 1024px
33+
margin: auto
34+
35+
.alert
36+
position: fixed
37+
top: 0
38+
left: 0
39+
width: 100%
40+
padding: 8px 16px
41+
border-radius: 0 0 4px 4px
42+
background-color: $alert
43+
text-align: center
44+
font-weight: 700
45+
color: #fff
46+
47+
.logo
48+
text-align: center
49+
img
50+
margin-top: 6%
51+
max-width: 600px
52+
53+
.keep-studying
54+
text-align: center
55+
font-weight: 300
56+
font-size: 30px
57+
58+
.path
59+
h1
60+
font-weight: 600
61+
font-size: 28px
62+
margin-bottom: 8px
63+
64+
.devops-path
65+
h1
66+
border-bottom: 4px solid $devops
67+
color: $devops
68+
69+
.ex-path
70+
h1
71+
border-bottom: 4px solid $ex
72+
color: $ex
73+
74+
.course
75+
vertical-align: top
76+
display: inline-block
77+
width: 49%
78+
padding: 16px
79+
margin-bottom: 12px
80+
border-radius: 2px
81+
background-color: $ex
82+
font-size: 14px
83+
color: $ex-color
84+
transition: all 0.3s
85+
&:nth-child(odd)
86+
margin-left: 1%
87+
&:nth-child(even)
88+
margin-right: 1%
89+
&:hover
90+
opacity: 0.8
91+
92+
h2
93+
margin: 0
94+
font-size: 16px
95+
96+
.devops-course
97+
background-color: $devops
98+
color: $devops-color
99+
100+
.ops-course
101+
background-color: $ops
102+
color: $ops-color
103+
104+
.dev-course
105+
background-color: $dev
106+
color: $dev-color
107+

0 commit comments

Comments
 (0)