Skip to content

Commit 22aee5c

Browse files
committed
chore(devops): align docker/compose and github workflows; drop render deployment
1 parent 76f597b commit 22aee5c

6 files changed

Lines changed: 142 additions & 12 deletions

File tree

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,20 @@ node_modules/
7575
Dockerfile
7676
docker-compose.yml
7777
render.yaml
78+
79+
antigravity/
80+
todo.txt
81+
.git/
82+
.gitignore
83+
tests/
84+
*.md
85+
venv/
86+
.venv/
87+
.env
88+
.coverage
89+
htmlcov/
90+
.pytest_cache/
91+
__pycache__/
92+
*.pyc
93+
.vscode/
94+
.idea/

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
- name: Set up Python 3.11
18+
- name: Set up Python 3.10
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.11'
21+
python-version: '3.10'
2222

2323
- name: Cache dependencies
2424
uses: actions/cache@v3
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Run tests
3737
run: |
38-
pytest tests/ -v --tb=short
38+
python -m pytest tests/ -v --tb=short
3939
4040
build:
4141
name: Build Docker Image
@@ -75,7 +75,7 @@ jobs:
7575
- name: Set up Python
7676
uses: actions/setup-python@v5
7777
with:
78-
python-version: '3.11'
78+
python-version: '3.10'
7979

8080
- name: Install linting tools
8181
run: |

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
context: .
3535
push: true
3636
tags: |
37-
${{ secrets.DOCKER_USERNAME }}/credify:latest
38-
${{ secrets.DOCKER_USERNAME }}/credify:v2.1.0
39-
${{ secrets.DOCKER_USERNAME }}/credify:sha-${{ github.sha }}
40-
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/credify:buildcache
41-
cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/credify:buildcache,mode=max
37+
udaycodespace/credify:latest
38+
udaycodespace/credify:v2.1.0
39+
udaycodespace/credify:sha-${{ github.sha }}
40+
cache-from: type=registry,ref=udaycodespace/credify:buildcache
41+
cache-to: type=registry,ref=udaycodespace/credify:buildcache,mode=max
4242

4343
- name: Build only (pull_request validation — no push)
4444
# On PR: just validate the image builds cleanly — no login, no push

.gitignore

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,104 @@ public_keys/
8282
# Temporary Files
8383
tmp/
8484
temp/
85-
*.tmp
85+
*.tmp
86+
87+
# Credify private docs
88+
antigravity/
89+
90+
# Private working notes
91+
todo.txt
92+
93+
# Python
94+
__pycache__/
95+
*.pyc
96+
*.pyo
97+
.pytest_cache/
98+
htmlcov/
99+
.coverage
100+
dist/
101+
build/
102+
*.egg-info/
103+
104+
# Virtual environment
105+
venv/
106+
env/
107+
.venv/
108+
109+
# Environment secrets
110+
.env
111+
*.env
112+
!.env.example
113+
114+
# IDE
115+
.vscode/
116+
.idea/
117+
118+
# OS
119+
.DS_Store
120+
Thumbs.db
121+
122+
# Runtime data (local only)
123+
data/blockchain_data.json
124+
data/credentials_registry.json
125+
data/ipfs_storage.json
126+
data/tickets.json
127+
data/messages.json
128+
129+
# Temp files
130+
*.tmp
131+
*.log
132+
133+
# Private antigravity docs
134+
antigravity/
135+
136+
# Private working files
137+
todo.txt
138+
ToDO
139+
url_map.txt
140+
141+
# Virtual environment
142+
venv/
143+
env/
144+
.venv/
145+
146+
# IDE and editor
147+
.vscode/
148+
.idea/
149+
pyrightconfig.json
150+
.pyrightconfig.json
151+
.pre-commit-config.yaml
152+
153+
# Temp and logs
154+
tmp/
155+
logs/
156+
*.log
157+
*.tmp
158+
159+
# Runtime data (local only — not for repo)
160+
data/blockchain_data.json
161+
data/credentials_registry.json
162+
data/ipfs_storage.json
163+
data/tickets.json
164+
data/messages.json
165+
166+
# Environment secrets — NEVER commit
167+
.env
168+
169+
# Render config (not needed in repo)
170+
render.yaml
171+
172+
# OS files
173+
.DS_Store
174+
Thumbs.db
175+
176+
# Python cache
177+
__pycache__/
178+
*.pyc
179+
*.pyo
180+
.pytest_cache/
181+
htmlcov/
182+
.coverage
183+
dist/
184+
build/
185+
*.egg-info/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# --- Stage 1: Builder ---
2-
FROM python:3.11-slim AS builder
2+
FROM python:3.10-slim AS builder
33

44
WORKDIR /build
55

@@ -20,7 +20,7 @@ COPY requirements.txt .
2020
RUN pip install --no-cache-dir -r requirements.txt
2121

2222
# --- Stage 2: Runtime ---
23-
FROM python:3.11-slim
23+
FROM python:3.10-slim
2424

2525
WORKDIR /app
2626

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
- NODE_NAME=node1
1111
- PORT=5000
1212
- HOST=0.0.0.0
13+
- BASE_URL=http://localhost:5000
1314
- DATABASE_URL=sqlite:///data/node1.db
1415
- SESSION_SECRET=node1-secret-key
1516
- PEER_NODES=http://node2:5000,http://node3:5000
@@ -33,6 +34,7 @@ services:
3334
- NODE_NAME=node2
3435
- PORT=5000
3536
- HOST=0.0.0.0
37+
- BASE_URL=http://localhost:5000
3638
- DATABASE_URL=sqlite:///data/node2.db
3739
- SESSION_SECRET=node2-secret-key
3840
- PEER_NODES=http://node1:5000,http://node3:5000
@@ -41,6 +43,11 @@ services:
4143
networks:
4244
- blockchain-net
4345
restart: unless-stopped
46+
healthcheck:
47+
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
48+
interval: 30s
49+
timeout: 10s
50+
retries: 3
4451

4552
node3:
4653
build: .
@@ -51,6 +58,7 @@ services:
5158
- NODE_NAME=node3
5259
- PORT=5000
5360
- HOST=0.0.0.0
61+
- BASE_URL=http://localhost:5000
5462
- DATABASE_URL=sqlite:///data/node3.db
5563
- SESSION_SECRET=node3-secret-key
5664
- PEER_NODES=http://node1:5000,http://node2:5000
@@ -59,6 +67,11 @@ services:
5967
networks:
6068
- blockchain-net
6169
restart: unless-stopped
70+
healthcheck:
71+
test: [ "CMD", "curl", "-f", "http://localhost:5000/" ]
72+
interval: 30s
73+
timeout: 10s
74+
retries: 3
6275

6376
networks:
6477
blockchain-net:

0 commit comments

Comments
 (0)