diff options
Diffstat (limited to 'deployments/build.sh')
-rwxr-xr-x | deployments/build.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/deployments/build.sh b/deployments/build.sh index a88ebbc7..3a6ea856 100755 --- a/deployments/build.sh +++ b/deployments/build.sh @@ -18,12 +18,15 @@ pushd $k8s_path/src/k8splugin/ make popd -pushd $k8s_path/deployments -for file in k8plugin *so; do - rm -f $file - mv $k8s_path/src/k8splugin/$file . -done +rm -f k8plugin *so +mv $k8s_path/src/k8splugin/k8plugin . +mv $k8s_path/src/k8splugin/plugins/*.so . + +echo "Cleaning previous execution" +docker-compose kill +image=$(grep "image.*k8plugin" docker-compose.yml) +docker images ${image#*:} -q | xargs docker rmi -f +docker ps -a --filter "status=exited" -q | xargs docker rm echo "Starting docker building process" docker-compose build --no-cache -popd |