diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-09-28 13:29:01 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-09-28 13:29:01 +0000 |
| commit | dab1382909c512564352c78defce00667c86fc2b (patch) | |
| tree | ff5213c13987586785db0f8e533649e7fe4081e9 /docker/openvswitch/openvswitch-db-server | |
| parent | e69571eeb3729907be2ea6acb80904c4790a6916 (diff) | |
| parent | 76920be5fad2bb58680fd21681713b236bea7edf (diff) | |
| download | kolla-dab1382909c512564352c78defce00667c86fc2b.tar.gz kolla-dab1382909c512564352c78defce00667c86fc2b.zip | |
Merge "Rename ovs to openvswitch"
Diffstat (limited to 'docker/openvswitch/openvswitch-db-server')
| -rw-r--r-- | docker/openvswitch/openvswitch-db-server/Dockerfile.j2 | 8 | ||||
| -rwxr-xr-x | docker/openvswitch/openvswitch-db-server/start.sh | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 b/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 new file mode 100644 index 000000000..023bba83b --- /dev/null +++ b/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 @@ -0,0 +1,8 @@ +FROM {{ namespace }}/{{ image_prefix }}openvswitch-base:{{ tag }} +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +COPY start.sh / + +CMD ["/start.sh"] + +{{ include_footer }} diff --git a/docker/openvswitch/openvswitch-db-server/start.sh b/docker/openvswitch/openvswitch-db-server/start.sh new file mode 100755 index 000000000..60347b2dc --- /dev/null +++ b/docker/openvswitch/openvswitch-db-server/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -o errexit + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +mkdir -p "/run/openvswitch" +if [[ ! -e "/etc/openvswitch/conf.db" ]]; then + ovsdb-tool create "/etc/openvswitch/conf.db" +fi + +exec $CMD |
