
This patch add a script to create v2plugin rootfs. 1. use local unix socket for v2plugin 2. add config.json for v2plugin 3. Add scripts to build v2plugin rootfs 4. Update devstack to use v2plugin Change-Id: I91d352a963840f33d1d2f9cea17ab6ac777d22bc Related-Bug: #1668486 Partially-Implements: BP docker-v2plugin
19 lines
614 B
Bash
Executable File
19 lines
614 B
Bash
Executable File
#!/bin/bash
|
|
# Script to create the kuryr-libnetwork docker v2 plugin
|
|
# run this script from kuryr-libnetwork directory with contrib/docker/v2plugin/v2plugin_rootfs.sh
|
|
|
|
echo "Copy kuryr-libentwork config.json"
|
|
rm -rf ./config.json
|
|
cp contrib/docker/v2plugin/config.json ./
|
|
echo "Creating rootfs for kuryr-libnetwork v2plugin"
|
|
docker build -t kuryr-libnetwork-rootfs .
|
|
id=$(docker create kuryr-libnetwork-rootfs true)
|
|
echo "Deleting old rootfs"
|
|
rm -rf rootfs
|
|
echo "Creating new rootfs"
|
|
mkdir -p rootfs
|
|
docker export "${id}" | tar -x -C rootfs
|
|
echo "Clean up"
|
|
docker rm -vf "${id}"
|
|
docker rmi kuryr-libnetwork-rootfs
|