Merge "Add openvswitch container"
This commit is contained in:
commit
893ddcc73d
5
docker/centos/binary/openvswitch/ovs-base/Dockerfile
Normal file
5
docker/centos/binary/openvswitch/ovs-base/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
RUN yum install -y openvswitch \
|
||||
&& yum clean all
|
1
docker/centos/binary/openvswitch/ovs-base/build
Symbolic link
1
docker/centos/binary/openvswitch/ovs-base/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../../../tools/build-docker-image
|
@ -0,0 +1,7 @@
|
||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
||||
|
1
docker/centos/binary/openvswitch/ovs-db-server/build
Symbolic link
1
docker/centos/binary/openvswitch/ovs-db-server/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/binary/openvswitch/ovs-db-server/start.sh
Symbolic link
1
docker/centos/binary/openvswitch/ovs-db-server/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/openvswitch/ovs-db-server/start.sh
|
6
docker/centos/binary/openvswitch/ovs-vswitchd/Dockerfile
Normal file
6
docker/centos/binary/openvswitch/ovs-vswitchd/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%ovs-base:%%KOLLA_TAG%%
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
|
||||
CMD ["/start.sh"]
|
1
docker/centos/binary/openvswitch/ovs-vswitchd/build
Symbolic link
1
docker/centos/binary/openvswitch/ovs-vswitchd/build
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../../tools/build-docker-image
|
1
docker/centos/binary/openvswitch/ovs-vswitchd/start.sh
Symbolic link
1
docker/centos/binary/openvswitch/ovs-vswitchd/start.sh
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../common/openvswitch/ovs-vswitchd/start.sh
|
16
docker/common/openvswitch/ovs-db-server/start.sh
Executable file
16
docker/common/openvswitch/ovs-db-server/start.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
LOG_FILE="/var/log/openvswitch/ovsdb-server.log"
|
||||
DB_FILE="/etc/openvswitch/conf.db"
|
||||
UNIXSOCK_DIR="/var/run/openvswitch"
|
||||
UNIXSOCK="${UNIXSOCK_DIR}/db.sock"
|
||||
|
||||
mkdir -p "${UNIXSOCK_DIR}"
|
||||
|
||||
if [[ ! -e "${DB_FILE}" ]]; then
|
||||
ovsdb-tool create "${DB_FILE}"
|
||||
fi
|
||||
|
||||
exec ovsdb-server $DB_FILE -vconsole:emer -vsyslog:err -vfile:info --remote=punix:"${UNIXSOCK}" --log-file="${LOG_FILE}"
|
14
docker/common/openvswitch/ovs-vswitchd/start.sh
Executable file
14
docker/common/openvswitch/ovs-vswitchd/start.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
modprobe openvswitch
|
||||
|
||||
LOG_FILE="/var/log/openvswitch/ovs-vswitchd.log"
|
||||
DB_FILE="/etc/openvswitch/conf.db"
|
||||
UNIXSOCK_DIR="/var/run/openvswitch"
|
||||
UNIXSOCK="${UNIXSOCK_DIR}/db.sock"
|
||||
|
||||
mkdir -p "${UNIXSOCK_DIR}"
|
||||
|
||||
exec ovs-vswitchd unix:"${UNIXSOCK}" -vconsole:emer -vsyslog:err -vfile:info --mlockall --log-file="${LOG_FILE}"
|
Loading…
x
Reference in New Issue
Block a user