File indexing completed on 2024-11-24 04:48:47

0001 SOURCEDIR=~/kdebuild/kube/source
0002 BUILDDIR=~/kdebuild/kube/build
0003 INSTALLDIR=~/kdebuild/kube/install
0004 NAME=kubedev
0005 DOCKERCMD = $(shell which podman || echo docker)
0006 
0007 build:
0008         ${DOCKERCMD} build -t ${NAME} .
0009 
0010 rebuild:
0011         ${DOCKERCMD} build --no-cache -t ${NAME} .
0012 
0013 run:
0014         ${DOCKERCMD} run --rm -ti --privileged -u developer --security-opt seccomp:unconfined -v /tmp/.docker.xauth:/tmp/.docker.xauth -v /tmp/.X11-unix:/tmp/.X11-unix --device /dev/dri/card0:/dev/dri/card0 -e DISPLAY=:0 -e XAUTHORITY=/tmp/.docker.xauth -v ${SOURCEDIR}:/src -v ${BUILDDIR}:/build -v ${INSTALLDIR}:/install -w /build/ ${NAME} '/bin/bash'