fix - changed the terminal conf to docker
This commit is contained in:
parent
f09bf576c4
commit
29228057f6
11 changed files with 111 additions and 66 deletions
26
Makefile
Normal file
26
Makefile
Normal 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 .
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue