Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
68978c23
Commit
68978c23
authored
10 years ago
by
Jenkins
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Make the Horizon dashboard work properly"
parents
a99a861b
71576f4e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
compose/horizon.yml
+7
-0
7 additions, 0 deletions
compose/horizon.yml
docker/horizon/Dockerfile
+2
-2
2 additions, 2 deletions
docker/horizon/Dockerfile
docker/horizon/start.sh
+5
-3
5 additions, 3 deletions
docker/horizon/start.sh
tools/start
+3
-0
3 additions, 0 deletions
tools/start
with
17 additions
and
5 deletions
compose/horizon.yml
0 → 100644
+
7
−
0
View file @
68978c23
horizon
:
image
:
kollaglue/centos-rdo-horizon
name
:
horizon
net
:
"
host"
restart
:
always
env_file
:
-
openstack.env
This diff is collapsed.
Click to expand it.
docker/horizon/Dockerfile
+
2
−
2
View file @
68978c23
FROM
%%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
MAINTAINER
Kolla Project (https://launchpad.net/kolla)
RUN
yum
-y
install
\
openstack-dashboard
&&
yum clean all
RUN
yum
-y
install
openstack-dashboard
\
httpd httpd-mod-wsgi
&&
yum clean all
EXPOSE
80
...
...
This diff is collapsed.
Click to expand it.
docker/horizon/start.sh
+
5
−
3
View file @
68978c23
...
...
@@ -8,14 +8,16 @@ set -e
check_for_keystone
check_for_glance
check_for_nova
check_for_neutron
export
SERVICE_TOKEN
=
"
${
KEYSTONE_ADMIN_TOKEN
}
"
export
SERVICE_ENDPOINT
=
"
${
KEYSTONE_AUTH_PROTOCOL
}
://
${
KEYSTONE_ADMIN_SERVICE_HOST
}
:35357/v2.0"
cfg
=
/etc/openstack-dashboard/local_settings
sed
-ri
's/
#
ALLOWED_HOSTS = \['
\'
'horizon.example.com'
\'
', '
\'
'localhost'
\'
'\]/ALLOWED_HOSTS = \['
\'
'*'
\'
', \]/'
/etc/openstack-dashboard/local_settings
sed
-ri
's/ALLOWED_HOSTS = \['
\'
'horizon.example.com'
\'
', '
\'
'localhost'
\'
'\]/ALLOWED_HOSTS = \['
\'
'*'
\'
', \]/'
/etc/openstack-dashboard/local_settings
sed
-ri
's/OPENSTACK_KEYSTONE_URL = \"http:\/\/%s:5000\/v2.0\" % OPENSTACK_HOST/OPENSTACK_KEYSTONE_URL = \"http:\/\/'
"
$KEYSTONE_PUBLIC_SERVICE_HOST
"
':5000\/v2.0\"/'
/etc/openstack-dashboard/local_settings
sed
-ri
's/OPENSTACK_HOST = \"127.0.0.1\"/OPENSTACK_HOST = \"'
"
$KEYSTONE_PUBLIC_SERVICE_HOST
"
'\" /'
/etc/openstack-dashboard/local_settings
/
bin/keystone role-create
--name
${
HORIZON_KEYSTONE_USER
}
/
usr/sbin/httpd
-DFOREGROUND
This diff is collapsed.
Click to expand it.
tools/start
+
3
−
0
View file @
68978c23
...
...
@@ -49,6 +49,9 @@ docker-compose -f ./compose/nova-compute-network.yml up -d
echo
Starting heat.
docker-compose
-f
./compose/heat-api-engine.yml up
-d
echo
Starting Horizon.
docker-compose
-f
./compose/horizon.yml up
-d
IMAGE_URL
=
http://download.cirros-cloud.net/0.3.3/
IMAGE
=
cirros-0.3.3-x86_64-disk.img
if
!
[
-f
"
$IMAGE
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment