- 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
19 lines
457 B
Bash
Executable File
19 lines
457 B
Bash
Executable File
#!/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"
|