fix - changed the terminal conf to docker

This commit is contained in:
bumpsoo 2025-02-10 14:12:52 +00:00
parent f09bf576c4
commit 29228057f6
11 changed files with 111 additions and 66 deletions

26
Makefile Normal file
View file

@ -0,0 +1,26 @@
RUN_OPTION=\
-it \
-v ${HOME}/.ssh:/home/$(shell id -un)/.ssh \
-v ${PWD}:/workspace
ifdef WAYLAND_DISPLAY
RUN_OPTION += \
-e WAYLAND_DISPLAY=${WAYLAND_DISPLAY} \
-e XDG_RUNTIME_DIR=/run/user/$(shell id -u) \
-v /run/user/$(shell id -u)/wayland-0:/run/user/$(shell id -u)/wayland-0
endif
BUILD_OPTION=\
--build-arg USERNAME=$(shell id -un) \
--build-arg UID=$(shell id -u)
ifdef FORCE_BUILD
BUILD_OPTION += \
--no-cache
endif
run: build
docker run ${RUN_OPTION} dev
build:
docker build ${BUILD_OPTION} -t dev .