mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	pipeline fix
This commit is contained in:
		
							parent
							
								
									cbac784c57
								
							
						
					
					
						commit
						d91c600925
					
				@ -6,7 +6,7 @@ services:
 | 
				
			|||||||
    deploy:
 | 
					    deploy:
 | 
				
			||||||
      resources:
 | 
					      resources:
 | 
				
			||||||
        limits:
 | 
					        limits:
 | 
				
			||||||
          memory: 1G
 | 
					          memory: 2G
 | 
				
			||||||
    healthcheck:
 | 
					    healthcheck:
 | 
				
			||||||
      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
 | 
					      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
 | 
				
			||||||
      interval: 5s
 | 
					      interval: 5s
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@ services:
 | 
				
			|||||||
    deploy:
 | 
					    deploy:
 | 
				
			||||||
      resources:
 | 
					      resources:
 | 
				
			||||||
        limits:
 | 
					        limits:
 | 
				
			||||||
          memory: 1G
 | 
					          memory: 2G
 | 
				
			||||||
    healthcheck:
 | 
					    healthcheck:
 | 
				
			||||||
      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]
 | 
					      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]
 | 
				
			||||||
      interval: 5s
 | 
					      interval: 5s
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@ services:
 | 
				
			|||||||
    deploy:
 | 
					    deploy:
 | 
				
			||||||
      resources:
 | 
					      resources:
 | 
				
			||||||
        limits:
 | 
					        limits:
 | 
				
			||||||
          memory: 1G
 | 
					          memory: 4G
 | 
				
			||||||
    healthcheck:
 | 
					    healthcheck:
 | 
				
			||||||
      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
 | 
					      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
 | 
				
			||||||
      interval: 5s
 | 
					      interval: 5s
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@ services:
 | 
				
			|||||||
    deploy:
 | 
					    deploy:
 | 
				
			||||||
      resources:
 | 
					      resources:
 | 
				
			||||||
        limits:
 | 
					        limits:
 | 
				
			||||||
          memory: 1G
 | 
					          memory: 4G
 | 
				
			||||||
    healthcheck:
 | 
					    healthcheck:
 | 
				
			||||||
      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]
 | 
					      test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"]
 | 
				
			||||||
      interval: 5s
 | 
					      interval: 5s
 | 
				
			||||||
 | 
				
			|||||||
@ -60,7 +60,14 @@ public class GeneralWebController {
 | 
				
			|||||||
		        	Map<String, Object> jsonContent = new ObjectMapper().readValue(config, new TypeReference<Map<String, Object>>(){});
 | 
							        	Map<String, Object> jsonContent = new ObjectMapper().readValue(config, new TypeReference<Map<String, Object>>(){});
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
		            String name = (String) jsonContent.get("name");
 | 
							            String name = (String) jsonContent.get("name");
 | 
				
			||||||
 | 
							            if(name == null || name.length() < 1) {
 | 
				
			||||||
 | 
							            	 String filename = jsonFiles.get(pipelineConfigs.indexOf(config)).getFileName().toString();
 | 
				
			||||||
 | 
							                 name = filename.substring(0, filename.lastIndexOf('.'));
 | 
				
			||||||
 | 
							            }
 | 
				
			||||||
		            Map<String, String> configWithName = new HashMap<>();
 | 
							            Map<String, String> configWithName = new HashMap<>();
 | 
				
			||||||
 | 
							            System.out.println("json" + config);
 | 
				
			||||||
 | 
							            
 | 
				
			||||||
 | 
							            System.out.println("name" + name);
 | 
				
			||||||
		            configWithName.put("json", config);
 | 
							            configWithName.put("json", config);
 | 
				
			||||||
		            configWithName.put("name", name);
 | 
							            configWithName.put("name", name);
 | 
				
			||||||
		            pipelineConfigsWithNames.add(configWithName);
 | 
							            pipelineConfigsWithNames.add(configWithName);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user