-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding images and scripts for pulling images
- Loading branch information
Showing
10 changed files
with
141 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Define the list of directories | ||
DIRS := 01_pinot 02_pinot-kafka 03_pinot-kafka-flink | ||
|
||
# Default target | ||
all: pull_images | ||
|
||
# Target to pull images in each directory | ||
pull_images: | ||
@for dir in $(DIRS); do \ | ||
echo "Pulling Docker images in \033[1m$$dir\033[0m..."; \ | ||
(cd $$dir && docker compose pull); \ | ||
echo "Completed pulling images in \033[1m$$dir\033[0m."; \ | ||
done | ||
|
||
# Target to stop all containers in each directory | ||
stop_containers: | ||
@for dir in $(DIRS); do \ | ||
echo "Stopping all containers in \033[1m$$dir\033[0m..."; \ | ||
(cd $$dir && docker compose down -v); \ | ||
echo "All containers in \033[1m$$dir\033[0m have been stopped and volumes removed."; \ | ||
done | ||
|
||
.PHONY: all pull_images stop_containers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.