ponos
v0.0.3
πόνος - ความเจ็บปวดในภาษากรีก!
Ponos เป็นเครื่องมือที่ทีม 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
Moster Most คุณต้องเรียกใช้สิ่งต่อไปนี้:
export PONOS_APP_ROOT_URL=http:// < your-ip > :3000
export BUILD_SERVICE=app
make run
การทดสอบที่ใช้งาน:
make test
Docker Build and Run Localaly Ponos Service
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