This commit is contained in:
2021-05-04 14:53:05 +02:00
parent 8e84a71d83
commit c461d5b1e4
2 changed files with 41 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/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:
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)
buildnc:
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)
up:
docker-compose up -d
upbuild:
docker-compose up -d --build
ps:
docker-compose ps
logs:
docker-compose logs -f
down:
docker-compose down
exec_client:
docker exec -it gdp_client_1 sh
exec_basex:
docker exec -it gdp_basex_1 sh
+1 -1
View File
@@ -81,7 +81,7 @@ docker-compose up -d [client | basex]
## Prod
run containers for prod
```
docker-compose -f docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
```
client will be built the client container stop