Giter Site home page Giter Site logo

docker-openstack's Introduction

docker-openstack

Run OpenStack Havana in a Docker container. Includes Keystone, Nova Controller, Glance, Dashboard, MySQL, Apache, and RabbitMQ

Nova-Compute is setup for provisioning Docker images only. Details here http://docs.openstack.org/trunk/config-reference/content/docker.html

Prepare Vagrant

If you're using the offical Docker Vagrantfile to run Docker then you must export FORWARD_DOCKER_PORTS=1 to forward all ports in the 49xxx range.

Start OpenStack container

After building the image using the build script, use shell script to launch OpenStack inside Docker.

Start OpenStack Services

Run supervisord& to start all OpenStack Services.

Docker in Docker

You now have Docker running inside Docker.
The docker ps command will show that the Docker Registry is running in a container too. Run the install-ubuntu-image.sh script to pull the ubuntu image into your local Registry.

Using Horizon

  1. Point your browser to http://localhost:49802/horizon
  2. You will now be able to launch Docker containers inside OpenStack!

Heat

Heat has been configured with the additional Docker plugin as described here. https://github.com/dotcloud/openstack-heat-docker

That means Heat can create stacks directly with Docker instead of Nova. I'm still getting some errors with the wordpress example.

Special thanks to Jérôme Petazzoni for helping me with a previous DNS/Networking problem. Find out more from his blog entry here http://jpetazzo.github.io/2013/10/16/configure-docker-bridge-network/

License

MIT License. Copyright (c) 2015 Ming Fang

docker-openstack's People

Contributors

kanaka avatar mingfang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-openstack's Issues

MySQL fails to start due to Privileged mode

===== Starting WITHOUT privileged mode =====
root@ubuntu:/home/franck/Sandbox/Docker/docker-openstack# docker run -i -t openstack /bin/bashroot@e1b021ee566b:/# /usr/sbin/mysqld &
[1] 9

root@e1b021ee566b:/# 140106 9:07:41 [Note] Plugin 'FEDERATED' is disabled.
140106 9:07:41 InnoDB: The InnoDB memory heap is disabled
140106 9:07:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140106 9:07:41 InnoDB: Compressed tables use zlib 1.2.3.4
140106 9:07:41 InnoDB: Initializing buffer pool, size = 128.0M
140106 9:07:41 InnoDB: Completed initialization of buffer pool
140106 9:07:41 InnoDB: highest supported file format is Barracuda.
140106 9:07:42 InnoDB: Waiting for the background threads to start
140106 9:07:43 InnoDB: 1.1.8 started; log sequence number 6350661
140106 9:07:43 [Note] Event Scheduler: Loaded 0 events
140106 9:07:43 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.22-0ubuntu1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)

root@e1b021ee566b:/# exit
exit

===== Starting WITH privileged mode =====
root@ubuntu:/home/franck/Sandbox/Docker/docker-openstack# docker run -privileged -i -t openstack /bin/bash
root@3c20555d0620:/# /usr/sbin/mysqld &
[1] 9

root@3c20555d0620:/# /usr/sbin/mysqld: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied

[1]+ Exit 127 /usr/sbin/mysqld
root@3c20555d0620:/# exit
exit
root@ubuntu:/home/franck/Sandbox/Docker/docker-openstack#

Missing license

@mingfang We would like to update this and use it with current OpenStack releases and also begin doing nightly builds/tests to make sure that it continues to build and fix issues as they arise. Can you clarify the license of this project (typically with a LICENSE or LICENSE.txt). If you have a preferred open source license I can create a pull request for you. Seems like MIT is a popular one for sharing Dockerfiles and their associated resources. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.