Skip to content

Commit

Permalink
feat: thudner docker (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raezil authored Mar 2, 2025
1 parent d2964cb commit 6f2c241
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 10 additions & 0 deletions install-thunder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ case "$1" in
shift
thunder-generate "$@"
;;
docker)
echo "Enter your Docker Hub username:"
read docker_username
echo "🔨 Building Docker image..."
docker build -t ${docker_username}/app:latest .
echo "🔑 Logging in to Docker Hub..."
docker login
echo "⬆️ Pushing Docker image..."
docker push ${docker_username}/app:latest
;;
deploy)
echo "🚀 Starting Minikube..."
minikube start
Expand Down
7 changes: 2 additions & 5 deletions thunder-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A custom CLI tool to automate:
- **Generating gRPC and Prisma files** (`thunder generate`)
- **Deploying Kubernetes resources** (`thunder deploy`)
- **Initializing project** (`thunder new`)

- **Docker** (`thunder docker`)
## Installation

### 1. Clone or Download the Repository
Expand Down Expand Up @@ -46,11 +46,8 @@ thunder new projectname
### Deploy Kubernetes Resources
Before deploying make sure You run those commands:
```
docker build -t app:latest .
docker login
docker push $docker_username/app:latest
thunder docker
```
> **Note** $docker_username is your username, change it in k8s/app-deployment as well

Congratulations!, Now You can use deploy!
```bash
Expand Down

0 comments on commit 6f2c241

Please sign in to comment.