Add Linux App Store Web Portal with Kubernetes deployment
- React-style static web portal with Tailwind CSS - OS detection (Debian/Ubuntu, Fedora, Arch, Generic) - Dynamic install commands (apt://, appstream://, flatpak) - 9 pre-configured applications - Kubernetes: 2 replicas, LoadBalancer service, Nginx ingress - GitLab Container Registry (git.giaco.net/capitano/webapplinux) - Namespace: linuxwebapp - Added Dockerfile, nginx.conf, deploy.sh, docker-compose.yml - Updated README.md with deployment instructions
This commit is contained in:
18
deploy.sh
Executable file
18
deploy.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
REGISTRY="git.giaco.net"
|
||||
IMAGE_NAME="capitano/webapplinux"
|
||||
TAG="latest"
|
||||
|
||||
echo "Building image..."
|
||||
docker build -t $REGISTRY/$IMAGE_NAME:$TAG /home/capitano/kubernetes/infrastructure/webapplinux/
|
||||
|
||||
echo "Pushing to registry..."
|
||||
docker push $REGISTRY/$IMAGE_NAME:$TAG
|
||||
|
||||
echo "Deploying to Kubernetes..."
|
||||
kubectl apply -f k8s/namespace.yaml 2>/dev/null || true
|
||||
kubectl apply -f k8s/
|
||||
|
||||
echo "Check status with: kubectl get pods -n linuxwebapp"
|
||||
Reference in New Issue
Block a user