ponos
v0.0.3
πόνος-希臘語中的痛苦!
PONOS是Matter Matter Matter SRE團隊每天使用Chatops工具消除辛勞工作的工具。它包括以下內容:
對於Ponos HTTP服務,您需要一個運行的供應商和工作空間的管理:
export AWS_REGION=us-east-1
export AWS_PROFILE= " <profile-for-infra-migrations> "
export PONOS_ACCOUNT_ID= " <aws-account-id-for-testing> "
export PONOS_KMS_KEY= " <aws-kms-id-for-testing> "
export PONOS_PROVISIONER_ADDRESS= < your-provisioner-url >
export PONOS_WORKSPACES_ADDRESS= < your-workspaces-url >
export BUILD_SERVICE=server
export PONOS_DB_DSN= " host=<db host> user=<db user> password=<db user's password> dbname=<db name> "
make run
對於本地開發,您可以通過本地PostgreSQL數據庫通過
docker-compose up
通過使用以下作為數據庫的DSN:
export PONOS_DB_DSN="host=localhost user=ponos_dev_user password=ponos_dev_password dbname=ponos_dev"
為了在本地運行所有數據庫遷移,您可以使用:
make goose COMMAND="up"
它使用引擎蓋下的鵝遷移工具。所有鵝命令都可用。
對於Ponos ChatOps
Matter Matter Mattering您需要運行以下操作:
export PONOS_APP_ROOT_URL=http:// < your-ip > :3000
export BUILD_SERVICE=app
make run
運行測試:
make test
Docker構建並運行本地Ponos服務。
make docker-build
docker run --rm -p 3000:3000
-e PONOS_PROVISIONER_ADDRESS=https:// < your-url >
-e PONOS_WORKSPACES_ADDRESS=https:// < your-url > mattermost/ponos-service:dev-local