Skip to content

Commit

Permalink
Merge pull request #501 from samuelveigarangel/fix-command-update-mak…
Browse files Browse the repository at this point in the history
…efile

Correção de Comando de Exclusão e Atualização de Imagens Docker no Makefile
  • Loading branch information
samuelveigarangel authored Jul 12, 2024
2 parents c995e87 + 223013a commit 95da4a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ clean_celery_logs:
@sudo truncate -s 0 $$(docker inspect --format='{{.LogPath}}' scielo_core_local_celeryworker)

exclude_upload_production_django: ## Exclude all productions containers
@docker rmi -f $(shell docker images --filter=reference='upload_production*' -q)
@echo "Exclude all upload production containers"
@if [ -n "$$(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'infrascielo/upload' | grep -v 'upload_production_postgres')" ]; then \
docker rmi -f $$(docker images --format '{{.Repository}}:{{.Tag}}' | grep 'infrascielo/upload' | grep -v 'upload_production_postgres'); \
echo "Excluded all upload production containers"; \
else \
echo "No images found for 'upload_production*'"; \
fi

update: stop rm exclude_upload_production_django up

0 comments on commit 95da4a6

Please sign in to comment.