Skip to content

Commit

Permalink
aguia-pescadora-charlie (#58), tsuru (#59): ola mundo em PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Jun 3, 2019
1 parent c99d08d commit 9aab4eb
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions logbook/aguia-pescadora-charlie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,21 +200,33 @@ sudo apt install gandalf-server
# Ajuda sobre como criar usuarios
tsuru help user-create

# Lista usuarios criados
tsuru user-list

# Cria admins (isso pede senhas, criar temporária para os demais)
tsuru user-create [email protected]
tsuru user-create [email protected]
tsuru user-create [email protected]

# Lista usuarios criados
tsuru user-list

tsuru team-create administracao
tsuru team-create padrao

# Lista times
tsuru team-list

# Lista todas as permissões
tsuru permission-list

tsuru role-assign AllowAll [email protected]
tsuru role-assign AllowAll [email protected]
tsuru role-assign AllowAll [email protected]

# Lista pools
tsuru pool-list
# theonepool

# Libera geral para poder usar a theonepool (só temos ela)
tsuru pool-constraint-set theonepool team "*"

#------------------------------------------------------------------------------#
# SEÇÃO: POR CATALOGAR... #
Expand All @@ -228,4 +240,17 @@ tsuru platform-add php
# mkdir -p ~/tmp/tsuru/ola-mundo
# cd ~/tmp/tsuru/ola-mundo
# echo "<?php phpinfo(); ?>" > index.php
# tsuru app-create ola-mundo-php php
# tsuru app-create ola-mundo-php php # Error: You must provide a team to execute this action.
# tsuru help app-create
# tsuru app-create ola-mundo-php php --team padrao
# tsuru app-info --app ola-mundo-php
# tsuru app-deploy -a ola-mundo-php .
# Veja http://ola-mundo-php.192.99.69.2.nip.io/
# :D

# TODO: considerar demonstração com chatbot como o
# https://pypi.org/project/chatbotAI/ (fititnt, 2019-06-03 06:18 BRT)


# TODO: considerar uso de APIs como
# https://blog.rapidapi.com/top-search-apis/ (fititnt, 2019-06-03 06:24 BRT)

0 comments on commit 9aab4eb

Please sign in to comment.