mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-15 20:38:04 +00:00
chore: Update scripts.
This commit is contained in:
parent
9f1f9d0f78
commit
4eee79bcf2
16
bin/bash
Executable file
16
bin/bash
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
###
|
||||
# Simple script to get a shell into the container.
|
||||
###
|
||||
sudo docker run \
|
||||
--name webhookd \
|
||||
--rm \
|
||||
--env-file="./etc/env.conf" \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /home/nicolas/.ssh/deploy_rsa:/root/.ssh/id_rsa \
|
||||
-it \
|
||||
--entrypoint="/bin/bash" \
|
||||
ncarlier/webhookd \
|
||||
-c /bin/bash
|
11
bin/start
Executable file
11
bin/start
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
#-v ~/.ssh/deploy_rsa:/var/opt/webhookd/deploy_rsa \
|
||||
sudo docker run \
|
||||
--name webhookd \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /home/nicolas/.ssh/deploy_rsa:/root/.ssh/id_rsa \
|
||||
-it --rm \
|
||||
-P \
|
||||
--env-file ./etc/env.conf \
|
||||
ncarlier/webhookd
|
||||
|
|
@ -1,21 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
IP=`sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' webhookd`
|
||||
|
||||
echo "Test bad URL"
|
||||
curl -H "Content-Type: application/json" \
|
||||
--data @assets/bitbucket.json \
|
||||
http://localhost:8080/bad/action
|
||||
http://$IP:8080/bad/action
|
||||
|
||||
echo "Test Bitbucket hook"
|
||||
curl -H "Content-Type: application/json" \
|
||||
--data @assets/bitbucket.json \
|
||||
http://localhost:8080/bitbucket/echo
|
||||
http://$IP:8080/bitbucket/echo
|
||||
|
||||
echo "Test Github hook"
|
||||
curl -H "Content-Type: application/json" \
|
||||
--data @assets/github.json \
|
||||
http://localhost:8080/github/echo
|
||||
http://$IP:8080/github/echo
|
||||
|
||||
echo "Test Docker hook"
|
||||
curl -H "Content-Type: application/json" \
|
||||
--data @assets/docker.json \
|
||||
http://localhost:8080/docker/echo
|
||||
http://$IP:8080/docker/echo
|
||||
|
Loading…
Reference in New Issue
Block a user