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

Styleguide infra #10

Merged
merged 10 commits into from
Oct 24, 2017
Merged

Styleguide infra #10

merged 10 commits into from
Oct 24, 2017

Conversation

mrprompt
Copy link
Contributor

No description provided.

infra/README.md Outdated

## Segundo passo: Doutrinando o time

"Com grandes poderes requerem grandes responsabilidaes", dizia o sábio Tio Joe, é verdade. Como você pode ver no exemplo acima, a configuração do Pipelines fica totalmente disponível para os desenvolvedores, que podem adicionar sua branch de trabalho para que faça uma entrega contínua, rode scripts e tudo mais que ele achar necessário.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tio Ben eim?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahahahaha agor que vi que deixei Joe

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASUEHSAUEHSA


Simples assim, e com isso, o desenvolvedor é totalmente capaz de configurar se próprio ambiente com poucos cliques e repassá-lo ao time de testes sem depender do *cara da infra* ou daquele amigão que manja de servidores.

## Segundo passo: Doutrinando o time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infra/README.md Outdated

Nós da [BeeTech](https://www.beetech.global) achamos que todo time deve ter a liberdade de explorar idéias e consumir novas tecnologias, então, junto ao nosso CI [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines), implementamos também, alguns "[custom builds](https://confluence.atlassian.com/bitbucket/run-pipelines-manually-861242583.html)" bem úteis para todos e que vamos tratar nesse guia.

Para termos essa flexibilidade na infra, sem prejudicar ou onerar ninguém, optamos por utilizar a [Heroku](https://www.heroku.com) - se você não conhece a Heroku, deveria - como [PaaS](https://pt.wikipedia.org/wiki/Plataforma_como_servi%C3%A7o).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ao invés do deveria, poderia ser um "ta aí a desculpa perfeita para aprender" hihi

infra/README.md Outdated

![Shame on you!!!](shame-on-you.jpg)

Não meu caro, o que o _cara da infra_ te diria? Que isso precisa rodar em um ambiente separado, correto? Mas, então porquê não automatizar isso? Porque você mesmo não sobe seu ambiente para testar suas idéias e de quebra, cria um host para repassar para o time de testes ou para aquele seu gerente que só acredita vendo.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"por que não automatizar"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!

Copy link
Contributor

@airroom airroom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BOUUUUA

infra/README.md Outdated

## Segundo passo: Doutrinando o time

"Com grandes poderes requerem grandes responsabilidaes", dizia o sábio [Tio Ben](https://pt.wikipedia.org/wiki/Ben_Parker), é verdade. Como você pode ver no exemplo acima, a configuração do Pipelines fica totalmente disponível para os desenvolvedores, que podem adicionar sua branch de trabalho para que faça uma entrega contínua, rode scripts e tudo mais que ele achar necessário.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Com grandes poderes requerem grandes responsabilidades"

infra/README.md Outdated
Entendeu? Quer testar uma versão nova do Node? Só informar ali em *engines* a versão que você quer e pronto!
Usa PHP? Não tem problema, informa no *composer.json*, Python? Vai no *requirements.txt* e por aí vai, é mais simples do que parece ;)

Caso precise rodar alguma tarefa a antes ou depois do build, mas apenas na Heroku, temos a opção de criar em **scripts** os gatilhoes pré-configurados da Heroku: pre-build ou post-build. Na [documentação](https://devcenter.heroku.com/) deles você encontra mais opções.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"gatilhões"

infra/README.md Outdated

Como podemos ver, com isso, todos do time ganham total liberdade de aplicar suas idéias, testar novas funcionalidades ou mesmo trabalhar tranquilamento em uma correção, sabendo que seu trabalho não irá afetar ninguém que esteja utilizando o mesmo ambiente. Tudo fica perfeitamente isolado e funcionando perfeitamente.

Sim, é esta a infra matadora, sem trabalho, sem estresse e linda de ver funcionando.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Sim, esta é a infra matadora"

infra/README.md Outdated
- facilidade de configuração
- utilizar fortemente o Docker

Por utilizar Docker, já ganhamos máxima liberdade na criação do ambiente de testes e garante total compatilidade entre os ambientes, já que podemos utilizar o mesmo container em todos.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"já ganhamos máxima liberdade na criação do ambiente de testes e garante total compatibilidade entre os ambientes"

…ish into styleguide-infra

* 'styleguide-infra' of github.com:BeeTech-global/bee-stylish:
  fix(link): Fix link to guide
  chore(title): Change title
@evansantos
Copy link
Contributor

LGTM 👍

@airroom
Copy link
Contributor

airroom commented Oct 20, 2017

CADÊ CADÊ CADÊ? :(

@mrprompt
Copy link
Contributor Author

ta difícil :(

@mrprompt
Copy link
Contributor Author

approved!!!! \o/

@mrprompt mrprompt merged commit 77a637e into master Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants