123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #!/usr/bin/make
- SHELL = /bin/sh
- USER_UID := $(shell id -u)
- USER_UNAME := $(shell id -un)
- USER_GID := $(shell id -g)
- USER_GNAME := $(shell id -gn)
- export USER_UID
- export USER_UNAME
- export USER_GID
- export USER_GNAME
- build: build_basex build_client
- build_basex:
- docker-compose build basex
- build_client:
- docker-compose build --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) client
- buildnc: buildnc_basex buildnc_client
- buildnc_basex:
- docker-compose build --pull --no-cache basex
- buildnc_client:
- docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) client
- up:
- docker-compose up -d
- up_basex:
- docker-compose up -d basex
- up_client:
- docker-compose up -d client
- restart_basex:
- docker-compose restart basex
-
- restart_client:
- docker-compose restart client
-
- # upbuild:
- # docker-compose up -d --build
- ps:
- docker-compose ps
- logs:
- docker-compose logs -f
- logs_basex:
- docker-compose logs basex -f
- logs_client:
- docker-compose logs client -f
- down:
- docker-compose down
- exec_client:
- docker exec -it gdp-client-1 sh
- exec_basex:
- docker exec -it gdp-basex-1 sh
- exec_basex_root:
- docker exec -u 0 -it gdp-basex-1 sh
|