diff options
Diffstat (limited to 'clover/clovisor/build-docker')
-rwxr-xr-x | clover/clovisor/build-docker | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clover/clovisor/build-docker b/clover/clovisor/build-docker new file mode 100755 index 0000000..4f776ec --- /dev/null +++ b/clover/clovisor/build-docker @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Copyright (c) Authors of Clover +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +if [ -z "$1" ] + then + kernel_ver=linux-headers-`uname -r` + else + kernel_ver=$1 +fi +cp bin/clovisor . +docker build --build-arg TARGET_KERNEL_VER=$kernel_ver -t clovisor . +docker tag clovisor localhost:5000/clovisor +docker push localhost:5000/clovisor +#docker tag clovisor s3wong/clovisor +#docker push s3wong/clovisor |