Skip to content

Commit da60fed

Browse files
committed
Normalize line endings via .gitattributes
1 parent 1e29cf7 commit da60fed

27 files changed

Lines changed: 327 additions & 0 deletions

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Default: text files normalized to LF in the repo
2+
* text=auto eol=lf
3+
4+
# Unix-y files that MUST be LF
5+
*.sh text eol=lf
6+
*.py text eol=lf
7+
*.yml text eol=lf
8+
*.yaml text eol=lf
9+
Dockerfile text eol=lf
10+
*.tf text eol=lf
11+
*.tpl text eol=lf
12+
13+
# Windows batch stays CRLF (if you add any)
14+
*.bat text eol=crlf
15+
*.cmd text eol=crlf
16+
17+
# Treat binaries as-is
18+
*.zip binary
19+
*.png binary
20+
*.jpg binary
21+
*.exe binary

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: placeholder

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SentinelFlow Scaffold
2+
3+
This is a minimal scaffolding to get started.

charts/platform/Chart.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v2
2+
name: platform
3+
type: application
4+
version: 0.1.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{- define "platform.fullname" -}}sentinelflow{{- end -}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata: { name: sentinelflow-gateway }
4+
spec:
5+
replicas: 1
6+
selector: { matchLabels: { app: sentinelflow, comp: gateway } }
7+
template:
8+
metadata: { labels: { app: sentinelflow, comp: gateway } }
9+
spec:
10+
containers:
11+
- name: gateway
12+
image: {{ .Values.global.registry }}/{{ .Values.global.owner }}/gateway:{{ .Values.global.tag }}
13+
ports: [{ containerPort: 8080 }]
14+
---
15+
apiVersion: v1
16+
kind: Service
17+
metadata: { name: sentinelflow-gateway }
18+
spec:
19+
type: LoadBalancer
20+
selector: { app: sentinelflow, comp: gateway }
21+
ports: [{ port: 80, targetPort: 8080 }]

charts/platform/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
global:
2+
registry: ghcr.io
3+
owner: <you>/<repo>
4+
tag: dev

docker-compose.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
services:
2+
gateway:
3+
build: ./services/gateway
4+
ports: ["8080:8080"]
5+
environment:
6+
- SERVICE_NAME=gateway
7+
- PEP_URL=http://pep:8080
8+
- RAG_URL=http://rag:8080
9+
- AIMS_URL=http://aims:8080
10+
depends_on: [ pep, rag, aims ]
11+
12+
pep:
13+
build: ./services/pep
14+
ports: ["8084:8080"]
15+
environment:
16+
- SERVICE_NAME=pep
17+
- PDP_URL=http://aims:8080
18+
19+
aims:
20+
build: ./services/aims
21+
ports: ["8090:8080"]
22+
environment:
23+
- SERVICE_NAME=aims
24+
25+
rag:
26+
build: ./services/rag
27+
ports: ["8081:8080"]
28+
environment:
29+
- SERVICE_NAME=rag
30+
- TOOLS_URL=http://tools:8080
31+
- MODELS_URL=http://models:8080
32+
33+
tools:
34+
build: ./services/tools
35+
ports: ["8082:8080"]
36+
environment:
37+
- SERVICE_NAME=tools
38+
39+
models:
40+
build: ./services/models
41+
ports: ["8083:8080"]
42+
environment:
43+
- SERVICE_NAME=models

scripts/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#!/usr/bin/env bash

services/aims/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.11-slim
2+
WORKDIR /app
3+
COPY requirements.txt .
4+
RUN pip install --no-cache-dir -r requirements.txt
5+
COPY . .
6+
EXPOSE 8080
7+
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","8080"]

0 commit comments

Comments
 (0)