git clone https://github.com/GoogleCloudPlatform/slack-samples.git
git clone https://github.com/GoogleCloudPlatform/slack-samples.gitcd slack-samples/notify
nano slack-hook# paste in URL, write out, and exitPAM_USER=$USER PAM_RHOST=testhost ./login-notify.sh
sudo nano /etc/ssh/sshd_config
"session optional pam_exec.so seteuid /etc/slack/login-notify.sh"
git clone https://github.com/GoogleCloudPlatform/slack-samples.gitcd slack-samples/bot
gcloud container clusters create my-cluster
./generate-secret.sh MY-SLACK-TOKENkubectl create -f slack-token-secret.yaml
export PROJECT_ID=my-cloud-project-iddocker build -t gcr.io/${PROJECT_ID}/slack-bot .
gcloud docker push gcr.io/${PROJECT_ID}/slack-bot
./generate-rc.sh $PROJECT_ID
kubectl create -f slack-bot-rc.yaml
kubectl get pods
kubectl delete -f slack-bot-rc.yaml
gcloud container clusters delete my-cluster
git clone https://github.com/GoogleCloudPlatform/slack-samples.gitcd slack-samples/command/1-custom-integration
goapp serve --host=0.0.0.0
goapp deploy -application ./
Use promo code NEXT1720 to save $300 off general admission
No comments :
Post a Comment