Horizon Image Based on Mitaka

Horizon

All accounts' password is root.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# create container and expose some ports
docker container run -d --privileged --name ho \
-p 80:80 -p 5000:5000 -p 35357:35357 \
--add-host info:127.0.0.1 --add-host controller:127.0.0.1 \
purplemystic/mitaka_horizon init

# restart rabbitmq and apache2
# mysql and apache2 use domain: controller
# rabbitmq use domain: info(For more information: https://blog.caoyu.info/rabbitmq-lost-user-info.html)
docker container exec -it ho bash -c "service mysql restart; service rabbitmq-server restart; service memcached restart; service apache2 restart"

docker container exec -it ho bash
# login to ho, and source openrc
source ~/admin-openrc

# access by browser
# configure your /etc/hosts
echo "127.0.0.1 info controller" >> /etc/hosts
# Finally, you can login by browser
http://127.0.0.1/horizon