Skip to content

Instantly share code, notes, and snippets.

@k4kratik
Last active October 12, 2020 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k4kratik/2d31ac16c5a28c30c65bb617a81c9fe6 to your computer and use it in GitHub Desktop.
Save k4kratik/2d31ac16c5a28c30c65bb617a81c9fe6 to your computer and use it in GitHub Desktop.
Instructions on How to use k4kratik/zoho Docker Image to Automate your login on Zoho People.

To make this work as expected, provide these three Environments correctly and then you are good to go!

  1. ENV1 - your email - Plain text
  2. ENV2 - your password - Base64 encoded
  3. ZOHO_NOTIFY_WEBHOOK - Webhook, where you want to send notifications - Plain Text

I have tried with Webhook URL of one of my room on Google Chat.

So for setting up you env, do this -

export ENV1=kratik12345@gmail.com
export ENV2="U3VwZXJTZWNyZXRQYXNzd29yZEZvclpvaG8K" #(this is base64 encoded password of your account, which was **SuperSecretPasswordForZoho** in this case )
export ZOHO_NOTIFY_WEBHOOK="https://chat.googleapis.com/v1/spaces/kdkljklrgrgkdjhrjkdrrjkhhnrd;so;hsehrhuihegguihuirhuh"

Now, When you want to run and check the logs live -

sudo docker run -e ENV1=$ENV1 -e ENV2=$ENV2 -e ZOHO_NOTIFY_WEBHOOK=$ZOHO_NOTIFY_WEBHOOK --name zoho-container -it k4kratik/zoho

or If you want it to run in background -

sudo docker run -e ENV1=$ENV1 -e ENV2=$ENV2 -e ZOHO_NOTIFY_WEBHOOK=$ZOHO_NOTIFY_WEBHOOK --name zoho-container -itd k4kratik/zoho

And check logs by running:

sudo docker logs -f zoho-container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment