Skip to content

Commit

Permalink
fix podman to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sounishnath003 committed Mar 25, 2024
1 parent 850459a commit 4d6b004
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
.PHONY = setup deps compose-up compose-down compose-destroy

# to check if docker is installed on the machine
DOCKER := $(shell command -v podman)
DOCKER_COMPOSE := $(shell command -v podman-compose)
DOCKER := $(shell command -v docker)
DOCKER_COMPOSE := $(shell command -v docker-compose)
deps:
ifndef DOCKER
@echo "Docker is not available. Please install docker"
Expand All @@ -20,14 +20,14 @@ setup:
sh +x build

compose-down: deps
podman volume ls
podman-compose ps
podman images
podman-compose down;
docker volume ls
docker-compose ps
docker images
docker-compose down;

compose-up: deps compose-down
podman-compose up --build
docker-compose up --build

compose-destroy: deps
podman images | grep -i devika | awk '{print $$3}' | xargs podman rmi -f
podman volume prune
docker images | grep -i devika | awk '{print $$3}' | xargs docker rmi -f
docker volume prune

0 comments on commit 4d6b004

Please sign in to comment.