2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2018 Intel Corporation
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
15 k8s_path="$(git rev-parse --show-toplevel)"
16 export GOPATH=$k8s_path
18 echo "Compiling source code"
19 pushd $k8s_path/src/k8splugin/
24 mv $k8s_path/src/k8splugin/k8plugin .
25 mv $k8s_path/src/k8splugin/plugins/*.so .
27 echo "Cleaning previous execution"
29 image=$(grep "image.*k8plugin" docker-compose.yml)
30 docker images ${image#*:} -q | xargs docker rmi -f
31 docker ps -a --filter "status=exited" -q | xargs docker rm
33 echo "Starting docker building process"
34 docker-compose build --no-cache