1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/semaphore/README.md

42 lines
843 B
Markdown
Raw Normal View History

2021-11-30 10:30:28 +00:00
semaphore
=========
Ansible [Semaphore][1] is beautiful web interface for running Ansible playbooks. You
do not need to change your playbooks to start using it.
2023-11-27 08:29:57 +00:00
## up and running
```
$ mkdir -m 777 data
$ docker compose up -d
$ curl :3000/api/ping
```
## call api (FIXME)
```bash
$ http :3000/api/auth/login auth=admin password=**********
HTTP/1.1 204 No Content
Content-Type: application/json
Date: Mon, 27 Nov 2023 07:58:43 GMT
Set-Cookie: semaphore=******; Path=/
$ http POST :3000/api/user/tokens 'Cookie: semaphore=******'
{
"created": "0001-01-01T00:00:00Z",
"expired": false,
"id": "***",
"user_id": 1
}
$ http :3000/api/project/1 'Authorization: Bearer ***'
HTTP/1.1 401 Unauthorized
Content-Length: 0
Content-Type: application/json
Date: Mon, 27 Nov 2023 08:27:14 GMT
```
2021-11-30 10:30:28 +00:00
[1]: https://ansible-semaphore.com/