1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #!/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
- upd:
- 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
|