Sign inSign up

2424833f/webhook

By 2424833f

Updated almost 2 years ago

Image
0

761

2424833f/webhook repository overview

Guide to Run WebHook Docker Application

  1. Make sure Docker is installed on your machine. If not, you can download and install it from here.

  2. Open a terminal or command prompt on your system:

    • Windows: Press Win + R, type cmd or PowerShell, and press Enter.
    • MacOS: Open Terminal from the Applications > Utilities folder.
    • Linux: Open the terminal from your application launcher or use the shortcut Ctrl + Alt + T.
  3. Run the following command to download the Docker image from Docker Hub:

    docker pull 2424833f/webhook
    
  4. Once the image is downloaded, you can run the container with the following command:

    docker run -d -p 4567:4567 --name webhook-app 2424833f/webhook
    
  5. To verify that the container is running, execute:

    docker ps
    
  6. Once the container is running, access the application in your browser or webhook client at:

    http://localhost:4567
    
  7. If you need to access the container logs, use the following command:

    docker logs webhook-app
    
  8. To stop the container, use:

    docker stop webhook-app
    
  9. To remove the stopped container, use:

    docker rm webhook-app
    

Webhook Request Example

To test the Webhook, use a tool like Postman or cURL to send a POST request to your running container.

Example cURL request:
POST http://localhost:4567/webhook 
Go to Body in raw 

Copy this

{
  "event": "prueba",
  "data": {
    "message": "HELLO, This is a test :)"
  }
}
and Send

This should appear in our Postman and we verify if the POST was made

{
    "message": "Hello World: Webhook Successfully Received"
}


Additional Notes

  • Make sure to have your Gemfile and Gemfile.lock properly set up if you want to rebuild the Docker image locally.
  • This project uses Sinatra as the web framework for the Webhook service.
Connect to the repository:

Tag summary

Content type

Image

Digest

sha256:ed3b360b7

Size

349.9 MB

Last updated

almost 2 years ago

docker pull 2424833f/webhook