feat: build Docker entrypoint per runtime type with custom args support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-12 13:06:54 +02:00
parent f66c8b6d18
commit e941256e6e
4 changed files with 55 additions and 20 deletions

View File

@@ -32,6 +32,11 @@ public class AppService {
public App getBySlug(String slug) { return appRepo.findBySlug(slug).orElseThrow(() -> new IllegalArgumentException("App not found: " + slug)); }
public List<AppVersion> listVersions(UUID appId) { return versionRepo.findByAppId(appId); }
public AppVersion getVersion(UUID versionId) {
return versionRepo.findById(versionId)
.orElseThrow(() -> new IllegalArgumentException("AppVersion not found: " + versionId));
}
public void updateContainerConfig(UUID id, Map<String, Object> containerConfig) {
getById(id); // verify exists
appRepo.updateContainerConfig(id, containerConfig);

View File

@@ -20,5 +20,8 @@ public record ContainerRequest(
List<Integer> exposedPorts,
int healthCheckPort,
String restartPolicyName,
int restartPolicyMaxRetries
int restartPolicyMaxRetries,
String runtimeType,
String customArgs,
String mainClass
) {}