message: Support docker running on btrfs
diff: @@ -59,8 +59,12 @@ DOCKER_BUILD_PARAMS := --quiet
  # If it's not set we assume that we are running local and just call it lagoon.
  CI_BUILD_TAG ?= lagoon
  -# Version and Hash of the OpenShift cli that should be downloaded
  +# Local environment
  +ARCH := $(shell uname | tr '[:upper:]' '[:lower:]')
  +LAGOON_VERSION := $(shell git describe --tags --exact-match 2>/dev/null || echo development)
  +DOCKER_DRIVER := $(shell docker info -f '{{.Driver}}')
  +# Version and Hash of the OpenShift cli that should be downloaded
  MINISHIFT_VERSION := 1.34.1
  OPENSHIFT_VERSION := v3.11.0
  MINISHIFT_CPUS := 6
  @@ -80,8 +84,6 @@ MINIKUBE_DISK_SIZE := 30g
  K3D_VERSION := 1.4.0
  K3D_NAME := k3s-$(CI_BUILD_TAG)
  -ARCH := $(shell uname | tr '[:upper:]' '[:lower:]')
  -LAGOON_VERSION := $(shell git describe --tags --exact-match 2>/dev/null || echo development)
  # Name of the Branch we are currently in
  BRANCH_NAME :=
  DEFAULT_ALPINE_VERSION := 3.11
  @@ -1005,6 +1007,13 @@ else
  chmod a+x local-dev/helm/helm
  endif
  +ifeq ($(DOCKER_DRIVER), btrfs)
  +# https://github.com/rancher/k3d/blob/master/docs/faq.md
  +K3D_BTRFS_VOLUME := --volume /dev/mapper:/dev/mapper
  +else
  +K3D_BTRFS_VOLUME :=
  +endif
  +
  k3d: local-dev/k3d local-dev/kubectl local-dev/helm/helm build/docker-host
  $(MAKE) local-registry-up
  $(info starting k3d with name $(K3D_NAME))
  @@ -1018,6 +1027,7 @@ endif
  --name $(K3D_NAME) \
  --image docker.io/rancher/k3s:$(K3S_VERSION) \
  --volume $$PWD/local-dev/k3d-registries.yaml:/etc/rancher/k3s/registries.yaml \
  + $(K3D_BTRFS_VOLUME) \
  -x --no-deploy=traefik \
  --volume $$PWD/local-dev/k3d-nginx-ingress.yaml:/var/lib/rancher/k3s/server/manifests/k3d-nginx-ingress.yaml
  echo "$(K3D_NAME)" > $@
  