Please try it with this command.
docker run -e USERNAME="<Your mail address>" -e PASSWORD="<Your password>" -e WEBHOOK_URL="<Your slack incoming-webhook URL>" [-e TITLE="今日のFOLIO"] koukidan/folio-bot
After login successful, you will see like this image:
- Copy env file from
env.sample
toenv
and replace them for development info - Run this command for development
docker-compose up --build
This uses alpha version feature of Kubernetes. To use it on GKE, you must make alpha feature on
- Create Secret
kubectl create secret generic folio-bot-credentials --from-literal=username=[your username] --from-literal=password=[your password] --from-literal=webhook-url=[your slack incoming-webhook url]
- Create CronJob
kubectl create -f folio-cron.yml
That's all. You will show your data on slack if configuration succeeded.