-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add init container to inject db init script
- Loading branch information
amber
committed
Oct 24, 2024
1 parent
fd2e606
commit 1ab8598
Showing
5 changed files
with
83 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ spec: | |
limits: | ||
cpu: "512m" | ||
memory: "512Mi" | ||
persistence: | ||
storageClassName: gp3 | ||
storage: 10Gi |
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,21 @@ | ||
#!/bin/bash | ||
|
||
# List of services | ||
services=("account" "item" "notification" "wishlist" "web") | ||
|
||
# Loop through each service | ||
for service in "${services[@]}"; do | ||
echo "Building and pushing Docker image for $service..." | ||
|
||
# Build the Docker image with two tags | ||
docker build -t z1yoon/nshm-${service}:latest \ | ||
--build-arg NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL} \ | ||
./services/${service} | ||
|
||
# Push both tags | ||
docker push z1yoon/nshm-${service}:${GITHUB_SHA} | ||
docker push z1yoon/nshm-${service}:latest | ||
|
||
echo "$service Docker image pushed!" | ||
done | ||
|