remove cassandra volume for blackbox
This commit is contained in:
		
							parent
							
								
									9abfd128ae
								
							
						
					
					
						commit
						a17a17ee97
					
				@ -253,12 +253,16 @@ public class ThingsBoardDbInstaller {
 | 
			
		||||
                .add(tbVcExecutorLogVolume)
 | 
			
		||||
                .add(resolveRedisComposeVolumeLog());
 | 
			
		||||
 | 
			
		||||
        if (IS_HYBRID_MODE) {
 | 
			
		||||
            rmVolumesCommand.add(cassandraDataVolume);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        dockerCompose.withCommand(rmVolumesCommand.toString());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private String resolveRedisComposeVolumeLog() {
 | 
			
		||||
        if (IS_REDIS_CLUSTER) {
 | 
			
		||||
            return IntStream.range(0, 6).mapToObj(i -> redisClusterDataVolume + "-" + i).collect(Collectors.joining());
 | 
			
		||||
            return IntStream.range(0, 6).mapToObj(i -> " " + redisClusterDataVolume + "-" + i).collect(Collectors.joining());
 | 
			
		||||
        }
 | 
			
		||||
        if (IS_REDIS_SENTINEL) {
 | 
			
		||||
            return redisSentinelDataVolume + "-" + "master " + " " +
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user