summaryrefslogtreecommitdiffstats
path: root/clover/clovisor/build-docker
blob: 4f776ecf6b26f03258ac78d057674ed8e55adfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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