[#152] modify pinpoint-flink-job.jar just one time when the container is created.
This commit is contained in:
		
							parent
							
								
									94379d4afb
								
							
						
					
					
						commit
						45c8aeaa4d
					
				| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# In flink version < 1.11 we can't use "job cluster" because it's not yet available
 | 
					# In flink version < 1.11 we can't use "job cluster" because it's not yet available
 | 
				
			||||||
if [ "$1" = "standalone-job" ]; then
 | 
					if [ "$1" = "standalone-job" ]; then
 | 
				
			||||||
 | 
					  if [ -e /build/pinpoint-flink-job.jar ]; then
 | 
				
			||||||
    cd /build
 | 
					    cd /build
 | 
				
			||||||
    zip -d pinpoint-flink-job.jar "profiles/release/*.properties"
 | 
					    zip -d pinpoint-flink-job.jar "profiles/release/*.properties"
 | 
				
			||||||
    sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
 | 
					    sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
 | 
				
			||||||
| 
						 | 
					@ -9,6 +10,7 @@ if [ "$1" = "standalone-job" ]; then
 | 
				
			||||||
    cd -
 | 
					    cd -
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar
 | 
					    mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  shift
 | 
					  shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue