Skip to content

Commit

Permalink
Fix Makefile bugs and overall improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
0uep committed Jun 12, 2024
1 parent efa14b5 commit 71fd87e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,24 @@ export help
compose-up:
@export DOCKER_BUILDKIT=1 ; \
export COMPOSE_DOCKER_CLI_BUILD=1 ; \
{ command -v podman-compose && set -x && podman-compose -f compose.yml up --build -d;} || \
{ command -v docker-compose && set -x && docker-compose -f compose.yml up --build -d;} || \
{ command -v docker && docker help|grep -wq compose && set -x && docker compose -f compose.yml up --build -d;} || \
{ command -v podman-compose && ( set -x && podman-compose -f compose.yml up --build -d ) ; } || \
{ command -v docker-compose && ( set -x && docker-compose -f compose.yml up --build -d ) ; } || \
{ command -v docker && docker help|grep -wq compose && ( set -x && docker compose -f compose.yml up --build -d ) ; } || \
{ echo "$$help"; false; }

# Open browser on localhost:8090 if Quid is running
@{ command -v podman && set -x && podman ps -qf name=quid || set -x && docker ps -qf name=quid ; } | \
@{ command -v podman && (set -x && podman ps -qf name=quid) || (set -x && docker ps -qf name=quid) ; } | \
grep -s . && xdg-open http://localhost:8090

# Default web login:
# namespace = Quid
# username = admin
# password = myAdminPassword

# Print containers logs. [Ctrl+C] to stop the logs printing.
@{ command -v podman-compose && set -x && docker-compose -f compose.yml logs --follow;} || \
{ command -v docker-compose && set -x && podman-compose -f compose.yml logs --follow;} || \
{ command -v docker && docker help|grep -wq compose && set -x && docker compose -f compose.yml logs --follow;}
@{ command -v podman-compose && ( set -x && podman-compose -f compose.yml logs --follow ) ; } || \
{ command -v docker-compose && ( set -x && docker-compose -f compose.yml logs --follow ) ; } || \
{ command -v docker && docker help|grep -wq compose && ( set -x && docker compose -f compose.yml logs --follow ) ; }

.PHONY: compose-rm
compose-rm:
Expand Down

0 comments on commit 71fd87e

Please sign in to comment.