GithubHelp home page GithubHelp logo

shushen / docker-devstack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bodenr/docker-devstack

0.0 2.0 0.0 212 KB

Generic docker container to run devstack services

License: Apache License 2.0

Shell 30.18% Python 69.82%

docker-devstack's Introduction

docker-devstack

Generic docker container to run devstack services - currently a PoC / toy and not ready for anything useful.

The idea is to provide a generic docker container which can be used to run 1 or more specific OpenStack services installed via devstack in the container.

Building the image

docker build -t devstack .

Yaml to devstack local conf

To simplify the creation of devstack's local.conf this image contains a simple 'yaml to local conf' filter which is capable of taking a yaml file as input and spitting out a devstack local.conf as output.

See the sample local.yaml

Running the image

Right now the init command in the container expects a local.conf or local.yaml to be make available under /usr/local/devstack/ when starting the container. It will look for local.yaml or local.conf and if a yaml is found convert and write it to /home/stack/devstack in the container; if local.conf is found it just copies it.

This allows you to bind mount your devstack local conf / yaml into the container to conf devstack.

The init script also supports an env var called RESET which when set (to anything) will clean up the previous devstack install including deleting the git dirs before re stacking.

Example useage:

  • Create a local.conf or local.yaml on your host system which will drive the containerized devstack.

  • Run the container bind mounting your conf or yaml:

docker run -d --privileged=true -v ~/devstack/local.yaml:/usr/local/devstack devstack

Note that --privileged=true is needed by some services to perform iptables and related commands which require Linux capabilities.

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.