This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/_TestScripts/Scripts and Tests/insert_ace.py
T
2026-08-20 00:45:43 +02:00

39 lines
867 B
Python

import sys
lines = open(sys.argv[1]).readlines()
block = '''
ace-step:
build:
context: ./services/ace-step
image: sudx/ace-step:latest
container_name: ace-step
restart: "no"
volumes:
- /home/fabian/sudx-ai/models/ace-step:/models/ace-step:ro
- /home/fabian/sudx-ai/outputs/music:/outputs/music
ports:
- "8076:8076"
environment:
- PYTHONUNBUFFERED=1
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8076/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 300s
deploy:
resources:
limits:
memory: 14G
'''
for i, line in enumerate(lines):
if line.strip() == 'sudx-dashboard:':
lines.insert(i, block)
break
open(sys.argv[1], 'w').writelines(lines)
print("Done - ace-step inserted before sudx-dashboard")