A Clojure app for hackathon
hum dee dum... todo
Copyright © 2016 Meetup/Ken Shih
docker build -t badger-app . docker run -p 3000:3000 --rm --name badger-running badger-app IP_LOCAL_APP_CONTAINER=192.168.99.100 IP_LOCAL_APP_CONTAINER=(docker-machine ip default) docker kill badger-running curl http://192.168.99.100:3000/hi docker run -p 3000:80 --rm --name badger-running badger-app
export BUILD_NUMBER=17 make package publish
kubectl apply -f webserver-dply.yaml kubectl --namespace badger-ken describe deployments webserver curl http://104.196.11.217:3000/
{ "mrkdwn": false, "text": "joe has earned \n http://www.gummyworm.net/wp-content/uploads/2015/02/Pinguino-png-129x129.png" }
curl -X POST --data-urlencode payload='{"channel": "#random", "text": "joe has earned \n http://www.gummyworm.net/wp-content/uploads/2015/02/Pinguino-png-129x129.png"}' https://hooks.slack.com/services/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
http://www.http-kit.org/client.html
(require '[org.httpkit.client :as http]) (require '[clojure.data.json :as json])
(http/post "https://hooks.slack.com/services/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" {:form-params {:payload (json/write-str {:channel "#random" "text" "test from lein"})}})