Make sure Docker is installed on your machine. If not, you can download and install it from here.
Open a terminal or command prompt on your system:
Win + R, type cmd or PowerShell, and press Enter.Terminal from the Applications > Utilities folder.Ctrl + Alt + T.Run the following command to download the Docker image from Docker Hub:
docker pull 2424833f/webhook
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
To verify that the container is running, execute:
docker ps
Once the container is running, access the application in your browser or webhook client at:
http://localhost:4567
If you need to access the container logs, use the following command:
docker logs webhook-app
To stop the container, use:
docker stop webhook-app
To remove the stopped container, use:
docker rm webhook-app
To test the Webhook, use a tool like Postman or cURL to send a POST request to your running container.
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"
}
Gemfile and Gemfile.lock properly set up if you want to rebuild the Docker image locally.Sinatra as the web framework for the Webhook service.Content type
Image
Digest
sha256:ed3b360b7…
Size
349.9 MB
Last updated
almost 2 years ago
docker pull 2424833f/webhook