Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tchellomello/pulp3-docker
Pulp3 Docker
https://github.com/tchellomello/pulp3-docker
Last synced: 6 days ago
JSON representation
Pulp3 Docker
- Host: GitHub
- URL: https://github.com/tchellomello/pulp3-docker
- Owner: tchellomello
- License: gpl-3.0
- Created: 2018-07-16T23:31:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-19T02:18:13.000Z (over 6 years ago)
- Last Synced: 2024-12-20T23:31:12.507Z (16 days ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - tchellomello/pulp3-docker - Pulp3 Docker (others)
README
# pulp3-docker
This is an still **development** project to run Pulp v3 on a docker compose/swarm environment using a loadbalancer.To run the project, make sure you have working Docker and that you installed the `docker-compose` software.
** Checkout the repository:
```bash
$ git clone https://github.com/tchellomello/pulp3-docker.git
```** Start the docker-compose
```bash
$ cd pulp3-docker
$ docker-compose -p pulpv3 up$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e2d2e44dd63 tchellomello/pulp-web:nightly "/nightly/docker-ent…" 12 seconds ago Up 10 seconds 0.0.0.0:8000->8000/tcp pulpv3_pulp_web_1
67ad6fc825e4 tchellomello/pulp-worker:nightly "/nightly/docker-ent…" 8 minutes ago Up 11 seconds pulpv3_worker_1
2b61a699f734 tchellomello/pulp-worker:nightly "/nightly/docker-ent…" 8 minutes ago Up 12 seconds pulpv3_resource_manager_1
6871baf88fd6 postgres:latest "docker-entrypoint.s…" 8 minutes ago Up 14 seconds 0.0.0.0:5432->5432/tcp pulpv3_pgsql_1
48409f19a154 redis:4-alpine "docker-entrypoint.s…" 8 minutes ago Up 13 seconds 0.0.0.0:6379->6379/tcp pulpv3_redis_1
7ea97cdfb7b9 traefik:latest "/traefik --defaulte…" 8 minutes ago Up 15 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp pulpv3_reverse_proxy_1```
** To test, open a console to one running worker
```bash
$ docker exec -it pulpv3_worker_1 /bin/bash
bash-4.4# psql -h pgsql -U pulp
Password for user pulp:
psql (10.4)
Type "help" for help.pulp=# select * from pulp_app_worker ;
id | created | last_updated | name | last_heartbeat | gracefully_stopped | cleaned_up
--------------------------------------+-------------------------------+-------------------------------+---------------------------------------------+-------------------------------+--------------------+------------
6deeb82e-ce4b-4c24-b1ef-88aa68fda053 | 2018-07-18 20:34:28.81905+00 | 2018-07-18 20:34:28.819073+00 | reserved_resource_worker_17515@67ad6fc825e4 | 2018-07-18 20:34:58.971157+00 | f | f
8c18a5ba-a14d-4756-bae7-8ef797ea6c0f | 2018-07-18 20:34:27.005369+00 | 2018-07-18 20:34:27.005395+00 | reserved_resource_worker_14228@2b61a699f734 | 2018-07-18 20:35:12.212595+00 | f | f
(2 rows)
```** Note that the port 80 on the host is being loadbalanced but for troubleshooting, the port 8000 is also published bypassing the loadbalancer. To test it:
```bash
# via loadbalancer
$ curl -H Host:worker.example.com http://127.0.0.1# bypassing
$ curl http://127.0.0.1:8000
```