|
| 1 | +# containerized-devstack |
| 2 | + |
| 3 | +This project easily deploys OpenStack in docker & docker-compose. |
| 4 | +This is mainly for development purpose. |
| 5 | + |
| 6 | +# Usage |
| 7 | + |
| 8 | +`docker-compose` will execute the initialization process of the |
| 9 | +devstack and automatically launch the major OpenStack components. |
| 10 | +This will take about 30 minutes. |
| 11 | + |
| 12 | +```bash |
| 13 | +$ sudo docker-compose up -d |
| 14 | + |
| 15 | +$ sudo docker-compose logs -f |
| 16 | +devstack_1 | This is your host IP address: 172.28.0.2 |
| 17 | +devstack_1 | Horizon is now available at http://172.28.0.2/dashboard |
| 18 | +devstack_1 | Keystone is serving at http://172.28.0.2/identity/ |
| 19 | +devstack_1 | The default users are: admin and demo |
| 20 | +devstack_1 | The password: nomoresecret |
| 21 | +devstack_1 | |
| 22 | +devstack_1 | Services are running under systemd unit files. |
| 23 | +devstack_1 | For more information see: |
| 24 | +devstack_1 | https://docs.openstack.org/devstack/latest/systemd.html |
| 25 | +devstack_1 | |
| 26 | +devstack_1 | DevStack Version: wallaby |
| 27 | +devstack_1 | Change: |
| 28 | +devstack_1 | OS Version: Ubuntu 20.04 focal |
| 29 | +``` |
| 30 | + |
| 31 | +You can use the OpenStack CLI in the container. |
| 32 | + |
| 33 | +```bash |
| 34 | +$ sudo docker-compose exec \ |
| 35 | + --user stack \ |
| 36 | + devstack \ |
| 37 | + /bin/bash -c 'source devstack/openrc admin admin; exec /bin/bash' |
| 38 | + |
| 39 | +stack@538b06c0fc0b:~$ openstack endpoint list |
| 40 | ++----------------------------------+-----------+--------------+----------------+---------+-----------+---------------------------------------------+ |
| 41 | +| ID | Region | Service Name | Service Type | Enabled | Interface | URL | |
| 42 | ++----------------------------------+-----------+--------------+----------------+---------+-----------+---------------------------------------------+ |
| 43 | +| 3f865729db974cae886b8e29cbbb91ed | RegionOne | nova_legacy | compute_legacy | True | public | http://172.28.0.2/compute/v2/$(project_id)s | |
| 44 | +| 5b4723017af2441dbd7bbccc7f196d49 | RegionOne | keystone | identity | True | admin | http://172.28.0.2/identity | |
| 45 | +| 5cfe0eae065c47bbb649937036021f6b | RegionOne | keystone | identity | True | public | http://172.28.0.2/identity | |
| 46 | +| 67c0675c2898463b8d0284206bf58ba9 | RegionOne | glance | image | True | public | http://172.28.0.2/image | |
| 47 | +| b8181b82dc124c089e8cd38fc23e58e8 | RegionOne | placement | placement | True | public | http://172.28.0.2/placement | |
| 48 | +| e17fe28cb31d478c81a3d9b597850ad5 | RegionOne | nova | compute | True | public | http://172.28.0.2/compute/v2.1 | |
| 49 | ++----------------------------------+-----------+--------------+----------------+---------+-----------+---------------------------------------------+ |
| 50 | +``` |
| 51 | + |
| 52 | +# Reference |
| 53 | + |
| 54 | +- https://github.com/janmattfeld/DockStack |
| 55 | +- https://github.com/bodenr/docker-devstack |
| 56 | +- https://github.com/ewindisch/dockenstack |
0 commit comments