mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
255 B
15 lines
255 B
4 years ago
|
#!/bin/bash
|
||
|
set -e
|
||
|
cd $(dirname $0)
|
||
|
|
||
|
K3S_TAG="${1:-v1.18.10+k3s1}"
|
||
|
IMAGE_TAG="${K3S_TAG/+/-}"
|
||
|
|
||
|
if [ -d k3s ]; then
|
||
|
rm -rf k3s
|
||
|
fi
|
||
|
git clone --depth 1 https://github.com/rancher/k3s.git -b $K3S_TAG
|
||
|
cd k3s
|
||
|
make
|
||
|
cd ..
|
||
|
docker build -t k3s-gpu:$IMAGE_TAG .
|