chore: Remove legacy Docker configuration and documentation
Some checks failed
API Gateway (Java Spring Boot) / test (21) (push) Successful in 2m2s
API Gateway (Java Spring Boot) / test (17) (push) Successful in 2m2s
Frontend (React) / test (20) (push) Successful in 2m11s
Integration Tests / integration-tests (push) Failing after 25s
Integration Tests / performance-tests (push) Has been skipped
API Docs (Node.js Express) / test (20) (push) Successful in 2m36s
API Gateway (Java Spring Boot) / build (push) Failing after 40s
Service Adapters (Python FastAPI) / test (3.11) (push) Successful in 1m24s
Service Adapters (Python FastAPI) / test (3.12) (push) Successful in 1m27s
Service Adapters (Python FastAPI) / test (3.13) (push) Successful in 1m27s
Frontend (React) / build (push) Failing after 58s
Service Adapters (Python FastAPI) / build (push) Failing after 21s
Frontend (React) / lighthouse (push) Has been skipped
API Docs (Node.js Express) / build (push) Failing after 1m24s

### Summary of Changes
- Deleted `docker-compose.dev.yml` and `docker-compose.yml` files to streamline the project structure.
- Removed outdated Dockerfiles for services (API Gateway, Service Adapters, API Docs, and Frontend) to eliminate redundancy.
- Updated `env.example` to reflect changes in service configurations, including local host settings for PostgreSQL and Redis.
- Revised `README.md` to remove references to Docker deployment and clarify local development setup instructions.
- Cleaned up documentation structure by removing obsolete files related to Docker rate limits and compatibility fixes.

### Expected Results
- Simplified project setup and improved clarity for developers by focusing on current configurations and removing legacy artifacts.
This commit is contained in:
GSRN
2025-09-18 00:50:03 +02:00
parent 7bb753e293
commit 4b2ef7e246
15 changed files with 45 additions and 901 deletions

View File

@@ -1,234 +0,0 @@
name: Docker Build and Push
on:
push:
branches: [ main, develop ]
tags: [ 'v*' ]
pull_request:
branches: [ main, develop ]
env:
REGISTRY: gittea.kammenstraatha.duckdns.org
REGISTRY_URL: https://gittea.kammenstraatha.duckdns.org
REPO_OWNER: admin
IMAGE_PREFIX: labfusion
jobs:
# Shared setup job for common steps
setup:
runs-on: self-hosted
outputs:
version: ${{ steps.meta.outputs.version }}
labels: ${{ steps.meta.outputs.labels }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway
${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters
${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs
${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
# API Gateway build and push
build-push-api-gateway:
runs-on: self-hosted
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push API Gateway (Legacy Builder)
uses: docker/build-push-action@v5
with:
context: ./services/api-gateway
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway:${{ needs.setup.outputs.version }}
labels: ${{ needs.setup.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-gateway:cache,mode=max
# Use legacy builder for maximum compatibility
builder: default
build-args: |
BUILDKIT_INLINE_CACHE=0
# Service Adapters build and push
build-push-service-adapters:
runs-on: self-hosted
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Service Adapters (Legacy Builder)
uses: docker/build-push-action@v5
with:
context: ./services/service-adapters
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters:${{ needs.setup.outputs.version }}
labels: ${{ needs.setup.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/service-adapters:cache,mode=max
# Use legacy builder for maximum compatibility
builder: default
build-args: |
BUILDKIT_INLINE_CACHE=0
# API Docs build and push
build-push-api-docs:
runs-on: self-hosted
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push API Docs (Legacy Builder)
uses: docker/build-push-action@v5
with:
context: ./services/api-docs
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs:${{ needs.setup.outputs.version }}
labels: ${{ needs.setup.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/api-docs:cache,mode=max
# Use legacy builder for maximum compatibility
builder: default
build-args: |
BUILDKIT_INLINE_CACHE=0
# Frontend build and push
build-push-frontend:
runs-on: self-hosted
needs: setup
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Frontend (Legacy Builder)
uses: docker/build-push-action@v5
with:
context: ./frontend
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend:${{ needs.setup.outputs.version }}
labels: ${{ needs.setup.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend:cache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/frontend:cache,mode=max
# Use legacy builder for maximum compatibility
builder: default
build-args: |
BUILDKIT_INLINE_CACHE=0
# Compatibility test job
test-compatibility:
runs-on: self-hosted
needs: [build-push-api-gateway, build-push-service-adapters, build-push-api-docs, build-push-frontend]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test API Docs compatibility
run: |
echo "Testing API Docs image compatibility..."
# Pull the latest image
docker pull ${{ env.REGISTRY }}/admin/api-docs:${{ needs.setup.outputs.version }}
# Test running the container
docker run --rm -d --name test-api-docs \
-p 8083:8083 \
${{ env.REGISTRY }}/admin/api-docs:${{ needs.setup.outputs.version }}
# Wait for container to start
sleep 10
# Check if container is running
if docker ps | grep -q test-api-docs; then
echo "✓ API Docs container started successfully"
else
echo "✗ API Docs container failed to start"
docker logs test-api-docs
exit 1
fi
# Clean up
docker stop test-api-docs || true
- name: Test docker-compose compatibility
run: |
echo "Testing docker-compose configuration..."
# Validate docker-compose.yml
docker-compose config > /dev/null
if [ $? -eq 0 ]; then
echo "✓ docker-compose.yml is valid"
else
echo "✗ docker-compose.yml has syntax errors"
exit 1
fi
- name: Compatibility test completed
run: |
echo "✓ All compatibility tests passed"
echo "Images are ready for deployment with maximum Docker version compatibility"