File size: 284,241 Bytes
a6591ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
id,Commit Hash,Subject,Message,Old Contents,New Contents
2100,56e2d4e35ce6d71616ce1e614f4862059d1be8dc,fix: test,"fix: test
","FROM richarvey/nginx-php-fpm:php7

EXPOSE 80
",
2,7d1c256bace9d91ef27d799414de72bdf0d0dbcf,Update gitlab-workhorse to 8.14.0,"Update gitlab-workhorse to 8.14.0

Signed-off-by: solidnerd <387783e228a6a981e052f1b545e5a6a45a21cc6e@mietz.io>
","FROM ubuntu:bionic-20190807

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=12.4.0

ENV GITLAB_VERSION=${VERSION} \
    RUBY_VERSION=2.6 \
    GOLANG_VERSION=1.12.9 \
    GITLAB_SHELL_VERSION=10.2.0 \
    GITLAB_WORKHORSE_VERSION=8.10.0 \
    GITLAB_PAGES_VERSION=1.9.0 \
    GITALY_SERVER_VERSION=1.65.1 \
    GITLAB_USER=""git"" \
    GITLAB_HOME=""/home/git"" \
    GITLAB_LOG_DIR=""/var/log/gitlab"" \
    GITLAB_CACHE_DIR=""/etc/docker-gitlab"" \
    RAILS_ENV=production \
    NODE_ENV=production

ENV GITLAB_INSTALL_DIR=""${GITLAB_HOME}/gitlab"" \
    GITLAB_SHELL_INSTALL_DIR=""${GITLAB_HOME}/gitlab-shell"" \
    GITLAB_GITALY_INSTALL_DIR=""${GITLAB_HOME}/gitaly"" \
    GITLAB_DATA_DIR=""${GITLAB_HOME}/data"" \
    GITLAB_BUILD_DIR=""${GITLAB_CACHE_DIR}/build"" \
    GITLAB_RUNTIME_DIR=""${GITLAB_CACHE_DIR}/runtime""

RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
      wget ca-certificates apt-transport-https gnupg2
RUN set -ex && \
 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
 && echo ""deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main"" >> /etc/apt/sources.list \
 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \
 && echo ""deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu bionic main"" >> /etc/apt/sources.list \
 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
 && echo ""deb http://ppa.launchpad.net/nginx/stable/ubuntu bionic main"" >> /etc/apt/sources.list \
 && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
 && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
 && wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
 && echo 'deb https://deb.nodesource.com/node_12.x bionic main' > /etc/apt/sources.list.d/nodesource.list \
 && wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg  | apt-key add - \
 && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
 && set -ex \
 && apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
      sudo supervisor logrotate locales curl \
      nginx openssh-server postgresql-client-10 postgresql-contrib-10 redis-tools \
      git-core ruby${RUBY_VERSION} python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
      libpq5 zlib1g libyaml-0-2 libssl1.0.0 \
      libgdbm5 libreadline7 libncurses5 libffi6 \
      libxml2 libxslt1.1 libcurl4 libicu60 libre2-dev tzdata unzip libimage-exiftool-perl \
 && update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
 && locale-gen en_US.UTF-8 \
 && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
 && gem install --no-document bundler -v 1.17.3 \
 && rm -rf /var/lib/apt/lists/*

COPY assets/build/ ${GITLAB_BUILD_DIR}/
RUN bash ${GITLAB_BUILD_DIR}/install.sh

COPY assets/runtime/ ${GITLAB_RUNTIME_DIR}/
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh

LABEL \
    maintainer=""sameer@damagehead.com"" \
    org.label-schema.schema-version=""1.0"" \
    org.label-schema.build-date=${BUILD_DATE} \
    org.label-schema.name=gitlab \
    org.label-schema.vendor=damagehead \
    org.label-schema.url=""https://github.com/sameersbn/docker-gitlab"" \
    org.label-schema.vcs-url=""https://github.com/sameersbn/docker-gitlab.git"" \
    org.label-schema.vcs-ref=${VCS_REF} \
    com.damagehead.gitlab.license=MIT

EXPOSE 22/tcp 80/tcp 443/tcp

VOLUME [""${GITLAB_DATA_DIR}"", ""${GITLAB_LOG_DIR}""]
WORKDIR ${GITLAB_INSTALL_DIR}
ENTRYPOINT [""/sbin/entrypoint.sh""]
CMD [""app:start""]
","FROM ubuntu:bionic-20190807

ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=12.4.0

ENV GITLAB_VERSION=${VERSION} \
    RUBY_VERSION=2.6 \
    GOLANG_VERSION=1.12.9 \
    GITLAB_SHELL_VERSION=10.2.0 \
    GITLAB_WORKHORSE_VERSION=8.14.0 \
    GITLAB_PAGES_VERSION=1.9.0 \
    GITALY_SERVER_VERSION=1.65.1 \
    GITLAB_USER=""git"" \
    GITLAB_HOME=""/home/git"" \
    GITLAB_LOG_DIR=""/var/log/gitlab"" \
    GITLAB_CACHE_DIR=""/etc/docker-gitlab"" \
    RAILS_ENV=production \
    NODE_ENV=production

ENV GITLAB_INSTALL_DIR=""${GITLAB_HOME}/gitlab"" \
    GITLAB_SHELL_INSTALL_DIR=""${GITLAB_HOME}/gitlab-shell"" \
    GITLAB_GITALY_INSTALL_DIR=""${GITLAB_HOME}/gitaly"" \
    GITLAB_DATA_DIR=""${GITLAB_HOME}/data"" \
    GITLAB_BUILD_DIR=""${GITLAB_CACHE_DIR}/build"" \
    GITLAB_RUNTIME_DIR=""${GITLAB_CACHE_DIR}/runtime""

RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
      wget ca-certificates apt-transport-https gnupg2
RUN set -ex && \
 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
 && echo ""deb http://ppa.launchpad.net/git-core/ppa/ubuntu bionic main"" >> /etc/apt/sources.list \
 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \
 && echo ""deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu bionic main"" >> /etc/apt/sources.list \
 && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
 && echo ""deb http://ppa.launchpad.net/nginx/stable/ubuntu bionic main"" >> /etc/apt/sources.list \
 && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
 && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
 && wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
 && echo 'deb https://deb.nodesource.com/node_12.x bionic main' > /etc/apt/sources.list.d/nodesource.list \
 && wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg  | apt-key add - \
 && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
 && set -ex \
 && apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
      sudo supervisor logrotate locales curl \
      nginx openssh-server postgresql-client-10 postgresql-contrib-10 redis-tools \
      git-core ruby${RUBY_VERSION} python3 python3-docutils nodejs yarn gettext-base graphicsmagick \
      libpq5 zlib1g libyaml-0-2 libssl1.0.0 \
      libgdbm5 libreadline7 libncurses5 libffi6 \
      libxml2 libxslt1.1 libcurl4 libicu60 libre2-dev tzdata unzip libimage-exiftool-perl \
 && update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
 && locale-gen en_US.UTF-8 \
 && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
 && gem install --no-document bundler -v 1.17.3 \
 && rm -rf /var/lib/apt/lists/*

COPY assets/build/ ${GITLAB_BUILD_DIR}/
RUN bash ${GITLAB_BUILD_DIR}/install.sh

COPY assets/runtime/ ${GITLAB_RUNTIME_DIR}/
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh

LABEL \
    maintainer=""sameer@damagehead.com"" \
    org.label-schema.schema-version=""1.0"" \
    org.label-schema.build-date=${BUILD_DATE} \
    org.label-schema.name=gitlab \
    org.label-schema.vendor=damagehead \
    org.label-schema.url=""https://github.com/sameersbn/docker-gitlab"" \
    org.label-schema.vcs-url=""https://github.com/sameersbn/docker-gitlab.git"" \
    org.label-schema.vcs-ref=${VCS_REF} \
    com.damagehead.gitlab.license=MIT

EXPOSE 22/tcp 80/tcp 443/tcp

VOLUME [""${GITLAB_DATA_DIR}"", ""${GITLAB_LOG_DIR}""]
WORKDIR ${GITLAB_INSTALL_DIR}
ENTRYPOINT [""/sbin/entrypoint.sh""]
CMD [""app:start""]
"
292,534b9839516ba325565ce14130cf4eab5bcda5d3,update node version to 4.4.4,"update node version to 4.4.4

","FROM evild/alpine-base:2.0.0
MAINTAINER Dominique HAAS <contact@dominique-haas.fr>

ARG NODE_VERSION=4.4.3
ENV GPG_KEYS \
  9554F04D7259F04124DE6B476D5A82AC7E37093B \
  94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
  0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
  FD3A5288F042B6850C66B31F09FE44734EB7990E \
  71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
  DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
  B9AE9905FFD7803F25714661B63B535A4C206CA9 \
  C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8


RUN \
    build_pkgs=""git curl make gcc g++ python linux-headers libgcc libstdc++ binutils-gold xz gnupg"" \
    && apk --no-cache add ${build_pkgs}  \
    && for key in $GPG_KEYS; do \
    gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ""$key""; \
    done \
    && curl -SLO https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.xz\
    && curl -SLO ""https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc"" \
    && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
    && grep "" node-v$NODE_VERSION.tar.xz\$"" SHASUMS256.txt | sha256sum -c - \
    && tar -xJf ""node-v$NODE_VERSION.tar.xz"" \
    && cd /node-v${NODE_VERSION} \
    && ./configure --prefix=/usr --without-snapshot --fully-static \
    && make -j $(getconf _NPROCESSORS_ONLN) \
    && make install \
    && apk del ${build_pkgs} \
    && rm -rf /etc/ssl /node-v${NODE_VERSION} /usr/include \
    /usr/share/man /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp \
    /usr/lib/node_modules/npm/man /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html
","FROM evild/alpine-base:2.0.0
MAINTAINER Dominique HAAS <contact@dominique-haas.fr>

ARG NODE_VERSION=4.4.4
ENV GPG_KEYS \
  9554F04D7259F04124DE6B476D5A82AC7E37093B \
  94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
  0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
  FD3A5288F042B6850C66B31F09FE44734EB7990E \
  71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
  DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
  B9AE9905FFD7803F25714661B63B535A4C206CA9 \
  C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8


RUN \
    build_pkgs=""git curl make gcc g++ python linux-headers libgcc libstdc++ binutils-gold xz gnupg"" \
    && apk --no-cache add ${build_pkgs}  \
    && for key in $GPG_KEYS; do \
    gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ""$key""; \
    done \
    && curl -SLO https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.xz\
    && curl -SLO ""https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc"" \
    && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \
    && grep "" node-v$NODE_VERSION.tar.xz\$"" SHASUMS256.txt | sha256sum -c - \
    && tar -xJf ""node-v$NODE_VERSION.tar.xz"" \
    && cd /node-v${NODE_VERSION} \
    && ./configure --prefix=/usr --without-snapshot --fully-static \
    && make -j $(getconf _NPROCESSORS_ONLN) \
    && make install \
    && apk del ${build_pkgs} \
    && rm -rf /etc/ssl /node-v${NODE_VERSION} /usr/include \
    /usr/share/man /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp \
    /usr/lib/node_modules/npm/man /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html
"
65,83b1a834e559688d2b3a848c813e94fef3a28581,Bump to 5.6.2,"Bump to 5.6.2
","# NAME: fahchen/elasticsearch-analysis-ik

FROM elasticsearch:5.6.1-alpine

MAINTAINER Phil Chen '06fahchen@gmail.com'

ENV VERSION=5.6.1

ADD https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${VERSION}/elasticsearch-analysis-ik-$VERSION.zip /tmp/
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/elasticsearch-analysis-ik-$VERSION.zip

RUN rm -rf /tm/*
","# NAME: fahchen/elasticsearch-analysis-ik

FROM elasticsearch:5.6.2-alpine

MAINTAINER Phil Chen '06fahchen@gmail.com'

ENV VERSION=5.6.2

ADD https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${VERSION}/elasticsearch-analysis-ik-$VERSION.zip /tmp/
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///tmp/elasticsearch-analysis-ik-$VERSION.zip

RUN rm -rf /tm/*
"
2122,19e027b090d3541b0933184b70062adfbdd14d73,Fixed dockerfile,"Fixed dockerfile
","FROM python:3-alpine

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV PIP_NO_CACHE_DIR=off

WORKDIR /usr/src/crackmapexec

RUN apk update && \
    apk add --no-cache build-base libffi-dev libxml2-dev libxslt-dev openssl-dev

COPY requirements.txt .

RUN pip3 install --no-cache-dir -r requirements.txt

COPY . .

RUN python setup.py install

ENTRYPOINT [ ""cme"" ]
",
325,094a7ac10ab577869a2081f30e300fdaa775469e,fix: Dockerfile构建失败,"fix: Dockerfile构建失败
","FROM nimmis/java:oracle-8-jdk

MAINTAINER wendal ""wendal1985@gmail.com""

ENV CATALINA_HOME /usr/local/tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
RUN mkdir -p ""$CATALINA_HOME""
ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.0.33
ENV TOMCAT_TGZ_URL https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz
ENV DEBIAN_FRONTEND noninteractive

RUN cd $CATALINA_HOME \
&&wget -O tomcat.tar.gz $TOMCAT_TGZ_URL \
&& tar -xvf tomcat.tar.gz --strip-components=1 \
&& cd $CATALINA_HOME \
&& rm bin/*.bat \
&& rm tomcat.tar.gz* && rm -fr /usr/local/tomcat/webapps/ROOT \
&& rm -fr /usr/local/tomcat/webapps/docs /usr/local/tomcat/webapps/host-manager /usr/local/tomcat/webapps/manager /usr/local/tomcat/webapps/examples


ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_TGZ_URL https://www.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz

RUN mkdir /tmp2 && cd /tmp2 \
  && curl -sSL $MAVEN_TGZ_URL | tar xzf - -C /usr/share \
  && mv /usr/share/apache-maven-3.3.3 /usr/share/maven \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
  && curl -sSL https://github.com/wendal/nutz-book-project/archive/master.tar.gz | tar xzf - -C /tmp2 \
  && cd /tmp2 && ls -l  && cd nutz-book-project-master \
  && mvn clean package \
  && mkdir -p /usr/local/tomcat/webapps/ROOT \
  && cp -r target/nutzbook-2.9.0/* /usr/local/tomcat/webapps/ROOT/ \
  && find /usr/local/tomcat/webapps/ROOT/ \
  && cd / \
  && rm -fr /tmp2 usr/share/maven /usr/bin/mvn ~/.m2

WORKDIR $CATALINA_HOME

EXPOSE 8080
#EXPOSE 81
#EXPOSE 15555
COPY docker-entrypoint.py /entrypoint.py
CMD [""python"", ""/entrypoint.py""]
ENV LANG C.UTF-8
ENV TZ ""Asia/Shanghai""
ENV ""ehcache.disk.store.dir"" ""/data""
VOLUME /data

","FROM nimmis/java:oracle-8-jdk

MAINTAINER wendal ""wendal1985@gmail.com""

ENV CATALINA_HOME /usr/local/tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
RUN mkdir -p ""$CATALINA_HOME""
ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.5.5
ENV TOMCAT_TGZ_URL https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz
ENV DEBIAN_FRONTEND noninteractive

RUN cd $CATALINA_HOME \
&&wget -O tomcat.tar.gz $TOMCAT_TGZ_URL \
&& tar -xvf tomcat.tar.gz --strip-components=1 \
&& cd $CATALINA_HOME \
&& rm bin/*.bat \
&& rm tomcat.tar.gz* && rm -fr /usr/local/tomcat/webapps/ROOT \
&& rm -fr /usr/local/tomcat/webapps/docs /usr/local/tomcat/webapps/host-manager /usr/local/tomcat/webapps/manager /usr/local/tomcat/webapps/examples


ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_TGZ_URL https://www.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

RUN mkdir /tmp2 && cd /tmp2 \
  && curl -sSL $MAVEN_TGZ_URL | tar xzf - -C /usr/share \
  && mv /usr/share/apache-maven-3.3.9 /usr/share/maven \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
  && curl -sSL https://github.com/wendal/nutz-book-project/archive/master.tar.gz | tar xzf - -C /tmp2 \
  && cd /tmp2 && ls -l  && cd nutz-book-project-master \
  && mvn clean package \
  && mkdir -p /usr/local/tomcat/webapps/ROOT \
  && cp -r target/nutzbook-2.9.1/* /usr/local/tomcat/webapps/ROOT/ \
  && find /usr/local/tomcat/webapps/ROOT/ \
  && cd / \
  && rm -fr /tmp2 usr/share/maven /usr/bin/mvn ~/.m2

WORKDIR $CATALINA_HOME

EXPOSE 8080
COPY docker-entrypoint.py /entrypoint.py
CMD [""python"", ""/entrypoint.py""]
ENV LANG C.UTF-8
ENV TZ ""Asia/Shanghai""
ENV ""ehcache.disk.store.dir"" ""/data""
VOLUME /data

"
2278,fd88b59065c3ecab2bbf2bf877f9009db0ea6a19,Add certificate to trusted CA,"Add certificate to trusted CA
","FROM jboss/base-jdk:8

ARG CA=""""

ENV KEYCLOAK_VERSION 3.0.0.Final
# Enables signals getting passed from startup script to JVM
# ensuring clean shutdown when container is stopped.
ENV LAUNCH_JBOSS_IN_BACKGROUND 1

USER root

RUN yum install -y epel-release && yum install -y jq xmlstarlet && yum clean all

ADD add-trusted-certificate.sh /opt/jboss

RUN ./add-trusted-certificate.sh

USER jboss

RUN cd /opt/jboss/ && curl -sL https://downloads.jboss.org/keycloak/$KEYCLOAK_VERSION/keycloak-$KEYCLOAK_VERSION.tar.gz | tar zx && mv /opt/jboss/keycloak-$KEYCLOAK_VERSION /opt/jboss/keycloak

ADD docker-entrypoint.sh /opt/jboss/

ADD setLogLevel.xsl /opt/jboss/keycloak/
RUN java -jar /usr/share/java/saxon.jar -s:/opt/jboss/keycloak/standalone/configuration/standalone.xml -xsl:/opt/jboss/keycloak/setLogLevel.xsl -o:/opt/jboss/keycloak/standalone/configuration/standalone.xml
RUN xmlstarlet ed --inplace \
        -N x=""urn:jboss:domain:undertow:3.0"" \
        -a ""//x:http-listener"" \
        -t attr \
        -n 'proxy-address-forwarding' \
        -v 'true' \
        /opt/jboss/keycloak/standalone/configuration/standalone.xml

USER root

RUN chown -R jboss.0 /opt/jboss && chmod -R 770 /opt/jboss

USER jboss

ENV JBOSS_HOME /opt/jboss/keycloak

EXPOSE 8080

ENTRYPOINT [ ""/opt/jboss/docker-entrypoint.sh"" ]

CMD [""-b"", ""0.0.0.0""]
",
2218,a8a644fd27fa89f00bf893d46d5741f795c0229f,fix: vulnerabilities,"fix: vulnerabilities
","FROM debian:buster

ENV NODE_VERSION 12

RUN set -x && \
  apt-get update && \
  apt-get install -y \
    ca-certificates \
    curl \
    git \
    python3-pip \
  && \
  : ""to fix vulnerabilities, update packages : 2020-08-17"" && \
  : apt-get install -y --no-install-recommends \
    libsystemd0 \
    libudev1 \
  && \
  : ""install awscli"" && \
  pip3 install awscli && \
  : ""install node"" && \
  curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - && \
  apt-get install -y nodejs && \
  npm install -g npm && \
  rm -rf /root/.npm && \
  : ""cleanup apt caches"" && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* && \
  : ""add working user"" && \
  useradd -m getto && \
  : ""prepare app directory"" && \
  mkdir -p /opt/app && \
  chown getto:getto /opt/app && \
  : ""environment prepared""

COPY package*.json /opt/app/

WORKDIR /opt/app
USER getto

RUN set -x && \
  : ""install node modules"" && \
  npm clean-install && \
  : ""project prepared""

CMD [""/bin/bash""]
",
320,5aa45f7eee86b78e2a65d83c8c0343105f5ab37b,Bump Dockerfile to 9.1.0-498-8eb4171c,"Bump Dockerfile to 9.1.0-498-8eb4171c
",,
96,b850d64b715eb45f6103e85919a44e3bb593b963,Bumped source to 20201016-adbd723,"Bumped source to 20201016-adbd723
","FROM docker.pkg.github.com/dock0/service/service:20201016-83b6087
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
","FROM docker.pkg.github.com/dock0/service/service:20201016-adbd723
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
"
52,9d870d414835b1ed8e00287b95d7b0e68257716a,Bumped source to 20210112-27ccc9a,"Bumped source to 20210112-27ccc9a
","FROM docker.pkg.github.com/dock0/arch/arch:20210112-eb14af4
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20210112-27ccc9a
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
181,52d3daed122d1c3af086ebf6adfca7e6ecfe98ba,Update base container,"Update base container
","FROM ubuntu:14.04

RUN echo ""deb http://pagekite.net/pk/deb/ pagekite main"" > /etc/apt/sources.list.d/pagekite_net_pk_deb.list
RUN apt-key adv --recv-keys --keyserver keys.gnupg.net AED248B1C7B2CAC3

RUN apt-get update -y
RUN apt-get install -y pagekite

RUN rm /etc/pagekite.d/20_frontends.rc

# pagekite.net service
CMD pagekite --clean \
            --defaults \
            --service_on=https:blimp.$CLOUDFLEET_DOMAIN:nginx:443:$CLOUDFLEET_SECRET \
            --service_on=http:blimp.$CLOUDFLEET_DOMAIN:nginx:80:$CLOUDFLEET_SECRET

# our pagekite server
# CMD pagekite --clean \
#             --frontend=$CLOUDFLEET_HOST \
#             --service_on=http,https:blimp.$CLOUDFLEET_DOMAIN:nginx:443:$CLOUDFLEET_SECRET
","FROM ubuntu

RUN echo ""deb http://pagekite.net/pk/deb/ pagekite main"" > /etc/apt/sources.list.d/pagekite_net_pk_deb.list
RUN apt-key adv --recv-keys --keyserver keys.gnupg.net AED248B1C7B2CAC3

RUN apt-get update -y
RUN apt-get install -y pagekite

RUN rm /etc/pagekite.d/20_frontends.rc

# pagekite.net service
CMD pagekite --clean \
            --defaults \
            --service_on=https:blimp.$CLOUDFLEET_DOMAIN:nginx:443:$CLOUDFLEET_SECRET \
            --service_on=http:blimp.$CLOUDFLEET_DOMAIN:nginx:80:$CLOUDFLEET_SECRET

# our pagekite server
# CMD pagekite --clean \
#             --frontend=$CLOUDFLEET_HOST \
#             --service_on=http,https:blimp.$CLOUDFLEET_DOMAIN:nginx:443:$CLOUDFLEET_SECRET
"
219,d058f004c84bd4a234d466dfe3a07af0b5e508e7,bump versions,bump versions,"# A disposable development environment for java, python, and c++

FROM ubuntu:latest
MAINTAINER benjamin.gemmill@gmail.com

RUN locale-gen en_US.UTF-8

RUN apt-get update && apt-get install -y \
      gksu \
      curl \
      vim gedit \
      git ssh rsync \
      default-jdk \
      python  python-dev  python-setuptools \
      python3 python3-dev python3-setuptools \
      cmake g++ g++-multilib
      #&& rm -rf /var/lib/apt/lists/*
      
# Java IDE
RUN curl -L https://download.jetbrains.com/idea/ideaIC-2016.2.tar.gz | tar xz && mv idea* /opt/idea

# Python IDE
RUN curl -L https://download.jetbrains.com/python/pycharm-community-2016.2.tar.gz | tar xz && mv pycharm* /opt/pycharm

# C++ IDE
RUN curl -L https://download.jetbrains.com/cpp/CLion-2016.2.tar.gz | tar xz && mv clion* /opt/clion

ENV JAVA_HOME /usr/lib/jvm/default-java # to find the jdk
ENV QT_X11_NO_MITSHM 1 # for qt to work over a shared x socket with the docker host

#gosu
RUN wget -O /usr/local/bin/gosu \
  ""https://github.com/tianon/gosu/releases/download/1.9/gosu-$(dpkg --print-architecture | awk -F- '{ print $NF }')"" \
  && chmod a+x /usr/local/bin/gosu

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [""/usr/local/bin/entrypoint.sh""]

# Start up the IDEs like this once you're in.
#/opt/idea/bin/idea.sh > /dev/null 2>&1
#/opt/pycharm/bin/pycharm.sh > /dev/null 2>&1
#/opt/clion/bin/clion.sh > /dev/null 2>&1
CMD bash
","# A disposable development environment for java, python, and c++

FROM ubuntu:latest
MAINTAINER benjamin.gemmill@gmail.com

RUN locale-gen en_US.UTF-8

RUN apt-get update && apt-get install -y \
      gksu \
      curl \
      vim gedit \
      git ssh rsync \
      default-jdk \
      python  python-dev  python-setuptools \
      python3 python3-dev python3-setuptools \
      cmake g++ g++-multilib
      #&& rm -rf /var/lib/apt/lists/*
      
# Java IDE
RUN curl -L https://download.jetbrains.com/idea/ideaIC-2016.2.3.tar.gz | tar xz && mv idea* /opt/idea

# Python IDE
RUN curl -L https://download.jetbrains.com/python/pycharm-community-2016.2.3.tar.gz | tar xz && mv pycharm* /opt/pycharm

# C++ IDE
RUN curl -L https://download.jetbrains.com/cpp/CLion-2016.2.2.tar.gz | tar xz && mv clion* /opt/clion

ENV JAVA_HOME /usr/lib/jvm/default-java # to find the jdk
ENV QT_X11_NO_MITSHM 1 # for qt to work over a shared x socket with the docker host

#gosu
RUN wget -O /usr/local/bin/gosu \
  ""https://github.com/tianon/gosu/releases/download/1.9/gosu-$(dpkg --print-architecture | awk -F- '{ print $NF }')"" \
  && chmod a+x /usr/local/bin/gosu

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [""/usr/local/bin/entrypoint.sh""]

# Start up the IDEs like this once you're in.
#/opt/idea/bin/idea.sh > /dev/null 2>&1
#/opt/pycharm/bin/pycharm.sh > /dev/null 2>&1
#/opt/clion/bin/clion.sh > /dev/null 2>&1
CMD bash
"
2300,4df79eb6b96d6ccd6eba97767cbb6703bc86f1d6,Bumped source to 20210709-21e262d,"Bumped source to 20210709-21e262d
","FROM docker.pkg.github.com/dock0/arch/arch:20210709-6b59728
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
",
2308,6382324c72d2c4982024d46de6b17154bc81da38,Bumped source to 20210821-e9eb8aa,"Bumped source to 20210821-e9eb8aa
","FROM docker.pkg.github.com/dock0/arch/arch:20210821-3342bda
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
",
34,19a70b7376d229b83f37e6dff0247c7ce0c2e209,another stab at a fix for #11,"another stab at a fix for #11
","FROM debian:stable

RUN apt-get update && apt-get install -y --no-install-recommends procps openjdk-7-jre-headless tar curl && apt-get autoremove -y && apt-get clean

ENV FABRIC8_DISTRO_VERSION 1.2.0.Beta2
ENV JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-amd64

RUN useradd -m fabric8

ADD startup.sh /home/fabric8/startup.sh

RUN cd /home/fabric8 && \
    curl --silent https://repo1.maven.org/maven2/io/fabric8/fabric8-karaf/$FABRIC8_DISTRO_VERSION/fabric8-karaf-$FABRIC8_DISTRO_VERSION.tar.gz | tar xz && \
    mv fabric8-karaf-$FABRIC8_DISTRO_VERSION fabric8-karaf && \
    chown -R fabric8:fabric8 fabric8-karaf

# TODO temporary fix for docker issue until 1.2.0.Beta3
ADD jetty.xml /home/fabric8/fabric8-karaf/fabric/import/fabric/profiles/default.profile/jetty.xml

WORKDIR /home/fabric8/fabric8-karaf/etc

# lets remove the karaf.name by default so we can default it from env vars
RUN sed -i '/karaf.name=root/d' system.properties 
RUN sed -i '/runtime.id=/d' system.properties 

RUN echo bind.address=0.0.0.0 >> system.properties
RUN echo fabric.environment=docker >> system.properties
RUN echo zookeeper.password.encode=true >> system.properties

# lets remove the karaf.delay.console=true to disable the progress bar
RUN sed -i 's/karaf.delay.console=true/karaf.delay.console=false/' config.properties 

# lets enable logging to standard out
RUN sed -i 's/log4j.rootLogger=INFO, out, osgi:*/log4j.rootLogger=INFO, stdout, osgi:*/' org.ops4j.pax.logging.cfg

WORKDIR /home/fabric8/fabric8-karaf

RUN chown -R fabric8:fabric8 /home/fabric8 /home/fabric8/fabric8-karaf /home/fabric8/startup.sh

USER fabric8

# default values of environment variables supplied by default for child containers created by fabric8
# which have sensible defaults for folks creating new fabrics but can be overloaded when using docker run

#ENV DOCKER_HOST http://172.17.42.1:4243
ENV DOCKER_HOST http://192.168.59.103:2375
ENV FABRIC8_RUNTIME_ID root
ENV FABRIC8_KARAF_NAME root
ENV FABRIC8_BINDADDRESS 0.0.0.0
ENV FABRIC8_PROFILES docker
ENV FABRIC8_HTTP_PORT 8181
ENV FABRIC8_HTTP_PROXY_PORT 8181
ENV FABRIC8_GLOBAL_RESOLVER localip

EXPOSE 1099 2181 8101 8181 9300 9301 44444 61616

CMD /home/fabric8/startup.sh
","FROM debian:stable

RUN apt-get update && apt-get install -y --no-install-recommends procps openjdk-7-jre-headless tar curl && apt-get autoremove -y && apt-get clean

ENV FABRIC8_DISTRO_VERSION 1.2.0.Beta2
ENV JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-amd64

RUN useradd -m fabric8

ADD startup.sh /home/fabric8/startup.sh

RUN cd /home/fabric8 && \
    curl --silent https://repo1.maven.org/maven2/io/fabric8/fabric8-karaf/$FABRIC8_DISTRO_VERSION/fabric8-karaf-$FABRIC8_DISTRO_VERSION.tar.gz | tar xz && \
    mv fabric8-karaf-$FABRIC8_DISTRO_VERSION fabric8-karaf && \
    chown -R fabric8:fabric8 fabric8-karaf

# TODO temporary fix for docker issue until 1.2.0.Beta3
ADD jetty.xml /home/fabric8/fabric8-karaf/fabric/import/fabric/profiles/default.profile/jetty.xml

WORKDIR /home/fabric8/fabric8-karaf/etc

# lets remove the karaf.name by default so we can default it from env vars
RUN sed -i '/karaf.name=root/d' system.properties 
RUN sed -i '/runtime.id=/d' system.properties 

RUN echo bind.address=0.0.0.0 >> system.properties
RUN echo fabric.environment=docker >> system.properties
RUN echo zookeeper.password.encode=true >> system.properties

# lets remove the karaf.delay.console=true to disable the progress bar
RUN sed -i 's/karaf.delay.console=true/karaf.delay.console=false/' config.properties 

# lets enable logging to standard out
RUN sed -i 's/log4j.rootLogger=INFO, out, osgi:*/log4j.rootLogger=INFO, stdout, osgi:*/' org.ops4j.pax.logging.cfg

WORKDIR /home/fabric8/fabric8-karaf

RUN mkdir instances
RUN mkdir processes
RUN chown -R fabric8:fabric8 /home/fabric8 /home/fabric8/fabric8-karaf /home/fabric8/startup.sh /home/fabric8/fabric8-karaf/*

USER fabric8

# default values of environment variables supplied by default for child containers created by fabric8
# which have sensible defaults for folks creating new fabrics but can be overloaded when using docker run

#ENV DOCKER_HOST http://172.17.42.1:4243
ENV DOCKER_HOST http://192.168.59.103:2375
ENV FABRIC8_RUNTIME_ID root
ENV FABRIC8_KARAF_NAME root
ENV FABRIC8_BINDADDRESS 0.0.0.0
ENV FABRIC8_PROFILES docker
ENV FABRIC8_HTTP_PORT 8181
ENV FABRIC8_HTTP_PROXY_PORT 8181
ENV FABRIC8_GLOBAL_RESOLVER localip

EXPOSE 1099 2181 8101 8181 9300 9301 44444 61616

CMD /home/fabric8/startup.sh
"
120,44a7c6ec750d8dd0d3b7804ce8b778cd89218883,Bumped source to 20210117-4662c76,"Bumped source to 20210117-4662c76
","FROM docker.pkg.github.com/dock0/ssh/ssh:20210117-2e961c0
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
","FROM docker.pkg.github.com/dock0/ssh/ssh:20210117-4662c76
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
"
2215,e2e72cc3ef159fb460cfb782a672f2382d89f915,fix docker build for the armebv7r-none-eabi target,"fix docker build for the armebv7r-none-eabi target
","FROM ubuntu:16.04

RUN apt-get update && apt-get install -y --no-install-recommends \
  g++ \
  make \
  file \
  curl \
  ca-certificates \
  python2.7 \
  git \
  cmake \
  sudo \
  xz-utils \
  zlib1g-dev \
  g++-arm-linux-gnueabi \
  g++-arm-linux-gnueabihf \
  g++-aarch64-linux-gnu \
  gcc-sparc64-linux-gnu \
  libc6-dev-sparc64-cross \
  bzip2 \
  patch \
  libssl-dev \
  pkg-config \
  gcc-arm-none-eabi \
  libnewlib-arm-none-eabi

WORKDIR /build

COPY dist-various-1/build-rumprun.sh /build
RUN ./build-rumprun.sh

COPY dist-various-1/install-x86_64-redox.sh /build
RUN ./install-x86_64-redox.sh

COPY dist-various-1/install-mips-musl.sh /build
RUN ./install-mips-musl.sh

COPY dist-various-1/install-mipsel-musl.sh /build
RUN ./install-mipsel-musl.sh

# Suppress some warnings in the openwrt toolchains we downloaded
ENV STAGING_DIR=/tmp

COPY scripts/musl.sh /build
RUN env \
    CC=arm-linux-gnueabi-gcc CFLAGS=""-march=armv5te -marm -mfloat-abi=soft"" \
    CXX=arm-linux-gnueabi-g++ CXXFLAGS=""-march=armv5te -marm -mfloat-abi=soft"" \
    bash musl.sh armv5te && \
    env \
    CC=arm-linux-gnueabi-gcc CFLAGS=""-march=armv6 -marm"" \
    CXX=arm-linux-gnueabi-g++ CXXFLAGS=""-march=armv6 -marm"" \
    bash musl.sh arm && \
    env \
    CC=arm-linux-gnueabihf-gcc CFLAGS=""-march=armv6 -marm"" \
    CXX=arm-linux-gnueabihf-g++ CXXFLAGS=""-march=armv6 -marm"" \
    bash musl.sh armhf && \
    env \
    CC=arm-linux-gnueabihf-gcc CFLAGS=""-march=armv7-a"" \
    CXX=arm-linux-gnueabihf-g++ CXXFLAGS=""-march=armv7-a"" \
    bash musl.sh armv7 && \
    env \
    CC=aarch64-linux-gnu-gcc \
    CXX=aarch64-linux-gnu-g++ \
    bash musl.sh aarch64 && \
    env \
    CC=mips-openwrt-linux-gcc \
    CXX=mips-openwrt-linux-g++ \
    bash musl.sh mips && \
    env \
    CC=mipsel-openwrt-linux-gcc \
    CXX=mipsel-openwrt-linux-g++ \
    bash musl.sh mipsel && \
    rm -rf /build/*

# FIXME(mozilla/sccache#235) this shouldn't be necessary but is currently
# necessary to disambiguate the mips compiler with the mipsel compiler. We want
# to give these two wrapper scripts (currently identical ones) different hashes
# to ensure that sccache understands that they're different compilers.
RUN \
  echo ""# a"" >> /usr/local/mips-linux-musl/bin/mips-openwrt-linux-musl-wrapper.sh && \
  echo ""# b"" >> /usr/local/mipsel-linux-musl/bin/mipsel-openwrt-linux-musl-wrapper.sh

ENV RUN_MAKE_TARGETS=thumbv6m-none-eabi
ENV RUN_MAKE_TARGETS=$RUN_MAKE_TARGETS,thumbv7m-none-eabi
ENV RUN_MAKE_TARGETS=$RUN_MAKE_TARGETS,thumbv7em-none-eabi
ENV RUN_MAKE_TARGETS=$RUN_MAKE_TARGETS,thumbv7em-none-eabihf

ENV TARGETS=asmjs-unknown-emscripten
ENV TARGETS=$TARGETS,wasm32-unknown-emscripten
ENV TARGETS=$TARGETS,x86_64-rumprun-netbsd
ENV TARGETS=$TARGETS,mips-unknown-linux-musl
ENV TARGETS=$TARGETS,mipsel-unknown-linux-musl
ENV TARGETS=$TARGETS,arm-unknown-linux-musleabi
ENV TARGETS=$TARGETS,arm-unknown-linux-musleabihf
ENV TARGETS=$TARGETS,armv5te-unknown-linux-gnueabi
ENV TARGETS=$TARGETS,armv5te-unknown-linux-musleabi
ENV TARGETS=$TARGETS,armv7-unknown-linux-musleabihf
ENV TARGETS=$TARGETS,aarch64-unknown-linux-musl
ENV TARGETS=$TARGETS,sparc64-unknown-linux-gnu
ENV TARGETS=$TARGETS,x86_64-unknown-redox
ENV TARGETS=$TARGETS,thumbv6m-none-eabi
ENV TARGETS=$TARGETS,thumbv7m-none-eabi
ENV TARGETS=$TARGETS,thumbv7em-none-eabi
ENV TARGETS=$TARGETS,thumbv7em-none-eabihf
ENV TARGETS=$TARGETS,riscv32imac-unknown-none-elf
ENV TARGETS=$TARGETS,armebv7r-none-eabi
ENV TARGETS=$TARGETS,armebv7r-none-eabihf
ENV TARGETS=$TARGETS,armv7r-none-eabi
ENV TARGETS=$TARGETS,armv7r-none-eabihf

ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
    CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc \
    CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \
    CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc

ENV RUST_CONFIGURE_ARGS \
      --musl-root-armv5te=/musl-armv5te \
      --musl-root-arm=/musl-arm \
      --musl-root-armhf=/musl-armhf \
      --musl-root-armv7=/musl-armv7 \
      --musl-root-aarch64=/musl-aarch64 \
      --musl-root-mips=/musl-mips \
      --musl-root-mipsel=/musl-mipsel \
      --enable-emscripten \
      --disable-docs

ENV SCRIPT \
      python2.7 ../x.py test --target $RUN_MAKE_TARGETS src/test/run-make && \
      python2.7 ../x.py dist --target $TARGETS

# sccache
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh
",
2104,32e73ee6f20e4bed41ea2b38cfd4b05d5731abb1,[IMP] Improve docker image for debug,"[IMP] Improve docker image for debug
","# This is a test docker image to be run with the docker-compose file provided
FROM ubuntu:bionic
LABEL Name=dnfc-test Version=0.0.1

RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get update

RUN apt-get install wget cmake gcc gdbserver libgtest-dev \
                    build-essential python-dev autotools-dev libicu-dev \
                    build-essential libbz2-dev libboost-all-dev -y
RUN apt-get clean autoclean
RUN apt-get autoremove -y
RUN rm -rf /var/lib/apt/lists/*

# get 1.69 boost (latest)
RUN wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
RUN tar xvzf boost_1_69_0.tar.gz
WORKDIR /boost_1_69_0
RUN ./bootstrap.sh --prefix=/usr/
RUN ./b2 install

# compile and install latest gtest
WORKDIR /usr/src/gtest
RUN cmake CMakeLists.txt
RUN make 
RUN cp *.a /usr/lib

RUN useradd -ms /bin/bash develop
RUN echo ""develop   ALL=(ALL:ALL) ALL"" >> /etc/sudoers

# for gdbserver
EXPOSE 2000

USER develop
VOLUME /home/develop/dnfc
WORKDIR /home/develop/dnfc
",
2290,1dcd24891f21cf6cec87606e9a31f84b5e1a1979,using version 1.1.0-beta3,"using version 1.1.0-beta3
",,
2279,e084bdc55c49d8a43f8f0610057e63b048f04f69,containers: Detect fedora version when building cockpit/ws,"containers: Detect fedora version when building cockpit/ws

Closes #5099
Reviewed-by: Stef Walter <8a7fbf0f15d3ad982af54ef28f5c117d2494b76c@redhat.com>
","FROM fedora:24
MAINTAINER ""Stef Walter"" <stefw@redhat.com>

RUN dnf -y update
RUN dnf install sed

ARG RELEASE
ARG VERSION

# If there are rpm files in the current directory we'll install those,
# otherwise use cockpit-preview repo. The Dockerfile is a hack around
# Dockerfile lack of support for branches
ADD rpms/*.rpm /tmp/

# Again see above ... we do our branching in shell script
RUN cd /tmp && ( ls *.rpm > /dev/null 2> /dev/null && dnf -y install cockpit-ws*.rpm || dnf -y install sed https://kojipkgs.fedoraproject.org/packages/cockpit/$VERSION/$RELEASE.fc23/x86_64/cockpit-ws-$VERSION-$RELEASE.fc24.x86_64.rpm ) && dnf clean all

# And the stuff that starts the container
RUN mkdir -p /container && ln -s /host/proc/1 /container/target-namespace
ADD atomic-install /container/atomic-install
ADD atomic-uninstall /container/atomic-uninstall
ADD atomic-run /container/atomic-run
RUN chmod -v +x /container/atomic-install
RUN chmod -v +x /container/atomic-uninstall
RUN chmod -v +x /container/atomic-run

# Make the container think it's the host OS version
RUN rm -f /etc/os-release /usr/lib/os-release && ln -sv /host/etc/os-release /etc/os-release && ln -sv /host/usr/lib/os-release /usr/lib/os-release

LABEL INSTALL /usr/bin/docker run -ti --rm --privileged -v /:/host IMAGE /container/atomic-install
LABEL UNINSTALL /usr/bin/docker run -ti --rm --privileged -v /:/host IMAGE /container/atomic-uninstall
LABEL RUN /usr/bin/docker run -d --privileged --pid=host -v /:/host IMAGE /container/atomic-run --local-ssh

# Look ma, no EXPOSE

CMD [""/container/atomic-run""]
",
270,194e47876d01b1a272031aa8ab116ba4fd55d5ce,Bumped source to 20221108-d5692cb,"Bumped source to 20221108-d5692cb
","FROM ghcr.io/dock0/arch:20221108-0b78414
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM ghcr.io/dock0/arch:20221108-d5692cb
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
2151,c67344e439be19bf0b2eaceca99461eeba972767,Bumped source to 20200603-41fdc9f,"Bumped source to 20200603-41fdc9f
","FROM docker.pkg.github.com/dock0/ssh/ssh:20200603-ba596f2
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
",
2078,e522c7b1dc1d66ccb46ed56ba605a88333ebeb3d,Bumped source to 20210415-6e2d806,"Bumped source to 20210415-6e2d806
","FROM docker.pkg.github.com/dock0/arch/arch:20210415-cb3fb5b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
",
63,eae72d6b6bffc39d4d5cd9a498d11d73d4c79158,Bumped source to 20200505-fd84876,"Bumped source to 20200505-fd84876
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200505-6ef93f4
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200505-fd84876
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
"
130,be36e798393a4e84b15974e446c04aca99727b81,ENH: update dockerfile maintainer,"ENH: update dockerfile maintainer
","FROM centos:5
MAINTAINER http://github.com/fedorov

RUN yum update -y && \
  yum groupinstall -y ""Development Tools"" && \
  yum install -y curl \
   curl-devel \
   coreutils \
   gcc \
   gcc-c++ \
   gettext \
   openssl-devel \
   perl \
   wget \
   zlib-devel

WORKDIR /etc/yum.repos.d
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo
RUN yum install -y devtoolset-2-gcc \
  devtoolset-2-binutils \
  devtoolset-2-gcc-gfortran \
  devtoolset-2-gcc-c++
ENV CC /opt/rh/devtoolset-2/root/usr/bin/gcc
ENV CXX /opt/rh/devtoolset-2/root/usr/bin/g++
ENV FC /opt/rh/devtoolset-2/root/usr/bin/gfortran

# Build and install git from source.
#WORKDIR /usr/src
#ENV GIT_VERSION 2.11.0
#RUN wget https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz -O git-${GIT_VERSION}.tar.gz && \
#  tar xvzf git-${GIT_VERSION}.tar.gz && \
#  cd git-${GIT_VERSION} && \
#  make prefix=/usr all && \
#  make prefix=/usr install && \
#  cd .. && rm -rf git-${GIT_VERSION}*

# Build and install git from source.
WORKDIR /usr/src
ENV GIT_VERSION 2.5.0
RUN wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz && \
  tar xvzf git-${GIT_VERSION}.tar.gz && \
  cd git-${GIT_VERSION} && \
  ./configure --prefix=/usr && \
  make && \
  make install && \
  cd .. && rm -rf git-${GIT_VERSION}*

# Build and install CMake from source.
WORKDIR /usr/src
RUN git clone git://cmake.org/cmake.git CMake && \
  cd CMake && \
  git checkout v3.7.2 && \
  mkdir /usr/src/CMake-build && \
  cd /usr/src/CMake-build && \
  /usr/src/CMake/bootstrap \
    --parallel=$(grep -c processor /proc/cpuinfo) \
    --prefix=/usr && \
  make -j$(grep -c processor /proc/cpuinfo) && \
  ./bin/cmake \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DCMAKE_USE_OPENSSL:BOOL=ON . && \
  make install && \
  cd .. && rm -rf CMake*

# Build and install Python from source.
WORKDIR /usr/src
ENV PYTHON_VERSION 2.7.10
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
  tar xvzf Python-${PYTHON_VERSION}.tgz && \
  cd Python-${PYTHON_VERSION} && \
  ./configure && \
  make -j$(grep -c processor /proc/cpuinfo) && \
  make install && \
  cd .. && rm -rf Python-${PYTHON_VERSION}*

# Build and install ninja from source.
WORKDIR /usr/src
RUN git clone https://github.com/martine/ninja.git && \
  cd ninja && \
  git checkout v1.6.0 && \
  ./configure.py --bootstrap && \
  mv ninja /usr/bin/ && \
  cd .. && rm -rf ninja

# Build and install dcmqi
WORKDIR /usr/src
RUN git clone https://github.com/QIICR/dcmqi.git && \
  mkdir dcmqi-superbuild && \
  cd dcmqi-superbuild && \
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../dcmqi && \
  make -j$(grep -c processor /proc/cpuinfo)

WORKDIR /usr/src
ENTRYPOINT [""/bin/bash"",""/usr/src/dcmqi/docker_entry.sh""]
","FROM centos:5
MAINTAINER http://github.com/QIICR

RUN yum update -y && \
  yum groupinstall -y ""Development Tools"" && \
  yum install -y curl \
   curl-devel \
   coreutils \
   gcc \
   gcc-c++ \
   gettext \
   openssl-devel \
   perl \
   wget \
   zlib-devel

WORKDIR /etc/yum.repos.d
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo
RUN yum install -y devtoolset-2-gcc \
  devtoolset-2-binutils \
  devtoolset-2-gcc-gfortran \
  devtoolset-2-gcc-c++
ENV CC /opt/rh/devtoolset-2/root/usr/bin/gcc
ENV CXX /opt/rh/devtoolset-2/root/usr/bin/g++
ENV FC /opt/rh/devtoolset-2/root/usr/bin/gfortran

# Build and install git from source.
#WORKDIR /usr/src
#ENV GIT_VERSION 2.11.0
#RUN wget https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz -O git-${GIT_VERSION}.tar.gz && \
#  tar xvzf git-${GIT_VERSION}.tar.gz && \
#  cd git-${GIT_VERSION} && \
#  make prefix=/usr all && \
#  make prefix=/usr install && \
#  cd .. && rm -rf git-${GIT_VERSION}*

# Build and install git from source.
WORKDIR /usr/src
ENV GIT_VERSION 2.5.0
RUN wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz && \
  tar xvzf git-${GIT_VERSION}.tar.gz && \
  cd git-${GIT_VERSION} && \
  ./configure --prefix=/usr && \
  make && \
  make install && \
  cd .. && rm -rf git-${GIT_VERSION}*

# Build and install CMake from source.
WORKDIR /usr/src
RUN git clone git://cmake.org/cmake.git CMake && \
  cd CMake && \
  git checkout v3.7.2 && \
  mkdir /usr/src/CMake-build && \
  cd /usr/src/CMake-build && \
  /usr/src/CMake/bootstrap \
    --parallel=$(grep -c processor /proc/cpuinfo) \
    --prefix=/usr && \
  make -j$(grep -c processor /proc/cpuinfo) && \
  ./bin/cmake \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DCMAKE_USE_OPENSSL:BOOL=ON . && \
  make install && \
  cd .. && rm -rf CMake*

# Build and install Python from source.
WORKDIR /usr/src
ENV PYTHON_VERSION 2.7.10
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
  tar xvzf Python-${PYTHON_VERSION}.tgz && \
  cd Python-${PYTHON_VERSION} && \
  ./configure && \
  make -j$(grep -c processor /proc/cpuinfo) && \
  make install && \
  cd .. && rm -rf Python-${PYTHON_VERSION}*

# Build and install ninja from source.
WORKDIR /usr/src
RUN git clone https://github.com/martine/ninja.git && \
  cd ninja && \
  git checkout v1.6.0 && \
  ./configure.py --bootstrap && \
  mv ninja /usr/bin/ && \
  cd .. && rm -rf ninja

# Build and install dcmqi
WORKDIR /usr/src
RUN git clone https://github.com/QIICR/dcmqi.git && \
  mkdir dcmqi-superbuild && \
  cd dcmqi-superbuild && \
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../dcmqi && \
  make -j$(grep -c processor /proc/cpuinfo)

WORKDIR /usr/src
ENTRYPOINT [""/bin/bash"",""/usr/src/dcmqi/docker_entry.sh""]
"
2066,a138424ca386f7d2ac6abcba3010681b5e4bbd59,Update Dockerfile,"Update Dockerfile
","FROM debian

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qy update && apt-get -qy --fix-missing install \
    build-essential git pkg-config xvfb libgc-dev libatomic-ops-dev \
    libqt4-dev libqtwebkit-dev libqscintilla2-dev \
    libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
    python-pip gdb

RUN mkdir /build

RUN /bin/bash -c ""pip install \
    ejson \
    clime \
    git+git://github.com/thiago-silva/pymeta.git""

WORKDIR /build

RUN echo '{""repositories"":                             \
  {""central"": ""http://libraries.memetalk.org/""},       \
 ""override_to_local"": {                                \
   ""central:memescript"": ""/build/central/memescript"",  \
   ""central:stdlib"": ""/build/central/stdlib""           \
}}' >> /root/.meme.config

# Runs tests under xvfb to allow Qt to connect to a display
CMD xvfb-run --server-args=""-screen 0 1024x768x24"" make test
",
2289,04995552be40b58765aeef9e27ec9c40f545e403,Fix docker container tag,"Fix docker container tag
","FROM php:7.4.7-fpm-alpine3.10
MAINTAINER Mate Kocsis <kocsismate@woohoolabs.com>

RUN docker-php-ext-install opcache

ADD ./ /code

WORKDIR /code

EXPOSE 9000

CMD php-fpm
",
2168,95cd93d3d4fafa33e7f521552bbb5d9a5ad116d7,add php intl module,"add php intl module
","FROM phusion/baseimage:0.9.13
MAINTAINER Sebastien FAUVART <sebastien.fauvart@gmail.com>

# ------------------------------------------------------------------------------
# Install base
RUN apt-get update
RUN apt-get install -y git apache2 apache2-utils
RUN apt-get install -y php5 libapache2-mod-php5 php5-mysql php5-cli php-pear php5-curl php5-mcrypt php5-gd

# install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Enable PHP5 Modules
RUN php5enmod mcrypt
RUN a2enmod rewrite

RUN mkdir /etc/service/apache2
ADD apache2.sh /etc/service/apache2/run
RUN chmod +x /etc/service/apache2/run

EXPOSE 80

WORKDIR /app
CMD [""/sbin/my_init""]
",
165,fe209ee5e6e828f589341e5ded2b0d7d7894bbcf,Add dependencies for composer install,"Add dependencies for composer install
","FROM meanbee/magento:5.6-cli

MAINTAINER Tom Robertshaw <tom.robertshaw@meanbee.com>

RUN apt-get update && apt-get install -y mysql-client

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/ --filename=composer

# Download composer, magedbm, magerun and mageconfigsync
RUN curl https://getcomposer.org/composer.phar -o /composer.phar & \
    curl https://s3-eu-west-1.amazonaws.com/magedbm-releases/magedbm.phar -o /magedbm.phar & \
    curl http://files.magerun.net/n98-magerun-latest.phar -o /n98-magerun.phar & \
    curl -L https://github.com/punkstar/mageconfigsync/releases/download/0.4.0/mageconfigsync-0.4.0.phar -o /mageconfigsync.phar & \
    curl https://raw.githubusercontent.com/colinmollenhour/modman/master/modman -o /modman & \
    wait

RUN chmod +x /composer.phar
RUN chmod +x /magedbm.phar
RUN chmod +x /n98-magerun.phar
RUN chmod +x /mageconfigsync.phar
RUN chmod +x /modman

# Copy wrappers commands
COPY composer /usr/local/bin/
COPY magerun /usr/local/bin/
COPY magedbm /usr/local/bin/
COPY mageconfigsync /usr/local/bin/
COPY modman /usr/local/bin/

RUN chmod +x /usr/local/bin/composer
RUN chmod +x /usr/local/bin/magerun
RUN chmod +x /usr/local/bin/magedbm
RUN chmod +x /usr/local/bin/mageconfigsync
RUN chmod +x /usr/local/bin/modman

## Frontend Tools
RUN curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
RUN apt-get install --yes nodejs

RUN npm install -g grunt-cli
RUN npm install -g gulp
","FROM meanbee/magento:5.6-cli

MAINTAINER Tom Robertshaw <tom.robertshaw@meanbee.com>

RUN apt-get update && apt-get install -y mysql-client git

RUN docker-php-ext-install zip

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/ --filename=composer

# Download composer, magedbm, magerun and mageconfigsync
RUN curl https://getcomposer.org/composer.phar -o /composer.phar & \
    curl https://s3-eu-west-1.amazonaws.com/magedbm-releases/magedbm.phar -o /magedbm.phar & \
    curl http://files.magerun.net/n98-magerun-latest.phar -o /n98-magerun.phar & \
    curl -L https://github.com/punkstar/mageconfigsync/releases/download/0.4.0/mageconfigsync-0.4.0.phar -o /mageconfigsync.phar & \
    curl https://raw.githubusercontent.com/colinmollenhour/modman/master/modman -o /modman & \
    wait

RUN chmod +x /composer.phar
RUN chmod +x /magedbm.phar
RUN chmod +x /n98-magerun.phar
RUN chmod +x /mageconfigsync.phar
RUN chmod +x /modman

# Copy wrappers commands
COPY composer /usr/local/bin/
COPY magerun /usr/local/bin/
COPY magedbm /usr/local/bin/
COPY mageconfigsync /usr/local/bin/
COPY modman /usr/local/bin/

RUN chmod +x /usr/local/bin/composer
RUN chmod +x /usr/local/bin/magerun
RUN chmod +x /usr/local/bin/magedbm
RUN chmod +x /usr/local/bin/mageconfigsync
RUN chmod +x /usr/local/bin/modman

## Frontend Tools
RUN curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
RUN apt-get install --yes nodejs

RUN npm install -g grunt-cli
RUN npm install -g gulp
"
185,e01f65014bdef6a7be9d2c6c70b63143ad023071,Bumped source to 20200224-10bfe35,"Bumped source to 20200224-10bfe35
","FROM docker.pkg.github.com/dock0/arch/arch:20200224-1626b85
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20200224-10bfe35
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
275,f6ad5bb876b969d91a77aa20ac95bcb0d770449a,[rest] Add libnotify to image,"[rest] Add libnotify to image
","FROM revok/base:latest
MAINTAINER ""Arun Neelicattu"" <arun.neelicattu@gmail.com>

ENV REST_PORT=8443

ADD assets/supervisord.conf /etc/supervisord.conf
ADD assets/revok.conf ${REVOK_CONF}/revok.conf
ADD assets/revok-rest-start ${REVOK_HOME}/bin/revok-rest-start

EXPOSE ${REST_PORT}

CMD [""/usr/bin/supervisord"", ""-n""]
","FROM revok/base:latest
MAINTAINER ""Arun Neelicattu"" <arun.neelicattu@gmail.com>

USER root
RUN yum -y install libnotify
USER ${REVOK_USER}

ENV REST_PORT=8443

ADD assets/supervisord.conf /etc/supervisord.conf
ADD assets/revok.conf ${REVOK_CONF}/revok.conf
ADD assets/revok-rest-start ${REVOK_HOME}/bin/revok-rest-start

EXPOSE ${REST_PORT}

CMD [""/usr/bin/supervisord"", ""-n""]
"
233,59522abf6d7f591629988b7183f00211e1442bc4,Bumped source to 20210626-ca28a6c,"Bumped source to 20210626-ca28a6c
","FROM docker.pkg.github.com/dock0/arch/arch:20210626-35023c6
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20210626-ca28a6c
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
95,3153f072de1b5f61e4c060d9cadcff677a4d09af,Bumped source to 20211006-0e051a8,"Bumped source to 20211006-0e051a8
","FROM docker.pkg.github.com/dock0/arch/arch:20211006-bc9fffe
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20211006-0e051a8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
362,614de5e10cac7a8699cdb4d945e77ecce16af4e0,fix package name,"fix package name
","FROM ubuntu:16.04

# Install apt package dependencies
RUN apt-get clean all && apt-get update && \
    apt-get -y install wget curl python make g++ git cron pip && \
    apt-get clean all

RUN pip install jupyter pymongo requests pandas

# Install Meteor
RUN curl https://install.meteor.com/ | sh

#Create and use meteor user
RUN groupadd meteor && adduser --ingroup meteor --home /home/meteor meteor
RUN mkdir /app
RUN chown -R meteor:meteor /app
USER meteor

#Add in the repo
RUN git clone --depth 1 https://github.com/ecohealthalliance/ibis.git /app
WORKDIR /app

RUN meteor npm install
RUN meteor build /home/meteor/build --directory

USER root

WORKDIR /home/meteor/build/bundle/programs/server
RUN meteor npm install

WORKDIR /

ENV ROOT_URL http://ibis.eha.io
ENV PORT 80


RUN echo ""0 */3 * * * (cd /app && source /.env && jupyter nbconvert --execute --ExecutePreprocessor.kernel_name=python --ExecutePreprocessor.timeout=None --allow-errors .scripts/rank_events.ipynb --output ../public/rank_events.html) >> cron.log"" | crontab -

# Start application
CMD ['sh', '-c', 'env > /.env && cron && meteor node /home/meteor/build/bundle/main.js']
","FROM ubuntu:16.04

# Install apt package dependencies
RUN apt-get clean all && apt-get update && \
    apt-get -y install wget curl python make g++ git cron python-pip && \
    apt-get clean all

RUN pip install jupyter pymongo requests pandas

# Install Meteor
RUN curl https://install.meteor.com/ | sh

#Create and use meteor user
RUN groupadd meteor && adduser --ingroup meteor --home /home/meteor meteor
RUN mkdir /app
RUN chown -R meteor:meteor /app
USER meteor

#Add in the repo
RUN git clone --depth 1 https://github.com/ecohealthalliance/ibis.git /app
WORKDIR /app

RUN meteor npm install
RUN meteor build /home/meteor/build --directory

USER root

WORKDIR /home/meteor/build/bundle/programs/server
RUN meteor npm install

WORKDIR /

ENV ROOT_URL http://ibis.eha.io
ENV PORT 80


RUN echo ""0 */3 * * * (cd /app && source /.env && jupyter nbconvert --execute --ExecutePreprocessor.kernel_name=python --ExecutePreprocessor.timeout=None --allow-errors .scripts/rank_events.ipynb --output ../public/rank_events.html) >> cron.log"" | crontab -

# Start application
CMD ['sh', '-c', 'env > /.env && cron && meteor node /home/meteor/build/bundle/main.js']
"
272,801d519165ef64bf5424ac395abfc838fa25ba9d,docker: Fix the comments about settings.json copy,"docker: Fix the comments about settings.json copy

The ""conditional copy trick"" was removed in #3644, but I failed to
update the corresponding comment.
","# Etherpad Lite Dockerfile
#
# https://github.com/ether/etherpad-docker
#
# Author: muxator
#
# Version 0.1

FROM node:10-buster-slim
LABEL maintainer=""Etherpad team, https://github.com/ether/etherpad-lite""

# git hash of the version to be built.
# If not given, build the latest development version.
ARG ETHERPAD_VERSION=develop

# plugins to install while building the container. By default no plugins are
# installed.
# If given a value, it has to be a space-separated, quoted list of plugin names.
#
# EXAMPLE:
#   ETHERPAD_PLUGINS=""ep_codepad ep_author_neat""
ARG ETHERPAD_PLUGINS=

# Set the following to production to avoid installing devDeps
# this can be done with build args (and is mandatory to build ARM version)
ENV NODE_ENV=development

# grab the ETHERPAD_VERSION tarball from github (no need to clone the whole
# repository)
RUN echo ""Getting version: ${ETHERPAD_VERSION}"" && \
curl \
--location \
--fail \
--silent \
--show-error \
--output /opt/etherpad-lite.tar.gz \
https://github.com/ether/etherpad-lite/archive/""${ETHERPAD_VERSION}"".tar.gz && \
mkdir /opt/etherpad-lite && \
tar xf /opt/etherpad-lite.tar.gz \
--directory /opt/etherpad-lite \
--strip-components=1 && \
rm /opt/etherpad-lite.tar.gz

WORKDIR /opt/etherpad-lite

# install node dependencies for Etherpad
RUN bin/installDeps.sh && \
rm -rf ~/.npm/_cacache

# Install the plugins, if ETHERPAD_PLUGINS is not empty.
#
# Bash trick: in the for loop ${ETHERPAD_PLUGINS} is NOT quoted, in order to be
# able to split at spaces.
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install ""${PLUGIN_NAME}""; done

# Copy the custom configuration file, if present. The configuration file has to
# be manually put inside the same directory containing the Dockerfile (we cannot
# directly point to ""../settings.json"" for Docker's security restrictions).
#
# For the conditional COPY trick, see:
#   https://stackoverflow.com/questions/31528384/conditional-copy-add-in-dockerfile#46801962
COPY ./settings.json /opt/etherpad-lite/

# Follow the principle of least privilege: run as unprivileged user.
#
# Running as non-root enables running this image in platforms like OpenShift
# that do not allow images running as root.
RUN \
    echo 'etherpad:x:65534:65534:etherpad:/:' > /etc/passwd && \
    echo 'etherpad:x:65534:' > /etc/group && \
    chown -R etherpad:etherpad ./

USER etherpad

EXPOSE 9001
CMD [""node"", ""node_modules/ep_etherpad-lite/node/server.js""]
","# Etherpad Lite Dockerfile
#
# https://github.com/ether/etherpad-docker
#
# Author: muxator
#
# Version 0.1

FROM node:10-buster-slim
LABEL maintainer=""Etherpad team, https://github.com/ether/etherpad-lite""

# git hash of the version to be built.
# If not given, build the latest development version.
ARG ETHERPAD_VERSION=develop

# plugins to install while building the container. By default no plugins are
# installed.
# If given a value, it has to be a space-separated, quoted list of plugin names.
#
# EXAMPLE:
#   ETHERPAD_PLUGINS=""ep_codepad ep_author_neat""
ARG ETHERPAD_PLUGINS=

# Set the following to production to avoid installing devDeps
# this can be done with build args (and is mandatory to build ARM version)
ENV NODE_ENV=development

# grab the ETHERPAD_VERSION tarball from github (no need to clone the whole
# repository)
RUN echo ""Getting version: ${ETHERPAD_VERSION}"" && \
curl \
--location \
--fail \
--silent \
--show-error \
--output /opt/etherpad-lite.tar.gz \
https://github.com/ether/etherpad-lite/archive/""${ETHERPAD_VERSION}"".tar.gz && \
mkdir /opt/etherpad-lite && \
tar xf /opt/etherpad-lite.tar.gz \
--directory /opt/etherpad-lite \
--strip-components=1 && \
rm /opt/etherpad-lite.tar.gz

WORKDIR /opt/etherpad-lite

# install node dependencies for Etherpad
RUN bin/installDeps.sh && \
rm -rf ~/.npm/_cacache

# Install the plugins, if ETHERPAD_PLUGINS is not empty.
#
# Bash trick: in the for loop ${ETHERPAD_PLUGINS} is NOT quoted, in order to be
# able to split at spaces.
RUN for PLUGIN_NAME in ${ETHERPAD_PLUGINS}; do npm install ""${PLUGIN_NAME}""; done

# Copy the configuration file.
COPY ./settings.json /opt/etherpad-lite/

# Follow the principle of least privilege: run as unprivileged user.
#
# Running as non-root enables running this image in platforms like OpenShift
# that do not allow images running as root.
RUN \
    echo 'etherpad:x:65534:65534:etherpad:/:' > /etc/passwd && \
    echo 'etherpad:x:65534:' > /etc/group && \
    chown -R etherpad:etherpad ./

USER etherpad

EXPOSE 9001
CMD [""node"", ""node_modules/ep_etherpad-lite/node/server.js""]
"
315,3f47fc8dc5adec40f53d75d55a2834366d0be904,Bumped source to 20200222-a03d1a4,"Bumped source to 20200222-a03d1a4
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200222-c6ba264
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200222-a03d1a4
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
"
118,243d77dc6c7f05aaa9f4e114140eb698437f8bb3,add workdir,"add workdir
","FROM openjdk:8u102-jre

MAINTAINER ty.auvil@gmail.com

ENV DUMB_VERSION=1.1.3 \
    DEBIAN_FRONTEND=noninteractive

ADD https://github.com/Yelp/dumb-init/releases/download/v${DUMB_VERSION}/dumb-init_${DUMB_VERSION}_amd64 /bin/dumb-init

COPY docker-entrypoint.sh /bin/docker-entrypoint.sh

RUN echo ""deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti"" > \
    /etc/apt/sources.list.d/20ubiquiti.list && \
    echo ""deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen"" > \
    /etc/apt/sources.list.d/21mongodb.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 && \
    apt-get -q update && \
    apt-get install -qy --force-yes --no-install-recommends unifi && \
    apt-get -q clean && \
    rm -rf /var/lib/apt/lists/* && \
    ln -s /var/lib/unifi /usr/lib/unifi/data && \
    chmod +x /bin/docker-entrypoint.sh /bin/dumb-init

EXPOSE 8080/tcp 8081/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp

USER nobody

ENTRYPOINT [""/bin/docker-entrypoint.sh""]

CMD [""/usr/bin/java"", ""-Xmx256M"", ""-jar"", ""/usr/lib/unifi/lib/ace.jar"", ""start""]
","FROM openjdk:8u102-jre

MAINTAINER ty.auvil@gmail.com

ENV DUMB_VERSION=1.1.3 \
    DEBIAN_FRONTEND=noninteractive

ADD https://github.com/Yelp/dumb-init/releases/download/v${DUMB_VERSION}/dumb-init_${DUMB_VERSION}_amd64 /bin/dumb-init

COPY docker-entrypoint.sh /bin/docker-entrypoint.sh

RUN echo ""deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti"" > \
    /etc/apt/sources.list.d/20ubiquiti.list && \
    echo ""deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen"" > \
    /etc/apt/sources.list.d/21mongodb.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 && \
    apt-get -q update && \
    apt-get install -qy --force-yes --no-install-recommends unifi && \
    apt-get -q clean && \
    rm -rf /var/lib/apt/lists/* && \
    ln -s /var/lib/unifi /usr/lib/unifi/data && \
    chmod +x /bin/docker-entrypoint.sh /bin/dumb-init

EXPOSE 8080/tcp 8081/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp

USER nobody

WORKDIR /var/lib/unifi

ENTRYPOINT [""/bin/docker-entrypoint.sh""]

CMD [""/usr/bin/java"", ""-Xmx256M"", ""-jar"", ""/usr/lib/unifi/lib/ace.jar"", ""start""]
"
138,582d66a168779c72cc6549eb2a547d50b1e68a6f,Bump alpine,"Bump alpine

Bumps alpine from 3.10.1 to 3.10.2.

Signed-off-by: dependabot-preview[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@dependabot.com>","FROM alpine:3.10.1

RUN apk --no-cache add curl
","FROM alpine:3.10.2

RUN apk --no-cache add curl
"
2242,87d908d8230fa4c4baadd1e1ba1e9b901ab4d01e,Bumped source to 20200614-2d8b1c7,"Bumped source to 20200614-2d8b1c7
","FROM docker.pkg.github.com/dock0/arch/arch:20200614-1b5c24e
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
",
319,6f935cd68222d3b687076fec4c7848acf883bc17,Update Dockerfile,Update Dockerfile,"# Cassandra
#
# VERSION               1.0

FROM centos:centos6

# Add source repositories
ADD src/epel7.repo /etc/yum.repos.d/epel7.repo
ADD src/datastax.repo /etc/yum.repos.d/datastax.repo

# Install Java, Install packages (sshd + supervisord + monitoring tools + cassandra)
RUN yum install -y wget tar openssh-server openssh-clients supervisor dsc21 sysstat sudo which openssl hostname && \
yum clean all && \
wget --progress=dot:giga -O /tmp/jdk.rpm --no-cookies --no-check-certificate --header ""Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"" ""http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.rpm"" && \
rpm -ivh /tmp/jdk.rpm && rm /tmp/jdk.rpm && \
alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000

# Configure SSH server
# Create OpsCenter account
RUN mkdir -p /var/run/sshd && chmod -rx /var/run/sshd && \
ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
sed -ri 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config && \
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config && \
useradd -m -G users,root -p $(openssl passwd -1 ""opscenter"") opscenter && \
echo ""%root ALL=(ALL) NOPASSWD: ALL"" >> /etc/sudoers

# Configure supervisord
ADD src/supervisord.conf /etc/supervisord.conf
RUN mkdir -p /var/log/supervisor

# Deploy startup script
ADD src/start.sh /usr/local/bin/start

# Necessary since cassandra is trying to override the system limitations
# See https://groups.google.com/forum/#!msg/docker-dev/8TM_jLGpRKU/dewIQhcs7oAJ
RUN rm -f /etc/security/limits.d/cassandra.conf

# Work around a nasty Cassandra packaging error
RUN sed -i s/jamm-0.2.6.jar/jamm-0.2.8.jar/ /usr/share/cassandra/cassandra.in.sh

EXPOSE 7199 7000 7001 9160 9042
EXPOSE 22 8012 61621
USER root
CMD start
","# Cassandra
#
# VERSION               1.0

FROM centos:centos6

# Add source repositories
ADD src/epel6.repo /etc/yum.repos.d/epel6.repo
ADD src/datastax.repo /etc/yum.repos.d/datastax.repo

# Install Java, Install packages (sshd + supervisord + monitoring tools + cassandra)
RUN yum install -y wget tar openssh-server openssh-clients supervisor dsc21 sysstat sudo which openssl hostname && \
yum clean all && \
wget --progress=dot:giga -O /tmp/jdk.rpm --no-cookies --no-check-certificate --header ""Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"" ""http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.rpm"" && \
rpm -ivh /tmp/jdk.rpm && rm /tmp/jdk.rpm && \
alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000

# Configure SSH server
# Create OpsCenter account
RUN mkdir -p /var/run/sshd && chmod -rx /var/run/sshd && \
ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
sed -ri 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config && \
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config && \
useradd -m -G users,root -p $(openssl passwd -1 ""opscenter"") opscenter && \
echo ""%root ALL=(ALL) NOPASSWD: ALL"" >> /etc/sudoers

# Configure supervisord
ADD src/supervisord.conf /etc/supervisord.conf
RUN mkdir -p /var/log/supervisor

# Deploy startup script
ADD src/start.sh /usr/local/bin/start

# Necessary since cassandra is trying to override the system limitations
# See https://groups.google.com/forum/#!msg/docker-dev/8TM_jLGpRKU/dewIQhcs7oAJ
RUN rm -f /etc/security/limits.d/cassandra.conf

# Work around a nasty Cassandra packaging error
RUN sed -i s/jamm-0.2.6.jar/jamm-0.2.8.jar/ /usr/share/cassandra/cassandra.in.sh

EXPOSE 7199 7000 7001 9160 9042
EXPOSE 22 8012 61621
USER root
CMD start
"
2152,0121275b03224994c07329a6f3adcdb9ddbb8806,Bumped source to 20200608-bb670e4,"Bumped source to 20200608-bb670e4
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200608-81325e1
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
",
201,24f795269baedfcee4a280af07aad47983a57406,Bumped source to 20210402-b63f4d5,"Bumped source to 20210402-b63f4d5
","FROM docker.pkg.github.com/dock0/service/service:20210402-6ae4a5f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
","FROM docker.pkg.github.com/dock0/service/service:20210402-b63f4d5
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
"
2177,8e37d9da22216998d2d92c2218b2c6e2998e5cb6,add Supervisord,"add Supervisord
","#
# Redmine 3.2
#

FROM centos:6.7

MAINTAINER Jozuko ""jozuko.dev@gmail.com""

# ENV http_proxy=http://<ip address>:8080 \
#     https_proxy=http://<ip address>:8080 \
#     no_proxy=/var/run/docker.sock,localhost



#######################################  os  ########################################

ENV DEF_USER=jozuko

# install base module
RUN yum -y update
RUN yum -y install openssh openssh-server openssh-clients git sudo tar which wget unzip sudo

# setup root
RUN echo ""root:rootpw"" | chpasswd

# setup user
RUN useradd $DEF_USER; \
    echo ""$DEF_USER:$DEF_USER"" | chpasswd

# setup sudoers
RUN sed -i -e ""s/Defaults *requiretty/# Defaults requiretty/"" /etc/sudoers; \
    echo ""$DEF_USER ALL=(ALL) ALL"" >> /etc/sudoers.d/$DEF_USER; \
    chmod 440 /etc/sudoers.d/$DEF_USER

# setup TimeZone
RUN mv /etc/localtime /etc/localtime.org; \
    cp /usr/share/zoneinfo/Japan /etc/localtime; \
    sed -i ""s/^ZONE/#ZONE/g"" /etc/sysconfig/clock; \
    sed -i ""s/^UTC/#UTC/g"" /etc/sysconfig/clock; \
    echo ""ZONE=\""Asia/Tokyo\"""" >> /etc/sysconfig/clock; \
    echo ""UTC=\""False\"""" >> /etc/sysconfig/clock



#######################################  ssh  ########################################

# setup sshd
RUN ssh-keygen -q -N """" -t dsa -f /etc/ssh/ssh_host_dsa_key; \
    ssh-keygen -q -N """" -t rsa -f /etc/ssh/ssh_host_rsa_key; \
    sed -i ""s/#UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g"" /etc/ssh/sshd_config; \
    sed -i ""s/UsePAM.*/UsePAM no/g"" /etc/ssh/sshd_config; \
    sed -i ""s/#UseDNS yes/UseDNS no/g"" /etc/ssh/sshd_config

# expose for sshd
EXPOSE 22



####################################### EPEL #######################################

RUN yum -y install epel-release; \
    sed -i ""s/enabled=1/enabled=0/g"" /etc/yum.repos.d/epel.repo; \
    yum -y --enablerepo=epel install libmcrypt-devel



#######################################  pre-install  ########################################

RUN yum -y groupinstall ""Development Tools""; \
    yum -y --nogpgcheck install mysql \
                                mysql-server \
                                mysql-devel \
                                ImageMagick \
                                ImageMagick-devel \
                                ipa-pgothic-fonts \
                                httpd \
                                httpd-devel \
                                apr-devel \
                                openssl-devel \
                                curl-devel \
                                zlib-devel \
                                mod_auth_mysql \
                                mod_dav_svn \
                                mod_wsgi  \
                                mod_perl \
                                perl-Apache-DBI \
                                perl-Digest-SHA \
                                libical \
                                python-docutils \
                                rpmdevtools \
                                readline-devel \
                                ncurses-devel \
                                gdbm-devel \
                                tcl-devel \
                                db4-devel \
                                libyaml-devel \
                                glibc-devel \
                                libxml2-devel \
                                libxslt-devel \
                                sqlite-devel \
                                libffi-devel
RUN chkconfig --add mysqld; \
    chkconfig mysqld on; \
    service mysqld start



#######################################  ruby  ########################################

RUN cd /usr/local/src; \
    curl -O https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz; \
    tar xvf ruby-2.2.3.tar.gz; \
    cd ruby-2.2.3; \
    ./configure --disable-install-doc; \
    make; \
    make install


# install bundler, rake, rake-compiler
RUN gem install -f bundler --no-rdoc --no-ri; \
    gem install -f rake --no-rdoc --no-ri; \
    gem install -f rake-compiler --no-rdoc --no-ri


# install passenger
RUN gem install rubygems-update; \
    update_rubygems; \
    gem install passenger --no-rdoc --no-ri; \
    passenger-install-apache2-module --auto



########################################  mysql  ########################################

# create database
RUN mkdir -p /usr/local/src/scripts/; \
    echo ""CREATE DATABASE redmine DEFAULT CHARACTER SET utf8;""                              > /usr/local/src/scripts/createdb.sql; \
    echo ""GRANT ALL PRIVILEGES ON redmine.* TO redmine@localhost IDENTIFIED BY 'redmine';"" >> /usr/local/src/scripts/createdb.sql


RUN /etc/init.d/mysqld start; \
    mysql < /usr/local/src/scripts/createdb.sql



########################################  redmine  ########################################

# install redmine
ENV INSTALL_DIR=/opt/redmine
RUN mkdir -p ${INSTALL_DIR}; \
    cd /usr/local/src/; \
    svn co http://svn.redmine.org/redmine/branches/3.2-stable ${INSTALL_DIR}


# database setting
#COPY scripts/database.yml ${INSTALL_DIR}/config/
RUN mkdir -p /usr/local/src/scripts/; \
    echo ""production:""           > ${INSTALL_DIR}/config/database.yml; \
    echo ""  adapter: mysql2""    >> ${INSTALL_DIR}/config/database.yml; \
    echo ""  database: redmine""  >> ${INSTALL_DIR}/config/database.yml; \
    echo ""  host: localhost""    >> ${INSTALL_DIR}/config/database.yml; \
    echo ""  username: redmine""  >> ${INSTALL_DIR}/config/database.yml; \
    echo ""  password: redmine""  >> ${INSTALL_DIR}/config/database.yml; \
    echo ""  encoding: utf8""     >> ${INSTALL_DIR}/config/database.yml


# install gem packages
RUN cd ${INSTALL_DIR}; \
    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2/; \
    bundle install --path vendor/bundler --without development test postgresql sqlite

# create secret token
RUN /etc/init.d/mysqld start; \
    cd ${INSTALL_DIR}; \
    bundle exec rake generate_secret_token; \
    RAILS_ENV=production bundle exec rake db:migrate; \
    RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data


########################################  redmine-plugins  ########################################

# create work directory
RUN mkdir -p cd /usr/local/src/redmine-plugins


# redmine_xls_export(チケットをExcelにエクスポートするプラグイン)
RUN cd /usr/local/src; \
    git clone https://github.com/two-pack/redmine_xls_export.git redmine-plugins/redmine_xls_export; \
    cd redmine-plugins/redmine_xls_export; \
    git checkout 0.2.1.t9; \
    cd /usr/local/src; \
    cp -fra redmine-plugins/redmine_xls_export ${INSTALL_DIR}/plugins/


# redmine_plugin_views_revisions(redmine_xls_exportに必要なplugin)
RUN cd /usr/local/src; \
    wget -P redmine-plugins http://www.redmine.org/attachments/download/7705/redmine_plugin_views_revisions_v001.zip; \
    yes | unzip -q redmine-plugins/redmine_plugin_views_revisions_v001.zip; \
    mv redmine_plugin_views_revisions ${INSTALL_DIR}/plugins/redmine_plugin_views_revisions; \
    rm -f redmine-plugins/redmine_plugin_views_revisions_v001.zip


# redmine_code_review(コードレビュープラグイン)
RUN cd /usr/local/src; \
    wget -P redmine-plugins https://bitbucket.org/haru_iida/redmine_code_review/downloads/redmine_code_review-0.7.0.zip; \
    yes | unzip -q redmine-plugins/redmine_code_review-0.7.0.zip; \
    mv redmine_code_review ${INSTALL_DIR}/plugins/redmine_code_review; \
    rm -f redmine-plugins/redmine_code_review-0.7.0.zip


# advanced_roadmap(ロードマップを表示するプラグイン)
RUN cd /usr/local/src; \
    wget --no-check-certificate -P redmine-plugins https://redmine.ociotec.com/attachments/download/332/advanced_roadmap%20v0.9.0.tar.gz; \
    tar zxf ""redmine-plugins/advanced_roadmap v0.9.0.tar.gz""; \
    mv ""advanced_roadmap v0.9.0"" ${INSTALL_DIR}/plugins/advanced_roadmap; \
    rm -f ""redmine-plugins/advanced_roadmap v0.9.0.tar.gz""


# scm-creator(redmine上でリポジトリを作成するプラグイン)
RUN cd /usr/local/src; \
    svn export -r 142 http://subversion.andriylesyuk.com/scm-creator redmine_scm; \
    mv redmine_scm ${INSTALL_DIR}/plugins/redmine_scm


# redmine_drafts(作成中のチケットを保存)
RUN git clone https://github.com/jbbarth/redmine_drafts.git ${INSTALL_DIR}/plugins/redmine_drafts


# clipboard_image_paste(チケットにイメージをコピペできる)
RUN git clone https://github.com/peclik/clipboard_image_paste.git ${INSTALL_DIR}/plugins/clipboard_image_paste

# redmine_banner(Redmineのサイト上部に管理者からのメッセージを表示できる)
RUN git clone https://github.com/akiko-pusu/redmine_banner.git ${INSTALL_DIR}/plugins/redmine_banner


# update database
RUN /etc/init.d/mysqld start; \
    cd ${INSTALL_DIR}; \
    gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/usr/include/libxml2/; \
    sed -i -e ""s/gem \""nokogiri\""/#gem \""nokogiri\""/g"" Gemfile; \
    bundle install --path vendor/bundler --without development test postgresql sqlite; \
    RAILS_ENV=production bundle exec rake redmine:plugins; \
    RAILS_ENV=production bundle exec rake redmine:plugins:migrate; \
    RAILS_ENV=production bundle exec rake generate_secret_token; \
    RAILS_ENV=production bundle exec rake db:migrate; \
    RAILS_ENV=production bundle exec rake tmp:cache:clear; \
    RAILS_ENV=production bundle exec rake tmp:sessions:clear; \
    RAILS_ENV=production bundle exec rake redmine:plugins:process_version_change



########################################  [setting]svn  ########################################

RUN mkdir -p /etc/opt/redmine/; \
    echo ""#グループの設定""                       > /etc/opt/redmine/svnauthz; \
    echo ""[groups]""                             >> /etc/opt/redmine/svnauthz; \
    echo ""#developer=harry,sarry""               >> /etc/opt/redmine/svnauthz; \
    echo ""#observer=john,greg""                  >> /etc/opt/redmine/svnauthz; \
    echo """"                                     >> /etc/opt/redmine/svnauthz; \
    echo ""# 全てのプロジェクトに対する共通設定"" >> /etc/opt/redmine/svnauthz; \
    echo ""[/]""                                  >> /etc/opt/redmine/svnauthz; \
    echo ""admin = rw""                           >> /etc/opt/redmine/svnauthz; \
    echo ""* = rw""                               >> /etc/opt/redmine/svnauthz; \
    echo ""guest = r""                            >> /etc/opt/redmine/svnauthz; \
    echo """"                                     >> /etc/opt/redmine/svnauthz; \
    echo ""# サンプルプロジェクトに対する設定""   >> /etc/opt/redmine/svnauthz; \
    echo ""[SampleProject:/]""                    >> /etc/opt/redmine/svnauthz; \
    echo ""guest = rw""                           >> /etc/opt/redmine/svnauthz; \
    echo ""#@developer = rw""                     >> /etc/opt/redmine/svnauthz; \
    echo ""#@observer= r""                        >> /etc/opt/redmine/svnauthz; \
    echo """"                                     >> /etc/opt/redmine/svnauthz; \
    echo ""# 特定のパスの設定""                   >> /etc/opt/redmine/svnauthz; \
    echo ""#[SampleProject:/tags]""               >> /etc/opt/redmine/svnauthz; \
    echo ""#* = r""                               >> /etc/opt/redmine/svnauthz; \
    echo ""#admin = rw""                          >> /etc/opt/redmine/svnauthz



########################################  scm設定  ########################################


RUN mkdir -p $INSTALL_DIR/bin; \
    mkdir -p /var/opt/redmine/git /var/opt/redmine/svn /var/opt/redmine/maven


# scm-creator : create ${INSTALL_DIR}/config/scm.yml
RUN echo 'production:'                                         > ${INSTALL_DIR}/config/scm.yml; \
    echo '   auto_create: true'                               >> ${INSTALL_DIR}/config/scm.yml; \
    echo '   deny_delete: true'                               >> ${INSTALL_DIR}/config/scm.yml; \
    echo '   allow_add_local: true'                           >> ${INSTALL_DIR}/config/scm.yml; \
    echo '   post_create: ${INSTALL_DIR}/bin/scm-post-create' >> ${INSTALL_DIR}/config/scm.yml; \
    echo '   svn:'                                            >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     path: /var/opt/redmine/svn'                    >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     svnadmin: /usr/bin/svnadmin'                   >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     url: repos/svn'                                >> ${INSTALL_DIR}/config/scm.yml; \
    echo '   git:'                                            >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     path: /var/opt/redmine/git'                    >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     git: /usr/bin/git'                             >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     options: --bare '                              >> ${INSTALL_DIR}/config/scm.yml; \
    echo '     url: repos/git'                                >> ${INSTALL_DIR}/config/scm.yml


# scm-creator : create ${INSTALL_DIR}/bin/scm-post-create
RUN echo '#!/bin/sh'                                                            > ${INSTALL_DIR}/bin/scm-post-create; \
    echo ''                                                                    >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo 'case ""$2"" in'                                                        >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo ''                                                                    >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '  git)'                                                              >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    git --git-dir=$1 update-server-info'                             >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    echo ""'                                                          >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '#!/bin/sh'                                                           >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '${INSTALL_DIR}/bin/sync-scm'                                         >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '"" > $1/hooks/post-receive'                                           >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    chmod u+x $1/hooks/post-receive'                                 >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    mv $1/hooks/update.sample $1/hooks/update'                       >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    mv $1/hooks/post-update.sample $1/hooks/post-update'             >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    echo $1 | sed ""s/.*\///"" > $1/description'                       >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    git --git-dir=$1 config --bool hooks.allowunannotated true'      >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    git --git-dir=$1 config --bool receive.denyNonFastforwards true' >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    git --git-dir=$1 config --bool receive.denyDeletes true'         >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    git --git-dir=$1 config --bool core.quotepath false'             >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '  ;;'                                                                >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo ''                                                                    >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '  svn)'                                                              >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    echo ""#!/bin/sh'                                                 >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '${INSTALL_DIR}/bin/sync-scm $1'                                      >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '"" > $1/hooks/post-commit'                                            >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '    chmod u+x $1/hooks/post-commit'                                  >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo '  ;;'                                                                >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo ''                                                                    >> ${INSTALL_DIR}/bin/scm-post-create; \
    echo 'esac'                                                                >> ${INSTALL_DIR}/bin/scm-post-create


# scm-creator : create ${INSTALL_DIR}/bin/sync-scm
RUN echo '#!/bin/sh'                                                                                                                > ${INSTALL_DIR}/bin/sync-scm; \
    echo 'if [ ""$1"" != """" ]'                                                                                                       >> ${INSTALL_DIR}/bin/sync-scm; \
    echo 'then'                                                                                                                    >> ${INSTALL_DIR}/bin/sync-scm; \
    echo '    wget -q -O /dev/null http://localhost/sys/fetch_changesets?id=`echo $1 | sed ""s/\/.*\/\([^\.]*\)\(\..*\)\?/\1/""`'    >> ${INSTALL_DIR}/bin/sync-scm; \
    echo 'else'                                                                                                                    >> ${INSTALL_DIR}/bin/sync-scm; \
    echo '    wget -q -O /dev/null http://localhost/sys/fetch_changesets?id=`echo $PWD | sed ""s/\/.*\/\([^\.]*\)\(\..*\)\?/\1/""`'  >> ${INSTALL_DIR}/bin/sync-scm; \
    echo 'fi'                                                                                                                      >> ${INSTALL_DIR}/bin/sync-scm


# scm-creator : create ${INSTALL_DIR}/hooks/git/post-receive
RUN mkdir -p ${INSTALL_DIR}/hooks/git; \
    echo '#!/bin/sh'                    > ${INSTALL_DIR}/hooks/git/post-receive; \
    echo ''                            >> ${INSTALL_DIR}/hooks/git/post-receive; \
    echo '${INSTALL_DIR}/bin/sync-scm' >> ${INSTALL_DIR}/hooks/git/post-receive


# scm-creator : create ${INSTALL_DIR}/hooks/svn/post-commit
RUN mkdir -p ${INSTALL_DIR}/hooks/svn; \
    echo '#!/bin/sh'                          > ${INSTALL_DIR}/hooks/svn/post-commit; \
    echo ''                                  >> ${INSTALL_DIR}/hooks/svn/post-commit; \
    echo '/opt/redmine/bin/alm-sync-scm $@'  >> ${INSTALL_DIR}/hooks/svn/post-commit



########################################  [setting]apache  ########################################

ENV APACHE_USER=apache
RUN chown -R $APACHE_USER:$APACHE_USER $INSTALL_DIR; \
    chown -R $APACHE_USER:$APACHE_USER /var/opt/redmine



##########################################  jenkins  ########################################

# install jenkins
RUN wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo; \
    rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key; \
    yum install -y java-1.8.0-openjdk; \
    yum install -y jenkins


# mod_auth_mysql-3.0.0-11.el6_0.1.src.rpm for redmine
RUN rpm -vi --force http://vault.centos.org/6.7/os/Source/SPackages/mod_auth_mysql-3.0.0-11.el6_0.1.src.rpm; \
    cd /root/rpmbuild/SOURCES; \
    wget http://www.redmine.org/attachments/download/6443/mod_auth_mysql-3.0.0-redmine.patch; \
    sed -i -e ""s/Release: 11%{?dist}.1/Release: 11%{?dist}.1.redmine/g"" /root/rpmbuild/SPECS/mod_auth_mysql.spec; \
    sed -i -e ""s/Patch10: mod_auth_mysql-3\.0\.0-CVE-2008-2384\.patch/Patch10: mod_auth_mysql-3\.0\.0-CVE-2008-2384\.patch\nPatch20: mod_auth_mysql-3\.0\.0-redmine\.patch/g"" /root/rpmbuild/SPECS/mod_auth_mysql.spec; \
    sed -i -e ""s/%patch10 -p1 -b \.cve2384/%patch10 -p1 -b \.cve2384\n%patch20 -p1/g"" /root/rpmbuild/SPECS/mod_auth_mysql.spec; \
    rpmbuild -bb /root/rpmbuild/SPECS/mod_auth_mysql.spec; \
    rpm -vi --force /root/rpmbuild/RPMS/x86_64/mod_auth_mysql-3.0.0-11.el6.1.redmine.x86_64.rpm


# create httpd-conf
RUN echo '<Location /jenkins>'                                        > /etc/httpd/conf.d/jenkins.conf; \
    echo '  Order allow,deny'                                        >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  Allow from all'                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo ''                                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  BrowserMatch ""MSIE"" AuthDigestEnableQueryStringHack=On'  >> /etc/httpd/conf.d/jenkins.conf; \
    echo ''                                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  ProxyPass        http://127.0.0.1:8080/jenkins'          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  ProxyPassReverse http://127.0.0.1:8080/jenkins'          >> /etc/httpd/conf.d/jenkins.conf; \
    echo ''                                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  RewriteEngine On'                                        >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  RewriteCond %{LA-U:REMOTE_USER} (.+)'                    >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  RewriteRule . - [E=RU:%1,NS]'                            >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  RequestHeader set X-Forwarded-User %{RU}e'               >> /etc/httpd/conf.d/jenkins.conf; \
    echo ''                                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLNoPasswd      Off'                              >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMYSQLEnable        On'                               >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLHost          localhost'                        >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLDB            redmine'                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLUser          redmine'                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLPassword      redmine'                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLUserTable     users'                            >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLNameField     login'                            >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLPasswordField hashed_password'                  >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLPwEncryption  sha1-rm'                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLSaltField     salt'                             >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthMySQLGroupField    groups'                           >> /etc/httpd/conf.d/jenkins.conf; \
    echo ''                                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthName ""Redmine User""'                                 >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  AuthType Basic'                                          >> /etc/httpd/conf.d/jenkins.conf; \
    echo '  require  valid-user'                                     >> /etc/httpd/conf.d/jenkins.conf; \
    echo '</Location>'                                               >> /etc/httpd/conf.d/jenkins.conf


# edit sysconfig
RUN sed -i 's/JENKINS_ARGS=""""/JENKINS_ARGS=""--prefix=\/jenkins""/' /etc/sysconfig/jenkins


# get jenkins plugin-list
RUN mkdir -p /var/lib/jenkins/plugins; \
    chown jenkins.jenkins /var/lib/jenkins/plugins; \
    service jenkins start; \
    sleep 30; \
    wget -O $INSTALL_DIR/bin/jenkins-cli.jar http://localhost:8080/jenkins/jnlpJars/jenkins-cli.jar; \
    curl -L http://updates.jenkins-ci.org/update-center.json | sed '1d;$d' | curl -X POST -H 'Accept: application/json' -d @- http://localhost:8080/updateCenter/byId/default/postBack; \
    java -jar $INSTALL_DIR/bin/jenkins-cli.jar -s http://localhost:8080/jenkins/ install-plugin reverse-proxy-auth-plugin; \
    java -jar $INSTALL_DIR/bin/jenkins-cli.jar -s http://localhost:8080/jenkins/ install-plugin git; \
    java -jar $INSTALL_DIR/bin/jenkins-cli.jar -s http://localhost:8080/jenkins/ install-plugin redmine; \
    java -jar $INSTALL_DIR/bin/jenkins-cli.jar -s http://localhost:8080/jenkins/ install-plugin dashboard-view; \
    mkdir -p /var/lib/jenkins; \
    echo '<?xml version=""1.0"" encoding=""UTF-8""?>'                                                                                           > /var/lib/jenkins/config.xml; \
    echo '<hudson>'                                                                                                                        >> /var/lib/jenkins/config.xml; \
    echo '  <disabledAdministrativeMonitors>'                                                                                              >> /var/lib/jenkins/config.xml; \
    echo '    <string>hudson.diagnosis.ReverseProxySetupMonitor</string>'                                                                  >> /var/lib/jenkins/config.xml; \
    echo '  </disabledAdministrativeMonitors>'                                                                                             >> /var/lib/jenkins/config.xml; \
    echo '  <version>1.0</version>'                                                                                                        >> /var/lib/jenkins/config.xml; \
    echo '  <numExecutors>2</numExecutors>'                                                                                                >> /var/lib/jenkins/config.xml; \
    echo '  <mode>NORMAL</mode>'                                                                                                           >> /var/lib/jenkins/config.xml; \
    echo '  <useSecurity>true</useSecurity>'                                                                                               >> /var/lib/jenkins/config.xml; \
    echo '  <authorizationStrategy class=""hudson.security.AuthorizationStrategy$Unsecured""/>'                                              >> /var/lib/jenkins/config.xml; \
    echo '  <!-- <securityRealm class=""org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm"" plugin=""reverse-proxy-auth-plugin"">' >> /var/lib/jenkins/config.xml; \
    echo '    <proxyTemplate/>'                                                                                                            >> /var/lib/jenkins/config.xml; \
    echo '    <authContext/>'                                                                                                              >> /var/lib/jenkins/config.xml; \
    echo '    <inhibitInferRootDN>false</inhibitInferRootDN>'                                                                              >> /var/lib/jenkins/config.xml; \
    echo '    <userSearchBase></userSearchBase>'                                                                                           >> /var/lib/jenkins/config.xml; \
    echo '    <userSearch>uid={0}</userSearch>'                                                                                            >> /var/lib/jenkins/config.xml; \
    echo '    <authorities/>'                                                                                                              >> /var/lib/jenkins/config.xml; \
    echo '    <forwardedUser>X-Forwarded-User</forwardedUser>'                                                                             >> /var/lib/jenkins/config.xml; \
    echo '    <headerGroups>X-Forwarded-Groups</headerGroups>'                                                                             >> /var/lib/jenkins/config.xml; \
    echo '    <headerGroupsDelimiter>|</headerGroupsDelimiter>'                                                                            >> /var/lib/jenkins/config.xml; \
    echo '  </securityRealm> -->'                                                                                                              >> /var/lib/jenkins/config.xml; \
    echo '  <projectNamingStrategy class=""jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy""/>'                             >> /var/lib/jenkins/config.xml; \
    echo '  <workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir>'                                                                        >> /var/lib/jenkins/config.xml; \
    echo '  <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>'                                                                                 >> /var/lib/jenkins/config.xml; \
    echo '  <markupFormatter class=""hudson.markup.RawHtmlMarkupFormatter"">'                                                                >> /var/lib/jenkins/config.xml; \
    echo '    <disableSyntaxHighlighting>false</disableSyntaxHighlighting>'                                                                >> /var/lib/jenkins/config.xml; \
    echo '  </markupFormatter>'                                                                                                            >> /var/lib/jenkins/config.xml; \
    echo '  <jdks/>'                                                                                                                       >> /var/lib/jenkins/config.xml; \
    echo '  <viewsTabBar class=""hudson.views.DefaultViewsTabBar""/>'                                                                        >> /var/lib/jenkins/config.xml; \
    echo '  <myViewsTabBar class=""hudson.views.DefaultMyViewsTabBar""/>'                                                                    >> /var/lib/jenkins/config.xml; \
    echo '  <clouds/>'                                                                                                                     >> /var/lib/jenkins/config.xml; \
    echo '  <slaves/>'                                                                                                                     >> /var/lib/jenkins/config.xml; \
    echo '  <scmCheckoutRetryCount>0</scmCheckoutRetryCount>'                                                                              >> /var/lib/jenkins/config.xml; \
    echo '  <views>'                                                                                                                       >> /var/lib/jenkins/config.xml; \
    echo '    <hudson.model.AllView>'                                                                                                      >> /var/lib/jenkins/config.xml; \
    echo '      <owner class=""hudson"" reference=""../../..""/>'                                                                              >> /var/lib/jenkins/config.xml; \
    echo '      <name>すべて</name>'                                                                                                       >> /var/lib/jenkins/config.xml; \
    echo '      <filterExecutors>false</filterExecutors>'                                                                                  >> /var/lib/jenkins/config.xml; \
    echo '      <filterQueue>false</filterQueue>'                                                                                          >> /var/lib/jenkins/config.xml; \
    echo '      <properties class=""hudson.model.View$PropertyList""/>'                                                                      >> /var/lib/jenkins/config.xml; \
    echo '    </hudson.model.AllView>'                                                                                                     >> /var/lib/jenkins/config.xml; \
    echo '  </views>'                                                                                                                      >> /var/lib/jenkins/config.xml; \
    echo '  <primaryView>すべて</primaryView>'                                                                                             >> /var/lib/jenkins/config.xml; \
    echo '  <slaveAgentPort>0</slaveAgentPort>'                                                                                            >> /var/lib/jenkins/config.xml; \
    echo '  <label></label>'                                                                                                               >> /var/lib/jenkins/config.xml; \
    echo '  <nodeProperties/>'                                                                                                             >> /var/lib/jenkins/config.xml; \
    echo '  <globalNodeProperties/>'                                                                                                       >> /var/lib/jenkins/config.xml; \
    echo '</hudson>'                                                                                                                       >> /var/lib/jenkins/config.xml; \
    java -jar $INSTALL_DIR/bin/jenkins-cli.jar -s http://localhost:8080/jenkins/ restart



########################################  after-setting  ########################################

# svn auth
RUN mkdir -p /etc/httpd/Apache/Authn; \
    cp ${INSTALL_DIR}/extra/svn/Redmine.pm /etc/httpd/Apache/Authn/

# edit /etc/httpd/conf.d/redmine.conf
RUN echo 'LoadModule passenger_module /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.0.25/buildout/apache2/mod_passenger.so'   > /etc/httpd/conf.d/redmine.conf; \
    echo 'PassengerRoot /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.",
331,57fb1aceabff7a4c65311658f7bcad02825224e8,Bump version,"Bump version
","FROM debian:jessie

MAINTAINER Tim Robinson <tim@panubo.com>

ENV DEBIAN_FRONTEND noninteractive

ENV SENSU_VERSION 0.26.5
ENV SENSU_PKG_VERSION 2

# Some dependencies
RUN apt-get update && \
  apt-get -y install curl sudo bc python-jinja2 lvm2 btrfs-tools && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*

# Setup sensu package repo & Install Sensu
RUN curl http://repositories.sensuapp.org/apt/pubkey.gpg | apt-key add - && \
  echo ""deb     http://repositories.sensuapp.org/apt sensu main"" | tee /etc/apt/sources.list.d/sensu.list && \
  apt-get update && \
  apt-get install sensu=${SENSU_VERSION}-${SENSU_PKG_VERSION} && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* && \
  echo ""EMBEDDED_RUBY=true"" > /etc/default/sensu

RUN curl -L https://github.com/voltgrid/voltgrid-pie/archive/v1.tar.gz | tar -C /usr/local/bin --strip-components 1 -zxf - voltgrid-pie-1/voltgrid.py

# Install some plugins/checks
RUN apt-get update && \
  apt-get install -y build-essential && \
  /opt/sensu/embedded/bin/gem install \
  sensu-plugins-disk-checks \
  sensu-plugins-memory-checks \
  sensu-plugins-load-checks \
  sensu-plugins-kubernetes \
  sensu-plugins-ssl \
  sensu-plugins-aws \
  sensu-plugins-http \
  --no-rdoc --no-ri && \
  apt-get remove -y build-essential && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

ENV PATH=/opt/sensu/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/var/tmp HOME=/opt/sensu
ENV LOGLEVEL=info SENSU_CLIENT_SUBSCRIPTIONS=test

# Add custom checks and scripts
ADD register-result /register-result
ADD check-lvmthin.rb /opt/sensu/embedded/bin/check-lvmthin.rb
ADD check-btrfs.rb /opt/sensu/embedded/bin/check-btrfs.rb

# Add config files
ADD voltgrid.conf /usr/local/etc/voltgrid.conf
ADD config.json /etc/sensu/config.json
ADD client.json /etc/sensu/conf.d/client.json
ADD sudoers /etc/sudoers.d/sensu

ADD entry.sh /
ENTRYPOINT [""/entry.sh"", ""/usr/local/bin/voltgrid.py""]
CMD [""/opt/sensu/bin/sensu-client"", ""-c"", ""/etc/sensu/config.json"", ""-d"", ""/etc/sensu/conf.d"", ""-e"", ""/etc/sensu/extensions"", ""-L"", ""warn""]

ENV BUILD_VERSION 0.26.5-4
","FROM debian:jessie

MAINTAINER Tim Robinson <tim@panubo.com>

ENV DEBIAN_FRONTEND noninteractive

ENV SENSU_VERSION 0.26.5
ENV SENSU_PKG_VERSION 2

# Some dependencies
RUN apt-get update && \
  apt-get -y install curl sudo bc python-jinja2 lvm2 btrfs-tools && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/*

# Setup sensu package repo & Install Sensu
RUN curl http://repositories.sensuapp.org/apt/pubkey.gpg | apt-key add - && \
  echo ""deb     http://repositories.sensuapp.org/apt sensu main"" | tee /etc/apt/sources.list.d/sensu.list && \
  apt-get update && \
  apt-get install sensu=${SENSU_VERSION}-${SENSU_PKG_VERSION} && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* && \
  echo ""EMBEDDED_RUBY=true"" > /etc/default/sensu

RUN curl -L https://github.com/voltgrid/voltgrid-pie/archive/v1.tar.gz | tar -C /usr/local/bin --strip-components 1 -zxf - voltgrid-pie-1/voltgrid.py

# Install some plugins/checks
RUN apt-get update && \
  apt-get install -y build-essential && \
  /opt/sensu/embedded/bin/gem install \
  sensu-plugins-disk-checks \
  sensu-plugins-memory-checks \
  sensu-plugins-load-checks \
  sensu-plugins-kubernetes \
  sensu-plugins-ssl \
  sensu-plugins-aws \
  sensu-plugins-http \
  --no-rdoc --no-ri && \
  apt-get remove -y build-essential && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

ENV PATH=/opt/sensu/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/var/tmp HOME=/opt/sensu
ENV LOGLEVEL=info SENSU_CLIENT_SUBSCRIPTIONS=test

# Add custom checks and scripts
ADD register-result /register-result
ADD check-lvmthin.rb /opt/sensu/embedded/bin/check-lvmthin.rb
ADD check-btrfs.rb /opt/sensu/embedded/bin/check-btrfs.rb

# Add config files
ADD voltgrid.conf /usr/local/etc/voltgrid.conf
ADD config.json /etc/sensu/config.json
ADD client.json /etc/sensu/conf.d/client.json
ADD sudoers /etc/sudoers.d/sensu

ADD entry.sh /
ENTRYPOINT [""/entry.sh"", ""/usr/local/bin/voltgrid.py""]
CMD [""/opt/sensu/bin/sensu-client"", ""-c"", ""/etc/sensu/config.json"", ""-d"", ""/etc/sensu/conf.d"", ""-e"", ""/etc/sensu/extensions"", ""-L"", ""warn""]

ENV BUILD_VERSION 0.26.5-5
"
290,864d2de66db68ed9f54bc02cf5f5baca50b68573,Update to Nextcloud 19,"Update to Nextcloud 19
","FROM nextcloud:18-apache

COPY entrypoint.sh /

RUN deluser www-data
RUN useradd -u 1000 -ms /bin/bash www-data
RUN usermod -a -G www-data www-data
RUN mkdir /var/www/deploy
","FROM nextcloud:19-apache

COPY entrypoint.sh /

RUN deluser www-data
RUN useradd -u 1000 -ms /bin/bash www-data
RUN usermod -a -G www-data www-data
RUN mkdir /var/www/deploy
"
2109,a7ce882d2b837b8cc5afc7487db511e1cdbbc2d4,Run update-alternatives as root.,"Run update-alternatives as root.
","FROM buildpack-deps:bionic-scm

ENV APP_DIR /srv/app

# Set up common env variables
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV DEBIAN_FRONTEND=noninteractive

RUN adduser --disabled-password --gecos ""Default Jupyter user"" jovyan
RUN install -d -o jovyan -g jovyan ${APP_DIR}

RUN apt-get update --yes
RUN apt-get install --yes \
            libdpkg-perl \
            python3.6 \
            python3.6-venv \
            python3.6-dev \
            python3-venv \
            tar \
            vim \
            nodejs \
            gcc \
            locales

RUN echo ""en_US.UTF-8 UTF-8"" > /etc/locale.gen && \
    locale-gen

# for nbconvert
RUN apt-get install --yes \
            pandoc \
            texlive-xetex \
            texlive-fonts-recommended \
            texlive-generic-recommended

ENV PATH ${APP_DIR}/venv/bin:$PATH

# Set this to be on container storage, rather than under $HOME
ENV IPYTHONDIR ${APP_DIR}/venv/etc/ipython

WORKDIR /home/jovyan

USER jovyan
RUN python3.6 -m venv ${APP_DIR}/venv

COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

RUN pip install --no-cache-dir jupyterhub==0.9.2

# Install nbzip
RUN jupyter serverextension enable  --sys-prefix --py nbzip && \
    jupyter nbextension     install --sys-prefix --py nbzip && \
    jupyter nbextension     enable  --sys-prefix --py nbzip

ADD ipython_config.py ${IPYTHONDIR}/ipython_config.py

# prevent bibtex from interupting nbconvert
RUN update-alternatives --install /usr/bin/bibtex bibtex /bin/true 200

EXPOSE 8888
",
405,b8df58c6108bbd3fbace22be3ebc17ef56d3c925,Bumped source to 20200712-639848e,"Bumped source to 20200712-639848e
","FROM docker.pkg.github.com/dock0/arch/arch:20200712-82c8d7f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20200712-639848e
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
182,30846deb06c13748a4a16641840979e5b7c1b48a,update dependencies,"update dependencies
","FROM httpd:2.4.12

RUN apt-get update && apt-get install -y \
  git-core \
  liburi-perl \
  libwww-perl 


RUN mkdir -p /var/log/httpd/api.metagenomics/ && \
  cd / && \
  git clone -b api https://github.com/MG-RAST/MG-RAST.git && \
  cd /MG-RAST && \
  make


#RUN apt-get install -y PIPELINE_DEPENDENCIES HERE <------------------

RUN cd / && git clone https://github.com/MG-RAST/pipeline.git

RUN mkdir -p /sites/1/ && \
  cd /sites/1/ && \
  ln -s /MG-RAST/

# Configuration in mounted directory
RUN cd /MG-RAST/conf && ln -s /api-server/Conf.pm




# Execute:
# /usr/local/apache2/bin/httpd -DFOREGROUND -f /MG-RAST/conf/httpd.conf","FROM httpd:2.4.12

# MG-RAST dependencies
RUN apt-get update && apt-get install -y \
  git-core \
  libpq-dev
  perl-modules \
  liburi-perl \
  libwww-perl \
  libjson-perl \
  libdbi-perl \
  libdbd-mysql-perl \
  libdbd-pg-perl \
  libdigest-md5-perl \
  libfile-slurp-perl \
  libhtml-strip-perl \
  liblist-moreutils-perl \
  libcache-memcached-perl \
  libhtml-template-perl \
  libdigest-md5-perl \
  libdigest-md5-file-perl \
  libdatetime-perl \
  liblist-allutils-perl \
  libposix-strptime-perl


RUN mkdir -p /var/log/httpd/api.metagenomics/ && \
  cd / && \
  git clone -b api https://github.com/MG-RAST/MG-RAST.git && \
  cd /MG-RAST && \
  make

# pipeline dependencies
RUN apt-get install -y \
  python-dev \
  python-pip \
  libtemplate-perl

RUN pip install gspread xlrd openpyxl lepl

RUN cd / && git clone https://github.com/MG-RAST/pipeline.git
RUN cp /pipeline/lib/StreamingUpload.pm /MG-RAST/site/lib/StreamingUpload.pm

RUN mkdir -p /sites/1/ && \
  cd /sites/1/ && \
  ln -s /MG-RAST/

# Configuration in mounted directory
RUN cd /MG-RAST/conf && ln -s /api-server/Conf.pm
RUN cd /pipeline/conf && ln -s /api-server/PipelineAWE_Conf.pm


# Execute:
# /usr/local/apache2/bin/httpd -DFOREGROUND -f /MG-RAST/conf/httpd.conf"
2188,c2d72b924c078909a859d56fd4cec5f84685e76e,update and cleanup imageservice Dockerfile,"update and cleanup imageservice Dockerfile
","FROM tomcat:8-alpine

# service deployment section
RUN mkdir -p /data \
/data/images \
/data/images/config \
  /data/images/elasticsearch \
  /data/images/store \
  /data/images/incoming \
  /data/images/bin/imgcnv

VOLUME /data/images/store /data/images/elasticsearch

COPY images.war $CATALINA_HOME/webapps/

ENV \
BUILD_DEPS=""gettext"" \
RUNTIME_DEPS=""libintl""

RUN \
    apk add --update $RUNTIME_DEPS && \
    apk add --virtual build_deps $BUILD_DEPS &&  \
    cp /usr/bin/envsubst /usr/local/bin/envsubst && \
    apk del build_deps

RUN apk add --update tini
ENTRYPOINT [""tini"", ""--""]
CMD [""catalina.sh"", ""run""]
",
260,cd200b5dcb7d0696746978bf766b2c1af115bc10,Updated to pull from master rather than latest,"Updated to pull from master rather than latest
","FROM hpess/base:latest
MAINTAINER Karl Stoney <karl.stoney@hp.com>

# Install chef-client
RUN curl -s -L https://www.opscode.com/chef/install.sh | bash && \
    rm -rf /opt/chef/embedded/apps/chef/spec && \
    rm -rf /opt/chef/embedded/apps/chef/kitchen-tests && \
    rm -rf /opt/chef/embedded/apps/chef/distro
    

# Setup the directories that are required
RUN mkdir -p /etc/chef && \
    mkdir -p /chef/cookbooks && \
    mkdir -p /chef/roles && \
    mkdir -p /chef/environments && \
    mkdir -p /chef/data_bags

COPY client.rb /etc/chef/client.rb

# Add our preboot scripts
COPY preboot/* /preboot/ 
","FROM hpess/base:master
MAINTAINER Karl Stoney <karl.stoney@hp.com>

# Install chef-client
RUN curl -s -L https://www.opscode.com/chef/install.sh | bash && \
    rm -rf /opt/chef/embedded/apps/chef/spec && \
    rm -rf /opt/chef/embedded/apps/chef/kitchen-tests && \
    rm -rf /opt/chef/embedded/apps/chef/distro
    

# Setup the directories that are required
RUN mkdir -p /etc/chef && \
    mkdir -p /chef/cookbooks && \
    mkdir -p /chef/roles && \
    mkdir -p /chef/environments && \
    mkdir -p /chef/data_bags

COPY client.rb /etc/chef/client.rb

# Add our preboot scripts
COPY preboot/* /preboot/ 
"
295,dfa7ea57d1ce5e14bf39a6a9d741114c973e104a,Updated stream-publisher Dockerfile,"Updated stream-publisher Dockerfile
","FROM ubuntu

ENV http_proxy http://proxy.ifmo.ru:3128
ENV https_proxy http://proxy.ifmo.ru:3128
ENV DEBIAN_FRONTEND noninteractive

WORKDIR /root

RUN apt-get update
RUN apt-get install -y wget binutils java-common unzip

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

RUN wget https://db.tt/dFU3BqFP -O /root/oracle-java8-installer_8u5-1~webupd8~3_all.deb
RUN dpkg -i oracle-java8-installer_8u5-1~webupd8~3_all.deb

RUN apt-get update
RUN apt-get install -y maven git

RUN rm /usr/share/maven/conf/settings.xml
ADD settings.xml /usr/share/maven/conf/settings.xml
ADD https://raw.githubusercontent.com/ailabitmo/DAAFSE/master/electricmeters.owl /root/DAAFSE/srteam-publisher/electricmeters.ttl

RUN git clone https://github.com/ailabitmo/DAAFSE.git
RUN cd DAAFSE/stream-publisher/ && mvn clean install -DskipTests=true

RUN wget https://dl.dropboxusercontent.com/u/1497018/daafse/server.log.zip -O /root/DAAFSE/stream-publisher/server.log.zip
RUN cd /root/DAAFSE/stream-publisher/ && unzip server.log.zip -d .

RUN ls -al /root && ls -al /root/DAAFSE && ls -al /root/DAAFSE/stream-publisher/
","FROM ubuntu

ENV http_proxy http://proxy.ifmo.ru:3128
ENV https_proxy http://proxy.ifmo.ru:3128
ENV DEBIAN_FRONTEND noninteractive

WORKDIR /root

RUN apt-get update
RUN apt-get install -y wget binutils java-common unzip

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

RUN wget https://db.tt/dFU3BqFP -O /root/oracle-java8-installer_8u5-1~webupd8~3_all.deb
RUN dpkg -i oracle-java8-installer_8u5-1~webupd8~3_all.deb

RUN apt-get update
RUN apt-get install -y maven git

RUN rm /usr/share/maven/conf/settings.xml
ADD settings.xml /usr/share/maven/conf/settings.xml
RUN wget https://raw.githubusercontent.com/ailabitmo/DAAFSE/master/electricmeters.owl -O /root/DAAFSE/srteam-publisher/electricmeters.ttl

RUN git clone https://github.com/ailabitmo/DAAFSE.git
RUN cd DAAFSE/stream-publisher/ && mvn clean install -DskipTests=true

RUN wget https://dl.dropboxusercontent.com/u/1497018/daafse/server.log.zip -O /root/DAAFSE/stream-publisher/server.log.zip
RUN cd /root/DAAFSE/stream-publisher/ && unzip server.log.zip -d .

RUN ls -al /root && ls -al /root/DAAFSE && ls -al /root/DAAFSE/stream-publisher/
"
305,048a70102aacea3fadfaf08164a04efa7752fe3d,Add phantomjs for clojurescript projects.,"Add phantomjs for clojurescript projects.
","FROM lynxtp/openjdk-jdk:8
MAINTAINER ""Tom Vaughan <tvaughan@lynxtp.com>""

RUN curl -sL -o /usr/local/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/2.6.1/bin/lein \
    && chmod a+x /usr/local/bin/lein

ENV LEIN_HOME /srv/lein
ENV LEIN_ROOT 1

ENV LEIN_REPL_HOST 0.0.0.0
ENV LEIN_REPL_PORT 5309

EXPOSE $LEIN_REPL_PORT

CMD [""lein""]
","FROM lynxtp/openjdk-jdk:8
MAINTAINER ""Tom Vaughan <tvaughan@lynxtp.com>""

ENV PATH /opt/phantomjs/bin:$PATH

RUN curl -sL -o /tmp/phantomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2     \
    && mkdir -p /opt/phantomjs                                                                                                  \
    && tar --strip-components=1 -C /opt/phantomjs -xf /tmp/phantomjs.tar.bz2                                                    \
    && rm -f /tmp/phantomjs.tar.bz2

RUN curl -sL -o /usr/local/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/2.6.1/bin/lein \
    && chmod a+x /usr/local/bin/lein

ENV LEIN_HOME /srv/lein
ENV LEIN_ROOT 1

ENV LEIN_REPL_HOST 0.0.0.0
ENV LEIN_REPL_PORT 5309

EXPOSE $LEIN_REPL_PORT

CMD [""lein""]
"
2217,41b71e1c6e5a0edfa9f31e43f6e78c4c67a851bc,Updated Atlassian Bamboo master branch to latest version 6.6.3,"Updated Atlassian Bamboo master branch to latest version 6.6.3
","FROM openjdk:8-alpine

# Setup useful environment variables
ENV BAMBOO_HOME     /var/atlassian/bamboo
ENV BAMBOO_INSTALL  /opt/atlassian/bamboo
ENV BAMBOO_VERSION  6.6.2

# Install Atlassian Bamboo and helper tools and setup initial home
# directory structure.
RUN set -x \
    && apk add --no-cache curl xmlstarlet git openssh bash ttf-dejavu libc6-compat \
    && mkdir -p               ""${BAMBOO_HOME}/lib"" \
    && chmod -R 700           ""${BAMBOO_HOME}"" \
    && chown -R daemon:daemon ""${BAMBOO_HOME}"" \
    && mkdir -p               ""${BAMBOO_INSTALL}"" \
    && curl -Ls               ""https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-${BAMBOO_VERSION}.tar.gz"" | tar -zx --directory  ""${BAMBOO_INSTALL}"" --strip-components=1 --no-same-owner \
    && curl -Ls                ""https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz"" | tar -xz --directory ""${BAMBOO_INSTALL}/lib"" --strip-components=1 --no-same-owner ""mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar"" \
    && chmod -R 700           ""${BAMBOO_INSTALL}"" \
    && chown -R daemon:daemon ""${BAMBOO_INSTALL}"" \
    && sed --in-place         's/^# umask 0027$/umask 0027/g' ""${BAMBOO_INSTALL}/bin/setenv.sh"" \
    && xmlstarlet             ed --inplace \
        --delete              ""Server/Service/Engine/Host/@xmlValidation"" \
        --delete              ""Server/Service/Engine/Host/@xmlNamespaceAware"" \
                              ""${BAMBOO_INSTALL}/conf/server.xml"" \
    && touch -d ""@0""          ""${BAMBOO_INSTALL}/conf/server.xml""


# Use the default unprivileged account. This could be considered bad practice
# on systems where multiple processes end up being executed by 'daemon' but
# here we only ever run one process anyway.
USER daemon:daemon

# Expose default HTTP and SSH ports.
EXPOSE 8085 54663

# Set volume mount points for installation and home directory. Changes to the
# home directory needs to be persisted as well as parts of the installation
# directory due to eg. logs.
VOLUME [""/var/atlassian/bamboo"",""/opt/atlassian/bamboo/logs""]

# Set the default working directory as the Bamboo home directory.
WORKDIR /var/atlassian/bamboo

COPY ""docker-entrypoint.sh"" ""/""
ENTRYPOINT [""/docker-entrypoint.sh""]

# Run Atlassian Bamboo as a foreground process by default.
CMD [""/opt/atlassian/bamboo/bin/start-bamboo.sh"", ""-fg""]
",
2165,393d73ac7d53ac7dc278d5c67d519f2c2123d7bf,upgrade piwik to 2.15.0,"upgrade piwik to 2.15.0
","#
# Dockerfile for piwik
#

FROM php:5.6-apache
MAINTAINER kev <noreply@datageek.info>

RUN apt-get update \
    && apt-get install -y git \
                          libfreetype6 \
                          libfreetype6-dev \
                          libjpeg62-turbo \
                          libjpeg-dev \
                          libpng12-0 \
                          libpng12-dev \
                          libzip2 \
                          libzip-dev \
    && docker-php-ext-configure gd --with-freetype-dir=/usr \
                                   --with-jpeg-dir=/usr \
                                   --with-png-dir=/usr \
    && docker-php-ext-install gd \
                              mbstring \
                              mysqli \
                              zip \
    && apt-get purge --auto-remove -y libfreetype6-dev \
                                      libjpeg-dev \
                                      libpng12-dev \
                                      libzip-dev \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /var/www/html

ENV PIWIK_VER 2.14.3
ENV PIWIK_MD5 1a613d36723ca5ccd52a9a9121d09a83
ENV PIWIK_URL https://github.com/piwik/piwik/archive/$PIWIK_VER.tar.gz
ENV PIWIK_FILE piwik.tar.gz

RUN curl -sSL ${PIWIK_URL} -o ${PIWIK_FILE} \
    && echo ""${PIWIK_MD5} ${PIWIK_FILE}"" | md5sum -c \
    && tar xzf ${PIWIK_FILE} --strip 1 \
    && rm ${PIWIK_FILE} \
    && curl -sS https://getcomposer.org/installer | php \
    && php composer.phar install \
    && echo ""always_populate_raw_post_data=-1"" >> /usr/local/etc/php/php.ini \
    && chown -R www-data:www-data .

",
184,4e7ee079fe8783bb8b1ff0f98c7196af4336e598,Bumped source to 20220812-c7700b0,"Bumped source to 20220812-c7700b0
","FROM ghcr.io/dock0/arch:20220812-24486a6
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM ghcr.io/dock0/arch:20220812-c7700b0
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
411,da0397d58065c7b13e649cfacf5933a5f3cd6fa4,Add stackage to IHaskell build,"Add stackage to IHaskell build

Sets up the IHaskell build to use a fixed snapshot of package
versions, verified as working (currently being used in the IHaskell
master branch).

Switch to lts-2.22

This is the last snapshot built for GHC-7.8.4
","# Docker demo image, as used on try.jupyter.org and tmpnb.org

FROM jupyter/minimal-notebook:4.0

MAINTAINER Jupyter Project <jupyter@googlegroups.com>

# Install system libraries first as root
USER root

# Julia dependencies
RUN apt-get update &&  \
    apt-get install -y julia libnettle4 && \
    apt-get clean

# R dependencies that conda can't provide (X, fonts, compilers)
RUN apt-get update && \
    apt-get install -y libxrender1 fonts-dejavu gfortran gcc && \
    apt-get clean

# The Glorious Glasgow Haskell Compiler
RUN apt-get update && \
    apt-get install -y --no-install-recommends software-properties-common && \
    add-apt-repository -y ppa:hvr/ghc && \
    sed -i s/jessie/trusty/g /etc/apt/sources.list.d/hvr-ghc-jessie.list && \
    apt-get update && \
    apt-get install -y cabal-install-1.22 ghc-7.8.4 happy-1.19.4 alex-3.1.3 && \
    apt-get clean

# IHaskell dependencies
RUN apt-get install -y --no-install-recommends zlib1g-dev libzmq3-dev libtinfo-dev libcairo2-dev libpango1.0-dev && apt-get clean

# Ruby dependencies
RUN apt-get install -y --no-install-recommends ruby ruby-dev libtool autoconf automake gnuplot-nox libsqlite3-dev libatlas-base-dev libgsl0-dev libmagick++-dev imagemagick && \
    ln -s /usr/bin/libtoolize /usr/bin/libtool && \
    apt-get clean
RUN gem install --no-rdoc --no-ri sciruby-full

# Spark dependencies
ENV APACHE_SPARK_VERSION 1.4.1
RUN apt-get update && \
    apt-get install -y --no-install-recommends openjdk-7-jre-headless && \
    apt-get clean
RUN wget -qO - http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz | tar -xz -C /usr/local/ && \
    cd /usr/local && \
    ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6 spark

# Scala Spark kernel (build and cleanup)
RUN cd /tmp && \
    echo deb http://dl.bintray.com/sbt/debian / > /etc/apt/sources.list.d/sbt.list && \
    apt-get update && \
    git clone https://github.com/ibm-et/spark-kernel.git && \
    apt-get install -yq --force-yes --no-install-recommends sbt && \
    cd spark-kernel && \
    sbt compile -Xms1024M \
        -Xmx2048M \
        -Xss1M \
        -XX:+CMSClassUnloadingEnabled \
        -XX:MaxPermSize=1024M && \
    sbt pack && \
    mv kernel/target/pack /opt/sparkkernel && \
    chmod +x /opt/sparkkernel && \
    rm -rf ~/.ivy2 && \
    rm -rf ~/.sbt && \
    rm -rf /tmp/spark-kernel && \
    apt-get remove -y sbt && \
    apt-get clean

# Now switch to jovyan for all conda and other package manager installs
USER jovyan

ENV PATH /home/jovyan/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.4/bin:/opt/alex/3.1.3/bin:$PATH
ENV SPARK_HOME /usr/local/spark
ENV PYTHONPATH $SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip

# Python packages
RUN conda install --yes numpy pandas scikit-learn scikit-image matplotlib scipy seaborn sympy cython patsy statsmodels cloudpickle dill numba bokeh && conda clean -yt

# Now for a python2 environment
RUN conda create -p $CONDA_DIR/envs/python2 python=2.7 ipykernel numpy pandas scikit-learn scikit-image matplotlib scipy seaborn sympy cython patsy statsmodels cloudpickle dill numba bokeh && conda clean -yt
RUN $CONDA_DIR/envs/python2/bin/python \
    $CONDA_DIR/envs/python2/bin/ipython \
    kernelspec install-self --user

# IRuby
RUN iruby register

# R packages
RUN conda config --add channels r
RUN conda install --yes r-irkernel r-plyr r-devtools r-rcurl r-dplyr r-ggplot2 r-caret rpy2 r-tidyr r-shiny r-rmarkdown r-forecast r-stringr r-rsqlite r-reshape2 r-nycflights13 r-randomforest && conda clean -yt

# IJulia and Julia packages
RUN julia -e 'Pkg.add(""IJulia"")'
RUN julia -e 'Pkg.add(""Gadfly"")' && julia -e 'Pkg.add(""RDatasets"")'

# IHaskell + IHaskell-Widgets + Dependencies for examples
RUN cabal update && \
    cabal install cpphs && \
    cabal install gtk2hs-buildtools && \
    cabal install ihaskell-0.8.0.0 --reorder-goals && \
    cabal install singletons-1.1.2.1 ihaskell-widgets-0.2.0.0 HTTP Chart Chart-cairo && \
    ihaskell install && \
    rm -fr $(echo ~/.cabal/bin/* | grep -iv ihaskell) ~/.cabal/packages ~/.cabal/share/doc ~/.cabal/setup-exe-cache ~/.cabal/logs

# Extra Kernels
RUN pip install --user --no-cache-dir bash_kernel && \
    python -m bash_kernel.install

# Clone featured notebooks before adding local content to avoid recloning
# everytime something changes locally
RUN mkdir -p /home/jovyan/work/communities && \
    mkdir -p /home/jovyan/work/featured
RUN git clone --depth 1 https://github.com/jvns/pandas-cookbook.git /home/jovyan/work/featured/pandas-cookbook/
RUN git clone --depth 1 https://github.com/gibiansky/IHaskell.git /home/jovyan/work/IHaskell/ && \
    mv /home/jovyan/work/IHaskell/ihaskell-display/ihaskell-widgets/Examples /home/jovyan/work/featured/ihaskell-widgets && \
    rm -r /home/jovyan/work/IHaskell

# Add local content, starting with notebooks and datasets which are the largest
# so that later, smaller file changes do not cause a complete recopy during 
# build
COPY notebooks/ /home/jovyan/work/
COPY datasets/ /home/jovyan/work/datasets/

# Add Scala kernel spec
RUN mkdir -p /opt/conda/share/jupyter/kernels/scala
COPY resources/kernel.json /opt/conda/share/jupyter/kernels/scala/

# Switch back to root for permission fixes, conversions, and trust. Make sure
# trust is done as jovyan so that the signing secret winds up in the jovyan
# profile, not root's
USER root

# Convert notebooks to the current format and trust them
RUN find /home/jovyan/work -name '*.ipynb' -exec ipython nbconvert --to notebook {} --output {} \; && \
    chown -R jovyan:users /home/jovyan && \
    sudo -u jovyan env ""PATH=$PATH"" find /home/jovyan/work -name '*.ipynb' -exec ipython trust {} \;

# Finally, add the site specific tmpnb.org / try.jupyter.org configuration.
# These should probably be split off into a separate docker image so that others
# can reuse the very expensive build of all the above with their own site 
# customization.

# Expose our custom setup to the installed ipython (for mounting by nginx)
COPY resources/custom.js /opt/conda/lib/python3.4/site-packages/notebook/static/custom/

# Add the templates
COPY resources/templates/ /srv/templates/
RUN chmod a+rX /srv/templates

# Append tmpnb specific options to the base config
COPY resources/jupyter_notebook_config.partial.py /tmp/
RUN cat /tmp/jupyter_notebook_config.partial.py >> /home/jovyan/.jupyter/jupyter_notebook_config.py && \
    rm /tmp/jupyter_notebook_config.partial.py
","# Docker demo image, as used on try.jupyter.org and tmpnb.org

FROM jupyter/minimal-notebook:4.0

MAINTAINER Jupyter Project <jupyter@googlegroups.com>

# Install system libraries first as root
USER root

# Julia dependencies
RUN apt-get update &&  \
    apt-get install -y julia libnettle4 && \
    apt-get clean

# R dependencies that conda can't provide (X, fonts, compilers)
RUN apt-get update && \
    apt-get install -y libxrender1 fonts-dejavu gfortran gcc && \
    apt-get clean

# The Glorious Glasgow Haskell Compiler
RUN apt-get update && \
    apt-get install -y --no-install-recommends software-properties-common && \
    add-apt-repository -y ppa:hvr/ghc && \
    sed -i s/jessie/trusty/g /etc/apt/sources.list.d/hvr-ghc-jessie.list && \
    apt-get update && \
    apt-get install -y cabal-install-1.22 ghc-7.8.4 happy-1.19.4 alex-3.1.3 && \
    apt-get clean

# IHaskell dependencies
RUN apt-get install -y --no-install-recommends zlib1g-dev libzmq3-dev libtinfo-dev libcairo2-dev libpango1.0-dev && apt-get clean

# Ruby dependencies
RUN apt-get install -y --no-install-recommends ruby ruby-dev libtool autoconf automake gnuplot-nox libsqlite3-dev libatlas-base-dev libgsl0-dev libmagick++-dev imagemagick && \
    ln -s /usr/bin/libtoolize /usr/bin/libtool && \
    apt-get clean
RUN gem install --no-rdoc --no-ri sciruby-full

# Spark dependencies
ENV APACHE_SPARK_VERSION 1.4.1
RUN apt-get update && \
    apt-get install -y --no-install-recommends openjdk-7-jre-headless && \
    apt-get clean
RUN wget -qO - http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz | tar -xz -C /usr/local/ && \
    cd /usr/local && \
    ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6 spark

# Scala Spark kernel (build and cleanup)
RUN cd /tmp && \
    echo deb http://dl.bintray.com/sbt/debian / > /etc/apt/sources.list.d/sbt.list && \
    apt-get update && \
    git clone https://github.com/ibm-et/spark-kernel.git && \
    apt-get install -yq --force-yes --no-install-recommends sbt && \
    cd spark-kernel && \
    sbt compile -Xms1024M \
        -Xmx2048M \
        -Xss1M \
        -XX:+CMSClassUnloadingEnabled \
        -XX:MaxPermSize=1024M && \
    sbt pack && \
    mv kernel/target/pack /opt/sparkkernel && \
    chmod +x /opt/sparkkernel && \
    rm -rf ~/.ivy2 && \
    rm -rf ~/.sbt && \
    rm -rf /tmp/spark-kernel && \
    apt-get remove -y sbt && \
    apt-get clean

# Now switch to jovyan for all conda and other package manager installs
USER jovyan

ENV PATH /home/jovyan/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.8.4/bin:/opt/happy/1.19.4/bin:/opt/alex/3.1.3/bin:$PATH
ENV SPARK_HOME /usr/local/spark
ENV PYTHONPATH $SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip

# Python packages
RUN conda install --yes numpy pandas scikit-learn scikit-image matplotlib scipy seaborn sympy cython patsy statsmodels cloudpickle dill numba bokeh && conda clean -yt

# Now for a python2 environment
RUN conda create -p $CONDA_DIR/envs/python2 python=2.7 ipykernel numpy pandas scikit-learn scikit-image matplotlib scipy seaborn sympy cython patsy statsmodels cloudpickle dill numba bokeh && conda clean -yt
RUN $CONDA_DIR/envs/python2/bin/python \
    $CONDA_DIR/envs/python2/bin/ipython \
    kernelspec install-self --user

# IRuby
RUN iruby register

# R packages
RUN conda config --add channels r
RUN conda install --yes r-irkernel r-plyr r-devtools r-rcurl r-dplyr r-ggplot2 r-caret rpy2 r-tidyr r-shiny r-rmarkdown r-forecast r-stringr r-rsqlite r-reshape2 r-nycflights13 r-randomforest && conda clean -yt

# IJulia and Julia packages
RUN julia -e 'Pkg.add(""IJulia"")'
RUN julia -e 'Pkg.add(""Gadfly"")' && julia -e 'Pkg.add(""RDatasets"")'

# IHaskell + IHaskell-Widgets + Dependencies for examples
RUN cabal update && \
    curl 'https://www.stackage.org/lts-2.22/cabal.config?global=true' >> ~/.cabal/config && \
    cabal install cpphs && \
    cabal install gtk2hs-buildtools && \
    cabal install ihaskell-0.8.0.0 --reorder-goals && \
    cabal install ihaskell-widgets-0.2.0.0 HTTP Chart Chart-cairo && \
    ihaskell install && \
    rm -fr $(echo ~/.cabal/bin/* | grep -iv ihaskell) ~/.cabal/packages ~/.cabal/share/doc ~/.cabal/setup-exe-cache ~/.cabal/logs

# Extra Kernels
RUN pip install --user --no-cache-dir bash_kernel && \
    python -m bash_kernel.install

# Clone featured notebooks before adding local content to avoid recloning
# everytime something changes locally
RUN mkdir -p /home/jovyan/work/communities && \
    mkdir -p /home/jovyan/work/featured
RUN git clone --depth 1 https://github.com/jvns/pandas-cookbook.git /home/jovyan/work/featured/pandas-cookbook/
RUN git clone --depth 1 https://github.com/gibiansky/IHaskell.git /home/jovyan/work/IHaskell/ && \
    mv /home/jovyan/work/IHaskell/ihaskell-display/ihaskell-widgets/Examples /home/jovyan/work/featured/ihaskell-widgets && \
    rm -r /home/jovyan/work/IHaskell

# Add local content, starting with notebooks and datasets which are the largest
# so that later, smaller file changes do not cause a complete recopy during 
# build
COPY notebooks/ /home/jovyan/work/
COPY datasets/ /home/jovyan/work/datasets/

# Add Scala kernel spec
RUN mkdir -p /opt/conda/share/jupyter/kernels/scala
COPY resources/kernel.json /opt/conda/share/jupyter/kernels/scala/

# Switch back to root for permission fixes, conversions, and trust. Make sure
# trust is done as jovyan so that the signing secret winds up in the jovyan
# profile, not root's
USER root

# Convert notebooks to the current format and trust them
RUN find /home/jovyan/work -name '*.ipynb' -exec ipython nbconvert --to notebook {} --output {} \; && \
    chown -R jovyan:users /home/jovyan && \
    sudo -u jovyan env ""PATH=$PATH"" find /home/jovyan/work -name '*.ipynb' -exec ipython trust {} \;

# Finally, add the site specific tmpnb.org / try.jupyter.org configuration.
# These should probably be split off into a separate docker image so that others
# can reuse the very expensive build of all the above with their own site 
# customization.

# Expose our custom setup to the installed ipython (for mounting by nginx)
COPY resources/custom.js /opt/conda/lib/python3.4/site-packages/notebook/static/custom/

# Add the templates
COPY resources/templates/ /srv/templates/
RUN chmod a+rX /srv/templates

# Append tmpnb specific options to the base config
COPY resources/jupyter_notebook_config.partial.py /tmp/
RUN cat /tmp/jupyter_notebook_config.partial.py >> /home/jovyan/.jupyter/jupyter_notebook_config.py && \
    rm /tmp/jupyter_notebook_config.partial.py
"
231,3bb96be0196d83594d31266f9021379d29aeb385,update docker reference to woff tools,"update docker reference to woff tools

test plan:
- rebuild a docker container based on the canvas Dockerfile from scratch
- it should work

Change-Id: I096d33a73a5d2679a4e6d3c64ba2264d8274ed1d
Reviewed-on: https://gerrit.instructure.com/94024
Reviewed-by: Benjamin Christian Nelson <4a283f6b032925e40a485c88ede5597d7d65a090@instructure.com>
Reviewed-by: Alex Ortiz-Rosado <0d962001085a39e5d1cf1e3401131c0acb3ce8a1@instructure.com>
QA-Review: Benjamin Christian Nelson <4a283f6b032925e40a485c88ede5597d7d65a090@instructure.com>
Tested-by: Jenkins
Product-Review: Simon Williams <088e16a1019277b15d58faf0541e11910eb756f6@instructure.com>
","FROM instructure/ruby-passenger:2.1

USER root
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN  apt-get update -qq \
  && apt-get install -qqy \
       nodejs \
       postgresql-client \
       libxmlsec1-dev \
       unzip \
       fontforge \
       python-lxml \
  && npm install -g gulp \
  && rm -rf /var/lib/apt/lists/*

# We will need sfnt2woff in order to build fonts
WORKDIR /root
RUN if [ -e /var/lib/gems/$RUBY_MAJOR.0/gems/bundler-* ]; then BUNDLER_INSTALL=""-i /var/lib/gems/$RUBY_MAJOR.0""; fi \
  && curl -O http://people.mozilla.org/~jkew/woff/woff-code-latest.zip \
  && unzip woff-code-latest.zip \
  && make \
  && cp sfnt2woff /usr/local/bin \
  && gem uninstall --all --ignore-dependencies --force $BUNDLER_INSTALL bundler \
  && gem install bundler --no-document -v 1.12.5 \
  && find $GEM_HOME ! -user docker | xargs chown docker:docker

USER docker

RUN mkdir -p /home/docker/.gem/ruby/$RUBY_MAJOR.0
WORKDIR /usr/src/app

ENV RAILS_ENV development
ENV NGINX_MAX_UPLOAD_SIZE 10g
","FROM instructure/ruby-passenger:2.1

USER root
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN  apt-get update -qq \
  && apt-get install -qqy \
       nodejs \
       postgresql-client \
       libxmlsec1-dev \
       unzip \
       fontforge \
       python-lxml \
  && npm install -g gulp \
  && rm -rf /var/lib/apt/lists/*

# We will need sfnt2woff in order to build fonts
WORKDIR /root
RUN if [ -e /var/lib/gems/$RUBY_MAJOR.0/gems/bundler-* ]; then BUNDLER_INSTALL=""-i /var/lib/gems/$RUBY_MAJOR.0""; fi \
  && curl -O https://people-mozilla.org/~jkew/woff/woff-code-latest.zip \
  && unzip woff-code-latest.zip \
  && make \
  && cp sfnt2woff /usr/local/bin \
  && gem uninstall --all --ignore-dependencies --force $BUNDLER_INSTALL bundler \
  && gem install bundler --no-document -v 1.12.5 \
  && find $GEM_HOME ! -user docker | xargs chown docker:docker

USER docker

RUN mkdir -p /home/docker/.gem/ruby/$RUBY_MAJOR.0
WORKDIR /usr/src/app

ENV RAILS_ENV development
ENV NGINX_MAX_UPLOAD_SIZE 10g
"
2324,3d8fdc741e62717a94b9d3b4866433cf449baf94,Bumped source to 20200425-c6a30d1,"Bumped source to 20200425-c6a30d1
","FROM docker.pkg.github.com/dock0/service/service:20200425-04b8c1f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
",
2079,64b1bb1dbbc7c85c43ebfee7b2ee93d6b820dbfb,Update kubekins base image version (#1176),"Update kubekins base image version (#1176)

","# Copyright 2019 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/k8s-testimages/kubekins-e2e:v20190103-edc7696cc-master
LABEL maintainer ""Adriano Cunha <adrcunha@google.com>""

# Install extras on top of base image

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN gcloud components update

# Docker
RUN gcloud components install docker-credential-gcr
RUN docker-credential-gcr configure-docker

# Extra tools through apt-get
RUN apt-get install -y uuid-runtime  # for uuidgen
RUN apt-get install -y rubygems  # for mdl

# Install go at 1.12 same as how it's installed in kubekins-e2e image, reference code here:
# https://github.com/kubernetes/test-infra/blob/1e9b5dc3de4b268aab57c9c48120aa3dcf096bc6/images/kubekins-e2e/Dockerfile#L64
ENV GO_TARBALL ""go1.12.linux-amd64.tar.gz""
RUN rm -rf /usr/local/go && \
    wget -q ""https://storage.googleapis.com/golang/${GO_TARBALL}"" && \
    tar xzf ""${GO_TARBALL}"" -C /usr/local && \
    rm ""${GO_TARBALL}""

# Extra tools through go get
RUN go get -u github.com/google/ko/cmd/ko
RUN go get -u github.com/golang/dep/cmd/dep
RUN go get -u github.com/jstemmer/go-junit-report
RUN go get -u github.com/raviqqe/liche

# Extract bazel version
RUN bazel version > /bazel_version
RUN bazel shutdown

# Extract ko version
RUN git ls-remote https://github.com/google/ko HEAD | cut -f1 > /ko_version

# Extra tools through gem
RUN gem install mixlib-config -v 2.2.4  # required because ruby is 2.1
RUN gem install mdl

# Temporarily add test-infra to the image to build custom tools
ADD . /go/src/github.com/knative/test-infra

# Build custom tools in the container
RUN make -C /go/src/github.com/knative/test-infra/tools/githubhelper
RUN cp /go/src/github.com/knative/test-infra/tools/githubhelper/githubhelper .

# Use a local dep-collector that's a wrapper for building the tool
# on-the-fly.
# TODO(adrcunha): Remove once https://github.com/knative/test-infra/pull/1019 is in all repos.
RUN cp /go/src/github.com/knative/test-infra/images/prow-tests/dep-collector /usr/bin/dep-collector

# Remove test-infra from the container
RUN rm -fr /go/src/github.com/knative/test-infra
",
170,eb2fb818f1e0f012ff7a87fa742420636cf31ab4,Admin Router: Add rsync to the devkit container,"Admin Router: Add rsync to the devkit container
","FROM ubuntu:16.04

# Let's try to limit the number of layers to minimum:
ENV OPENRESTY_VERSION=1.9.15.1 \
    OPENRESTY_DOWNLOAD_SHASUM=491a84d70ed10b79abb9d1a7496ee57a9244350b \
    OPENRESTY_DIR=/usr/local/src/openresty \
    OPENRESTY_COMPILE_SCRIPT=/usr/local/src/build-resty.sh \
    OPENRESTY_COMPILE_OPTS="""" \
    VENV_DIR=/usr/local/venv \
    AR_BIN_DIR=/usr/local/adminrouter/ \
    VEGETA_DOWNLOAD_SHA256=2f0a69d0ae6f0bf268b7f655bd37c0104d5568d5b2bc45bbb2c405266f74e33d \
    VEGETA_DOWNLOAD_URL=https://github.com/tsenart/vegeta/releases/download/v6.1.1/vegeta-v6.1.1-linux-amd64.tar.gz \
    IAM_PUBKEY_FILE_PATH=/usr/local/iam.jwt-key.pub \
    IAM_PRIVKEY_FILE_PATH=/usr/local/iam.jwt-key.priv \
    IAM_SHARED_SECRET_FILE_PATH=/usr/local/iam.jwt-key.shared-secret

# These depend on other ENV vars, so we need a separate ENV block:
ENV OPENRESTY_DOWNLOAD_URL=https://openresty.org/download/openresty-$OPENRESTY_VERSION.tar.gz \
    AUTH_ERROR_PAGE_DIR_PATH=${AR_BIN_DIR}/nginx/conf/errorpages

WORKDIR /usr/local/src/

# Some remarks when it comes to apt-get update:
# * `apt-get update` and `apt-get install` are unreliable. Because of that there
#   is some basic retrying logic
# * we put it on top of every apt-get install, because docker layer cache will
#   not re-run it when updating image with `make update-devkit` if it is a
#   separate `RUN` line. This leads to `404 Not Found errors.

#### Stuff useful while debugging docker container, not strictly needed for
#### building:
RUN set -ex \
    && bash -x -c 'for i in {1..5}; do apt-get update && break || sleep 2; done' \
    && apt-get install -y --no-install-recommends \
        apt-file \
        dnsutils \
        git \
        iproute2 \
        less \
        psmisc \
        strace \
        tcpdump \
        telnet \
        tree \
        vim

# AR related:
RUN set -ex \
    && bash -x -c 'for i in {1..5}; do apt-get update && break || sleep 2; done' \
    && apt-get install -y --no-install-recommends \
        dnsmasq \
        gcc \
        libdigest-sha-perl \
        libffi-dev \
        libffi6 \
        libpcre++-dev \
        libssl-dev \
        make \
        python3 \
        python3-dev \
        python3-pip \
        python3-virtualenv \
        gettext-base

# Upgrading pip/setuptools and making the upgrade actually apply in the
# following filesystem layers works more reliable when using a virtualenv for
# creating the Python environment, especially on overlayfs.
# Refs:
#   https://github.com/docker/docker/issues/12327#issuecomment-188921470
#   https://github.com/docker/docker/issues/12327#issuecomment-187158265
RUN python3 -m pip install --upgrade virtualenv
RUN set -ex \
    && virtualenv --no-site-packages $VENV_DIR \
    && ${VENV_DIR}/bin/pip install --upgrade setuptools pip

ENV PATH ${VENV_DIR}/bin:$PATH

COPY ./requirements-tests.txt .
RUN pip install -r requirements-tests.txt

# Download Vegeta tool for benchmarking
RUN curl -fsSL ""$VEGETA_DOWNLOAD_URL"" -o vegeta.tar.gz \
    && echo ""$VEGETA_DOWNLOAD_SHA256  vegeta.tar.gz"" | sha256sum -c - \
        && tar -C /usr/local/bin -xzf vegeta.tar.gz \
        && rm vegeta.tar.gz

# Prepare Openresty. Compilation is done in Makefile itself so that
# this container can be reused during DC/OS build.
RUN set -ex \
    && curl -fsSL ""$OPENRESTY_DOWNLOAD_URL"" -o openresty.tar.gz \
    && echo ""$OPENRESTY_DOWNLOAD_SHASUM  openresty.tar.gz"" | shasum -c - \
    && mkdir -pv $OPENRESTY_DIR \
    && tar --strip-components=1 -C $OPENRESTY_DIR -xzf openresty.tar.gz \
    && rm openresty.tar.gz

COPY build-resty.sh $OPENRESTY_COMPILE_SCRIPT

# Some files that mimic DC/OS environment:
COPY iam.jwt-key.pub \
     iam.jwt-key.priv \
     iam.jwt-key.shared-secret \
        /usr/local/
# The contents of adminrouter-listen* files differ from the ones that are
# shipped with DC/OS - the IP addresses Nginx binds to are limited to only
# 127.0.0.1 instead of *. The reason for it is that some endpoints also need to
# listen on TCP port 80 and this causes conflicts.
COPY adminrouter-redirect-http-https.conf \
     adminrouter-upstreams.conf \
     adminrouter-listen-master.conf \
     adminrouter-listen-agent.conf \
        /opt/mesosphere/etc/
COPY ca.crt /run/dcos/pki/CA/certs/
COPY adminrouter.crt /run/dcos/pki/tls/certs/
COPY adminrouter.key /run/dcos/pki/tls/private/


# dnsmasq stuff:
COPY ./dnsmasq.conf /etc/dnsmasq.conf
# In case if Docker someday decides to solve:
# https://github.com/docker/docker/issues/1297
# and container's /etc/resolv.conf becomes visible and not bind-mounted.
RUN echo ""nameserver 127.0.0.1"" > /etc/resolv.conf
RUN echo ""nameserver 8.8.8.8\nnameserver 8.8.4.4\n"" > /etc/resolv.conf.dnsmasq
COPY ./hosts.dnsmasq /etc/hosts.dnsmasq

# Workers run as the dcos_adminrouter group.
RUN groupadd --system dcos_adminrouter

WORKDIR $AR_BIN_DIR/nginx/conf/

CMD [""/bin/bash""]
","FROM ubuntu:16.04

# Let's try to limit the number of layers to minimum:
ENV OPENRESTY_VERSION=1.9.15.1 \
    OPENRESTY_DOWNLOAD_SHASUM=491a84d70ed10b79abb9d1a7496ee57a9244350b \
    OPENRESTY_DIR=/usr/local/src/openresty \
    OPENRESTY_COMPILE_SCRIPT=/usr/local/src/build-resty.sh \
    OPENRESTY_COMPILE_OPTS="""" \
    VENV_DIR=/usr/local/venv \
    AR_BIN_DIR=/usr/local/adminrouter/ \
    VEGETA_DOWNLOAD_SHA256=2f0a69d0ae6f0bf268b7f655bd37c0104d5568d5b2bc45bbb2c405266f74e33d \
    VEGETA_DOWNLOAD_URL=https://github.com/tsenart/vegeta/releases/download/v6.1.1/vegeta-v6.1.1-linux-amd64.tar.gz \
    IAM_PUBKEY_FILE_PATH=/usr/local/iam.jwt-key.pub \
    IAM_PRIVKEY_FILE_PATH=/usr/local/iam.jwt-key.priv \
    IAM_SHARED_SECRET_FILE_PATH=/usr/local/iam.jwt-key.shared-secret

# These depend on other ENV vars, so we need a separate ENV block:
ENV OPENRESTY_DOWNLOAD_URL=https://openresty.org/download/openresty-$OPENRESTY_VERSION.tar.gz \
    AUTH_ERROR_PAGE_DIR_PATH=${AR_BIN_DIR}/nginx/conf/errorpages

WORKDIR /usr/local/src/

# Some remarks when it comes to apt-get update:
# * `apt-get update` and `apt-get install` are unreliable. Because of that there
#   is some basic retrying logic
# * we put it on top of every apt-get install, because docker layer cache will
#   not re-run it when updating image with `make update-devkit` if it is a
#   separate `RUN` line. This leads to `404 Not Found errors.

#### Stuff useful while debugging docker container, not strictly needed for
#### building:
RUN set -ex \
    && bash -x -c 'for i in {1..5}; do apt-get update && break || sleep 2; done' \
    && apt-get install -y --no-install-recommends \
        apt-file \
        dnsutils \
        git \
        iproute2 \
        less \
        psmisc \
        strace \
        tcpdump \
        telnet \
        tree \
        vim

# AR related:
RUN set -ex \
    && bash -x -c 'for i in {1..5}; do apt-get update && break || sleep 2; done' \
    && apt-get install -y --no-install-recommends \
        dnsmasq \
        gcc \
        gettext-base \
        libdigest-sha-perl \
        libffi-dev \
        libffi6 \
        libpcre++-dev \
        libssl-dev \
        make \
        python3 \
        python3-dev \
        python3-pip \
        python3-virtualenv \
        rsync

# Upgrading pip/setuptools and making the upgrade actually apply in the
# following filesystem layers works more reliable when using a virtualenv for
# creating the Python environment, especially on overlayfs.
# Refs:
#   https://github.com/docker/docker/issues/12327#issuecomment-188921470
#   https://github.com/docker/docker/issues/12327#issuecomment-187158265
RUN python3 -m pip install --upgrade virtualenv
RUN set -ex \
    && virtualenv --no-site-packages $VENV_DIR \
    && ${VENV_DIR}/bin/pip install --upgrade setuptools pip

ENV PATH ${VENV_DIR}/bin:$PATH

COPY ./requirements-tests.txt .
RUN pip install -r requirements-tests.txt

# Download Vegeta tool for benchmarking
RUN curl -fsSL ""$VEGETA_DOWNLOAD_URL"" -o vegeta.tar.gz \
    && echo ""$VEGETA_DOWNLOAD_SHA256  vegeta.tar.gz"" | sha256sum -c - \
        && tar -C /usr/local/bin -xzf vegeta.tar.gz \
        && rm vegeta.tar.gz

# Prepare Openresty. Compilation is done in Makefile itself so that
# this container can be reused during DC/OS build.
RUN set -ex \
    && curl -fsSL ""$OPENRESTY_DOWNLOAD_URL"" -o openresty.tar.gz \
    && echo ""$OPENRESTY_DOWNLOAD_SHASUM  openresty.tar.gz"" | shasum -c - \
    && mkdir -pv $OPENRESTY_DIR \
    && tar --strip-components=1 -C $OPENRESTY_DIR -xzf openresty.tar.gz \
    && rm openresty.tar.gz

COPY build-resty.sh $OPENRESTY_COMPILE_SCRIPT

# Some files that mimic DC/OS environment:
COPY iam.jwt-key.pub \
     iam.jwt-key.priv \
     iam.jwt-key.shared-secret \
        /usr/local/
# The contents of adminrouter-listen* files differ from the ones that are
# shipped with DC/OS - the IP addresses Nginx binds to are limited to only
# 127.0.0.1 instead of *. The reason for it is that some endpoints also need to
# listen on TCP port 80 and this causes conflicts.
COPY adminrouter-redirect-http-https.conf \
     adminrouter-upstreams.conf \
     adminrouter-listen-master.conf \
     adminrouter-listen-agent.conf \
        /opt/mesosphere/etc/
COPY ca.crt /run/dcos/pki/CA/certs/
COPY adminrouter.crt /run/dcos/pki/tls/certs/
COPY adminrouter.key /run/dcos/pki/tls/private/


# dnsmasq stuff:
COPY ./dnsmasq.conf /etc/dnsmasq.conf
# In case if Docker someday decides to solve:
# https://github.com/docker/docker/issues/1297
# and container's /etc/resolv.conf becomes visible and not bind-mounted.
RUN echo ""nameserver 127.0.0.1"" > /etc/resolv.conf
RUN echo ""nameserver 8.8.8.8\nnameserver 8.8.4.4\n"" > /etc/resolv.conf.dnsmasq
COPY ./hosts.dnsmasq /etc/hosts.dnsmasq

# Workers run as the dcos_adminrouter group.
RUN groupadd --system dcos_adminrouter

WORKDIR $AR_BIN_DIR/nginx/conf/

CMD [""/bin/bash""]
"
356,1185c5c56684489e2ea0c3fecf46b0c8b11e6abe,Bumped source to 20210719-e65119b,"Bumped source to 20210719-e65119b
","FROM docker.pkg.github.com/dock0/service/service:20210719-37d8b2f
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
","FROM docker.pkg.github.com/dock0/service/service:20210719-e65119b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed openssh

ENV ADMIN akerl
ENV KEY_URL https://id-ed25519.pub/groups/default.txt

RUN useradd -d /var/lib/ssh -M ssh_key_sync
RUN mkdir -m=0700 /var/lib/ssh && chown ssh_key_sync /var/lib/ssh
RUN echo ""$KEY_URL"" > /var/lib/ssh/key_url
ADD sshd_config /etc/ssh/sshd_config
ADD run /service/sshd/run
ADD sync /var/lib/ssh/sync

RUN groupadd remote
RUN useradd -d ""/home/$ADMIN"" -G remote -m ""$ADMIN""
RUN passwd -d ""$ADMIN""
"
2222,e12e367b58f1dbeb9f71ff43c144b13dd08851f5,Bumped source to 20201203-8d5d9a9,"Bumped source to 20201203-8d5d9a9
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20201203-ec77873
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
",
2095,eb44a1cb1ce9869add90ae4c8206a6d58cbd6ba7,chore(deps): update golang docker tag to v1.15.0,"chore(deps): update golang docker tag to v1.15.0
","FROM golang:1.14.7

ENV PROTOC_VERSION=3.12.3

RUN apt-get update && apt-get install unzip

RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
    unzip -o protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local bin/protoc && \
    unzip -o protoc-${PROTOC_VERSION}-linux-x86_64.zip -d /usr/local include/* && \
    rm -rf protoc-${PROTOC_VERSION}-linux-x86_64.zip

RUN go get -u google.golang.org/protobuf/cmd/protoc-gen-go && \
    go get github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema

RUN mkdir /workdir
WORKDIR /workdir

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [""/entrypoint.sh""]
",
119,7f9c56ab05baea3b56ad842974f4999fb06b9e10,Keep using an old version of https://github.com/openshift/origin/pull/9181,"Keep using an old version of https://github.com/openshift/origin/pull/9181

I don’t know how to checkout a specific untagged commit (
9ff4bf43548c758b6767b639b335681285fece48 ) from the original repo, so
I have forked the project and fetched that commit from a cached Docker
image.

We should instead update the containers/image client for the new API ASAP,
and then the github.com/mtrmac/origin repo should be removed.
","FROM fedora

RUN dnf -y update && dnf install -y make git golang golang-github-cpuguy83-go-md2man \
# gpgme bindings deps
libassuan-devel gpgme-devel \
gnupg \
# registry v1 deps
xz-devel \
python-devel \
python-pip \
swig \
redhat-rpm-config \
openssl-devel \
patch

# Install three versions of the registry. The first is an older version that
# only supports schema1 manifests. The second is a newer version that supports
# both. This allows integration-cli tests to cover push/pull with both schema1
# and schema2 manifests. Install registry v1 also.
ENV REGISTRY_COMMIT_SCHEMA1 ec87e9b6971d831f0eff752ddb54fb64693e51cd
ENV REGISTRY_COMMIT 47a064d4195a9b56133891bbb13620c3ac83a827
RUN set -x \
&& export GOPATH=""$(mktemp -d)"" \
&& git clone https://github.com/docker/distribution.git ""$GOPATH/src/github.com/docker/distribution"" \
&& (cd ""$GOPATH/src/github.com/docker/distribution"" && git checkout -q ""$REGISTRY_COMMIT"") \
&& GOPATH=""$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"" \
go build -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \
&& (cd ""$GOPATH/src/github.com/docker/distribution"" && git checkout -q ""$REGISTRY_COMMIT_SCHEMA1"") \
&& GOPATH=""$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"" \
go build -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry \
&& rm -rf ""$GOPATH"" \
&& export DRV1=""$(mktemp -d)"" \
&& git clone https://github.com/docker/docker-registry.git ""$DRV1"" \
# no need for setuptools since we have a version conflict with fedora
&& sed -i.bak s/setuptools==5.8//g ""$DRV1/requirements/main.txt"" \
&& sed -i.bak s/setuptools==5.8//g ""$DRV1/depends/docker-registry-core/requirements/main.txt"" \
&& pip install ""$DRV1/depends/docker-registry-core"" \
&& pip install file://""$DRV1#egg=docker-registry[bugsnag,newrelic,cors]"" \
&& patch $(python -c 'import boto; import os; print os.path.dirname(boto.__file__)')/connection.py \
< ""$DRV1/contrib/boto_header_patch.diff"" \
&& dnf -y update && dnf install -y m2crypto

RUN set -x \
&& yum install -y which git tar wget hostname util-linux bsdtar socat ethtool device-mapper iptables tree findutils nmap-ncat e2fsprogs xfsprogs lsof docker iproute \
&& export GOPATH=$(mktemp -d) \
# && git clone git://github.com/openshift/origin ""$GOPATH/src/github.com/openshift/origin"" \
&& git clone -b image-signatures-rest git://github.com/miminar/origin ""$GOPATH/src/github.com/openshift/origin"" \
&& (cd ""$GOPATH/src/github.com/openshift/origin"" && make clean build && make all WHAT=cmd/dockerregistry) \
&& cp -a ""$GOPATH/src/github.com/openshift/origin/_output/local/bin/linux""/*/* /usr/local/bin \
&& cp ""$GOPATH/src/github.com/openshift/origin/images/dockerregistry/config.yml"" /atomic-registry-config.yml \
&& mkdir /registry

ENV GOPATH /usr/share/gocode:/go
ENV PATH $GOPATH/bin:/usr/share/gocode/bin:$PATH
RUN go get github.com/golang/lint/golint
WORKDIR /go/src/github.com/projectatomic/skopeo
COPY . /go/src/github.com/projectatomic/skopeo

#ENTRYPOINT [""hack/dind""]
","FROM fedora

RUN dnf -y update && dnf install -y make git golang golang-github-cpuguy83-go-md2man \
# gpgme bindings deps
libassuan-devel gpgme-devel \
gnupg \
# registry v1 deps
xz-devel \
python-devel \
python-pip \
swig \
redhat-rpm-config \
openssl-devel \
patch

# Install three versions of the registry. The first is an older version that
# only supports schema1 manifests. The second is a newer version that supports
# both. This allows integration-cli tests to cover push/pull with both schema1
# and schema2 manifests. Install registry v1 also.
ENV REGISTRY_COMMIT_SCHEMA1 ec87e9b6971d831f0eff752ddb54fb64693e51cd
ENV REGISTRY_COMMIT 47a064d4195a9b56133891bbb13620c3ac83a827
RUN set -x \
&& export GOPATH=""$(mktemp -d)"" \
&& git clone https://github.com/docker/distribution.git ""$GOPATH/src/github.com/docker/distribution"" \
&& (cd ""$GOPATH/src/github.com/docker/distribution"" && git checkout -q ""$REGISTRY_COMMIT"") \
&& GOPATH=""$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"" \
go build -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \
&& (cd ""$GOPATH/src/github.com/docker/distribution"" && git checkout -q ""$REGISTRY_COMMIT_SCHEMA1"") \
&& GOPATH=""$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"" \
go build -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry \
&& rm -rf ""$GOPATH"" \
&& export DRV1=""$(mktemp -d)"" \
&& git clone https://github.com/docker/docker-registry.git ""$DRV1"" \
# no need for setuptools since we have a version conflict with fedora
&& sed -i.bak s/setuptools==5.8//g ""$DRV1/requirements/main.txt"" \
&& sed -i.bak s/setuptools==5.8//g ""$DRV1/depends/docker-registry-core/requirements/main.txt"" \
&& pip install ""$DRV1/depends/docker-registry-core"" \
&& pip install file://""$DRV1#egg=docker-registry[bugsnag,newrelic,cors]"" \
&& patch $(python -c 'import boto; import os; print os.path.dirname(boto.__file__)')/connection.py \
< ""$DRV1/contrib/boto_header_patch.diff"" \
&& dnf -y update && dnf install -y m2crypto

RUN set -x \
&& yum install -y which git tar wget hostname util-linux bsdtar socat ethtool device-mapper iptables tree findutils nmap-ncat e2fsprogs xfsprogs lsof docker iproute \
&& export GOPATH=$(mktemp -d) \
# && git clone git://github.com/openshift/origin ""$GOPATH/src/github.com/openshift/origin"" \
# && git clone -b image-signatures-rest git://github.com/miminar/origin ""$GOPATH/src/github.com/openshift/origin"" \
&& git clone -b image-signatures-rest-backup git://github.com/mtrmac/origin ""$GOPATH/src/github.com/openshift/origin"" \
&& (cd ""$GOPATH/src/github.com/openshift/origin"" && make clean build && make all WHAT=cmd/dockerregistry) \
&& cp -a ""$GOPATH/src/github.com/openshift/origin/_output/local/bin/linux""/*/* /usr/local/bin \
&& cp ""$GOPATH/src/github.com/openshift/origin/images/dockerregistry/config.yml"" /atomic-registry-config.yml \
&& mkdir /registry

ENV GOPATH /usr/share/gocode:/go
ENV PATH $GOPATH/bin:/usr/share/gocode/bin:$PATH
RUN go get github.com/golang/lint/golint
WORKDIR /go/src/github.com/projectatomic/skopeo
COPY . /go/src/github.com/projectatomic/skopeo

#ENTRYPOINT [""hack/dind""]
"
153,610f886e7ec66fb985346c41332c3b848a765573,don't upgrade conda,"don't upgrade conda
","ARG BASE_TAG=5.3.0

# TODO(rosbo): Use the py36-2 version to have the same base image.
FROM gcr.io/kaggle-images/python-tensorflow-whl:1.13.1-py36 as tensorflow_whl
FROM continuumio/anaconda3:${BASE_TAG}

ADD clean-layer.sh  /tmp/clean-layer.sh
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl

# This is necessary for apt to access HTTPS sources
RUN apt-get update && \
    apt-get install apt-transport-https && \
    /tmp/clean-layer.sh

    # Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
    # as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
RUN sed -i ""s/httpredir.debian.org/debian.uchicago.edu/"" /etc/apt/sources.list && \
    apt-get update && apt-get install -y build-essential unzip cmake && \
    # Work to upgrade to Python 3.7 can be found on this branch: https://github.com/Kaggle/docker-python/blob/upgrade-py37/Dockerfile
    conda update -y conda && conda install -y python=3.6.6 && \
    pip install --upgrade pip && \
    /tmp/clean-layer.sh

# The anaconda base image includes outdated versions of these packages. Update them to include the latest version.
RUN pip install seaborn python-dateutil dask && \
    pip install pyyaml joblib pytagcloud husl geopy ml_metrics mne pyshp && \
    pip install spacy && python -m spacy download en && python -m spacy download en_core_web_lg && \
    # The apt-get version of imagemagick is out of date and has compatibility issues, so we build from source
    apt-get -y install dbus fontconfig fontconfig-config fonts-dejavu-core fonts-droid-fallback ghostscript gsfonts hicolor-icon-theme \
    libavahi-client3 libavahi-common-data libavahi-common3 libcairo2 libcap-ng0 libcroco3 \
    libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libdbus-1-3 libdjvulibre-text libdjvulibre21 libfftw3-double3 libfontconfig1 \
    libfreetype6 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgomp1 libgraphite2-3 libgs9 libgs9-common libharfbuzz0b libijs-0.35 \
    libilmbase12 libjbig0 libjbig2dec0 libjpeg62-turbo liblcms2-2 liblqr-1-0 libltdl7 libmagickcore-6.q16-3 \
    libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libnetpbm10 libopenexr22 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 \
    libpaper-utils libpaper1 libpixman-1-0 libpng16-16 librsvg2-2 librsvg2-common libthai-data libthai0 libtiff5 libwmf0.2-7 \
    libxcb-render0 libxcb-shm0 netpbm poppler-data p7zip-full && \
    cd /usr/local/src && \
    # imagemagick.org is down.
    # TODO(rosbo): Is is still being used or is the libmagick* above are sufficient for the packages (if any) that depends on it?
    # wget --no-verbose https://imagemagick.org/download/ImageMagick.tar.gz && \
    # tar xzf ImageMagick.tar.gz && cd `ls -d ImageMagick-*` && pwd && ls -al && ./configure && \
    # make -j $(nproc) && make install && \
    /tmp/clean-layer.sh

# Install tensorflow from a pre-built wheel
COPY --from=tensorflow_whl /tmp/tensorflow_cpu/*.whl /tmp/tensorflow_cpu/
RUN pip install /tmp/tensorflow_cpu/tensorflow*.whl && \
    rm -rf /tmp/tensorflow_cpu && \
    /tmp/clean-layer.sh

RUN apt-get install -y libfreetype6-dev && \
    apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
    pip install gensim && \
    pip install textblob && \
    pip install wordcloud && \
    conda install -y -c conda-forge python-igraph && \
    pip install xgboost && \
    pip install lightgbm && \
    pip install git+git://github.com/Lasagne/Lasagne.git && \
    pip install keras && \
    pip install keras-rl && \
    #keras-rcnn
    pip install git+https://github.com/broadinstitute/keras-rcnn && \
    # version 3.7.1 adds a dependency on entrypoints > 3. This causes a reinstall but fails because
    # it is a distutils package and can't be uninstalled. Once the anaconda image in updated, this
    # pin should be removed.
    pip install flake8==3.6.0 && \
    #neon
    cd /usr/local/src && \
    git clone --depth 1 https://github.com/NervanaSystems/neon.git && \
    cd neon && pip install . && \
    #nolearn
    cd /usr/local/src && mkdir nolearn && cd nolearn && \
    git clone --depth 1 https://github.com/dnouri/nolearn.git && cd nolearn && \
    echo ""x"" > README.rst && echo ""x"" > CHANGES.rst && \
    python setup.py install && \
    # Dev branch of Theano
    pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps && \
    # put theano compiledir inside /tmp (it needs to be in writable dir)
    printf ""[global]\nbase_compiledir = /tmp/.theano\n"" > /.theanorc && \
    cd /usr/local/src &&  git clone --depth 1 https://github.com/pybrain/pybrain && \
    cd pybrain && python setup.py install && \
    # Base ATLAS
    apt-get install -y libatlas-base-dev && \
    cd /usr/local/src && git clone --depth 1 https://github.com/ztane/python-Levenshtein && \
    cd python-Levenshtein && python setup.py install && \
    pip install hep_ml && \
    # chainer
    pip install chainer && \
    # NLTK Project datasets
    mkdir -p /usr/share/nltk_data && \
    # NLTK Downloader no longer continues smoothly after an error, so we explicitly list
    # the corpuses that work
    # ""yes | ..."" answers yes to the retry prompt in case of an error. See b/133762095.
    yes | python -m nltk.downloader -d /usr/share/nltk_data abc alpino averaged_perceptron_tagger \
    basque_grammars biocreative_ppi bllip_wsj_no_aux \
    book_grammars brown brown_tei cess_cat cess_esp chat80 city_database cmudict \
    comtrans conll2000 conll2002 conll2007 crubadan dependency_treebank \
    europarl_raw floresta gazetteers genesis gutenberg \
    ieer inaugural indian jeita kimmo knbc large_grammars lin_thesaurus mac_morpho machado \
    masc_tagged maxent_ne_chunker maxent_treebank_pos_tagger moses_sample movie_reviews \
    mte_teip5 names nps_chat omw opinion_lexicon paradigms \
    pil pl196x porter_test ppattach problem_reports product_reviews_1 product_reviews_2 propbank \
    pros_cons ptb punkt qc reuters rslp rte sample_grammars semcor senseval sentence_polarity \
    sentiwordnet shakespeare sinica_treebank smultron snowball_data spanish_grammars \
    state_union stopwords subjectivity swadesh switchboard tagsets timit toolbox treebank \
    twitter_samples udhr2 udhr unicode_samples universal_tagset universal_treebanks_v20 \
    vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe && \
    # Stop-words
    pip install stop-words && \
    pip install --upgrade scikit-image && \
    /tmp/clean-layer.sh

# Make sure the dynamic linker finds the right libstdc++
ENV LD_LIBRARY_PATH=/opt/conda/lib

RUN apt-get -y install zlib1g-dev liblcms2-dev libwebp-dev libgeos-dev && \
    pip install matplotlib && \
    pip install pyshp && \
    pip install pyproj && \
    conda install basemap && \
    # sasl is apparently an ibis dependency
    apt-get -y install libsasl2-dev && \
    # ...as is psycopg2
    apt-get install -y libpq-dev && \
    pip install ibis-framework && \
    # Cartopy plus dependencies
    yes | conda install proj4 && \
    pip install packaging && \
    pip install shapely && \
    pip install cartopy && \
    # MXNet
    pip install mxnet && \
    pip install --upgrade numpy && \
    pip install gluonnlp && \
    pip install gluoncv && \
    # h2o (requires java)
    # requires java
    apt-get install -y default-jdk && \
    cd /usr/local/src && mkdir h2o && cd h2o && \
    wget --no-verbose http://h2o-release.s3.amazonaws.com/h2o/latest_stable -O latest && \
    wget --no-verbose --no-check-certificate -i latest -O h2o.zip && rm latest && \
    unzip h2o.zip && rm h2o.zip && cp h2o-*/h2o.jar . && \
    pip install `find . -name ""*whl""` && \
    # Keras setup
    # Keras likes to add a config file in a custom directory when it's
    # first imported. This doesn't work with our read-only filesystem, so we
    # have it done now
    python -c ""from keras.models import Sequential""  && \
    # Switch to TF backend
    sed -i 's/theano/tensorflow/' /root/.keras/keras.json  && \
    # Re-run it to flush any more disk writes
    python -c ""from keras.models import Sequential; from keras import backend; print(backend._BACKEND)"" && \
    # Keras reverts to /tmp from ~ when it detects a read-only file system
    mkdir -p /tmp/.keras && cp /root/.keras/keras.json /tmp/.keras && \
    /tmp/clean-layer.sh

# b/128333086: Set PROJ_LIB to points to the proj4 cartographic library.
ENV PROJ_LIB=/opt/conda/share/proj

# scikit-learn dependencies
RUN pip install scipy && \
    pip install scikit-learn && \
    # HDF5 support
    pip install h5py && \
    pip install biopython && \
    # PUDB, for local debugging convenience
    pip install pudb && \
    pip install imbalanced-learn && \
    # Convex Optimization library
    # Latest version fails to install, see https://github.com/cvxopt/cvxopt/issues/77
    #    and https://github.com/cvxopt/cvxopt/issues/80
    # pip install cvxopt && \
    # Profiling and other utilities
    pip install line_profiler && \
    pip install orderedmultidict && \
    pip install smhasher && \
    pip install bokeh && \
    # b/134599839: latest version requires llvmlite >= 0.39.0. Base image comes with 0.38.0.
    # It fails to reinstall it because it is a distutil package. Remove pin once base image include newer verson of llvmlite.
    pip install numba==0.38.0 && \
    pip install datashader && \
    # Boruta (python implementation)
    pip install Boruta && \
    cd /usr/local/src && git clone git://github.com/nicolashennetier/pyeconometrics.git && \
    cd pyeconometrics && python setup.py install && \
    apt-get install -y graphviz && pip install graphviz && \
    # Pandoc is a dependency of deap
    apt-get install -y pandoc && \
    pip install git+git://github.com/scikit-learn-contrib/py-earth.git@issue191 && \
    pip install essentia && \
    # PyTorch
    export CXXFLAGS=""-std=c++11"" && \
    export CFLAGS=""-std=c99"" && \
    conda install -y pytorch-cpu=1.0.1 torchvision-cpu=0.2.2 -c pytorch && \
    # PyTorch Audio
    apt-get install -y sox libsox-dev libsox-fmt-all && \
    pip install cffi && \
    pip install git+git://github.com/pytorch/audio.git && \
    /tmp/clean-layer.sh

# vtk with dependencies
RUN apt-get install -y libgl1-mesa-glx && \
    pip install vtk && \
    # xvfbwrapper with dependencies
    apt-get install -y xvfb && \
    pip install xvfbwrapper && \
    /tmp/clean-layer.sh

RUN pip install mpld3 && \
    pip install mplleaflet && \
    pip install gpxpy && \
    pip install arrow && \
    pip install nilearn && \
    pip install nibabel && \
    pip install pronouncing && \
    pip install markovify && \
    pip install rf_perm_feat_import && \
    pip install imgaug && \
    pip install preprocessing && \
    pip install Baker && \
    pip install path.py && \
    pip install Geohash && \
    # https://github.com/vinsci/geohash/issues/4
    sed -i -- 's/geohash/.geohash/g' /opt/conda/lib/python3.6/site-packages/Geohash/__init__.py && \
    pip install deap && \
    pip install tpot && \
    pip install scikit-optimize && \
    pip install haversine && \
    pip install toolz cytoolz && \
    pip install sacred && \
    pip install plotly && \
    pip install git+https://github.com/nicta/dora.git && \
    pip install git+https://github.com/hyperopt/hyperopt.git && \
    # tflean. Deep learning library featuring a higher-level API for TensorFlow. http://tflearn.org
    pip install git+https://github.com/tflearn/tflearn.git && \
    pip install fitter && \
    pip install langid && \
    # Delorean. Useful for dealing with datetime
    pip install delorean && \
    pip install trueskill && \
    pip install heamy && \
    pip install vida && \
    # Useful data exploration libraries (for missing data and generating reports)
    pip install missingno && \
    pip install pandas-profiling && \
    pip install s2sphere && \
    pip install git+https://github.com/fmfn/BayesianOptimization.git && \
    pip install matplotlib-venn && \
    pip install pyldavis && \
    pip install mlxtend && \
    pip install altair && \
    pip install pystan && \
    pip install ImageHash && \
    pip install ecos && \
    pip install CVXcanon && \
    pip install fancyimpute && \
    pip install git+https://github.com/pymc-devs/pymc3 && \
    pip install tifffile && \
    pip install spectral && \
    pip install descartes && \
    pip install geojson && \
    pip install pysal && \
    pip install pyflux && \
    pip install terminalplot && \
    pip install raccoon && \
    pip install pydicom && \
    pip install wavio && \
    pip install SimpleITK && \
    pip install hmmlearn && \
    pip install bayespy && \
    pip install gplearn && \
    pip install PyAstronomy && \
    pip install squarify && \
    pip install fuzzywuzzy && \
    pip install python-louvain && \
    pip install pyexcel-ods && \
    pip install sklearn-pandas && \
    pip install stemming && \
    pip install fbprophet && \
    pip install holoviews && \
    # 1.6.2 is not currently supported by the version of matplotlib we are using.
    # See other comments about why matplotlib is pinned.
    pip install geoviews==1.6.1 && \
    pip install hypertools && \
    pip install py_stringsimjoin && \
    pip install speedml && \
    pip install nibabel && \
    pip install mlens && \
    pip install scikit-multilearn && \
    pip install cleverhans && \
    pip install leven && \
    pip install catboost && \
    #cd /usr/local/src && git clone --depth=1 https://github.com/AxeldeRomblay/MLBox && cd MLBox/python-package && python setup.py install && \
    pip install fastFM && \
    pip install lightfm && \
    pip install paramnb && \
    pip install folium && \
    pip install scikit-plot && \
    # 0.15.0 is still unstable.
    pip install dipy==0.14.0 && \
    # plotnine 0.5 is depending on matplotlib >= 3.0 which is not compatible with basemap.
    # once basemap support matplotlib, we can unpin this package.
    pip install plotnine==0.4.0 && \
    pip install git+https://github.com/dvaida/hallucinate.git && \
    pip install scikit-surprise && \
    pip install pymongo && \
    pip install edward && \
    pip install geoplot && \
    pip install eli5 && \
    pip install implicit && \
    pip install dask-ml[xgboost] && \
    /tmp/clean-layer.sh

RUN pip install kmeans-smote --no-dependencies && \
    # Add google PAIR-code Facets
    cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
    export PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/ && \
    pip install --no-dependencies ethnicolr && \
    pip install tensorpack && \
    pip install pycountry && pip install iso3166 && \
    pip install pydash && \
    pip install kmodes --no-dependencies && \
    pip install librosa && \
    pip install polyglot && \
    pip install mmh3 && \
    pip install fbpca && \
    pip install sentencepiece && \
    pip install cufflinks && \
    pip install glmnet_py && \
    pip install lime && \
    pip install memory_profiler && \
    /tmp/clean-layer.sh

# install cython & cysignals before pyfasttext
RUN pip install ktext && \
    pip install git+git://github.com/facebookresearch/fastText.git && \
    apt-get install -y libhunspell-dev && pip install hunspell && \
    pip install annoy && \
    pip install category_encoders && \
    pip install google-cloud-bigquery==1.12.1 && \
    pip install ortools && \
    pip install scattertext && \
    # Pandas data reader
    pip install pandas-datareader && \
    pip install pykoko && \
    pip install wordsegment && \
    pip install pyahocorasick && \
    pip install wordbatch && \
    pip install emoji && \
    # Add Japanese morphological analysis engine
    pip install janome && \
    pip install wfdb && \
    pip install vecstack && \
    pip install sklearn-contrib-lightning && \
    # yellowbrick machine learning visualization library
    pip install yellowbrick && \
    pip install mlcrate && \
    # Required to display Altair charts in Jupyter notebook
    pip install vega3 && \
    jupyter nbextension install --sys-prefix --py vega3 && \
    /tmp/clean-layer.sh

# Fast.ai and dependencies
RUN pip install bcolz && \
    pip install bleach && \
    pip install certifi && \
    pip install cycler && \
    pip install decorator && \
    pip install entrypoints && \
    pip install html5lib && \
    pip install ipykernel && \
    pip install ipython && \
    pip install ipython-genutils && \
    pip install ipywidgets && \
    pip install isoweek && \
    pip install jedi && \
    pip install Jinja2 && \
    pip install jsonschema && \
    pip install jupyter && \
    pip install jupyter-client && \
    pip install jupyter-console && \
    pip install jupyter-core && \
    pip install MarkupSafe && \
    pip install mistune && \
    pip install nbconvert && \
    pip install nbformat && \
    pip install notebook==5.5.0 && \
    pip install olefile && \
    pip install opencv-python && \
    # b/124184516: tsfresh is not yet compatible with pandas 0.24.0
    pip install pandas==0.23.4 && \
    pip install pandas_summary && \
    pip install pandocfilters && \
    pip install pexpect && \
    pip install pickleshare && \
    pip install Pillow && \
    pip install ptyprocess && \
    pip install Pygments && \
    pip install pyparsing && \
    pip install python-dateutil==2.6.0 && \
    pip install pytz && \
    pip install PyYAML && \
    pip install pyzmq && \
    pip install qtconsole && \
    pip install simplegeneric && \
    pip install six && \
    pip install terminado && \
    pip install testpath && \
    pip install tornado && \
    pip install tqdm && \
    pip install traitlets && \
    pip install wcwidth && \
    pip install webencodings && \
    pip install widgetsnbextension && \
    # Latest version of pyarrow conflicts with pandas
    # https://github.com/pandas-dev/pandas/issues/23053
    pip install pyarrow==0.10.0 && \
    pip install feather-format && \
    pip install fastai && \
    pip install torchtext && \
    /tmp/clean-layer.sh

# allennlp and dependencies
# TODO: install deps when underlying dependency is fixed. https://github.com/Kaggle/docker-python/issues/548
RUN pip install jsonnet overrides tensorboardX && \
    pip install flask>=1.0.2 flask-cors>=3.0.7 gevent>=1.3.6 && \
    pip install unidecode parsimonious>=0.8.0 sqlparse>=0.2.4 word2number>=1.1 && \
    pip install pytorch-pretrained-bert>=0.6.0 jsonpickle && \
    pip install requests>=2.18 editdistance conllu==0.11 && \
    pip install --no-dependencies allennlp && \
    /tmp/clean-layer.sh

    ###########
    #
    #      NEW CONTRIBUTORS:
    # Please add new pip/apt installs in this block. Don't forget a ""&& \"" at the end
    # of all non-final lines. Thanks!
    #
    ###########

RUN pip install flashtext && \
    pip install marisa-trie && \
    pip install pyemd && \
    pip install pyupset && \
    pip install pympler && \
    pip install s3fs && \
    pip install featuretools && \
    pip install -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper && \
    pip install hpsklearn && \
    pip install keras-tqdm && \
    pip install git+https://github.com/Kaggle/learntools && \
    pip install kmapper && \
    pip install shap && \
    pip install ray && \
    pip install gym && \
    pip install tensorforce && \
    pip install pyarabic && \
    pip install conx && \
    pip install pandasql && \
    pip install trackml && \
    pip install tensorflow_hub && \
    pip install jieba  && \
    pip install git+https://github.com/SauceCat/PDPbox && \
    pip install ggplot && \
    pip install cesium && \
    pip install rgf_python && \
    # b/124184516: latest version forces the use of incompatible pandas>0.24
    pip install pytext-nlp==0.1.2 && \
    pip install tsfresh && \
    pip install pymagnitude && \
    pip install pykalman && \
    pip install optuna && \
    pip install chainercv && \
    pip install plotly_express && \
    pip install albumentations && \
    pip install pytorch-ignite && \
    /tmp/clean-layer.sh

# Tesseract and some associated utility packages
RUN apt-get install tesseract-ocr -y && \
    pip install pytesseract && \
    pip install wand==0.5.3 && \
    pip install pdf2image && \
    pip install PyPDF && \
    pip install pyocr && \
    /tmp/clean-layer.sh
ENV TESSERACT_PATH=/usr/bin/tesseract

# Pin Vowpal Wabbit v8.6.0 because 8.6.1 does not build or install successfully
RUN cd /usr/local/src && \
    git clone -b 8.6.0 https://github.com/JohnLangford/vowpal_wabbit.git && \
    ./vowpal_wabbit/python/conda_install.sh && \
    # Reinstall in non-editable mode (without the -e flag)
    pip install vowpal_wabbit/python && \
    /tmp/clean-layer.sh

# For Facets
ENV PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/
# For Theano with MKL
ENV MKL_THREADING_LAYER=GNU

# Temporary fixes and patches
    # Temporary patch for Dask getting downgraded, which breaks Keras
RUN pip install --upgrade dask && \
    # Stop jupyter nbconvert trying to rewrite its folder hierarchy
    mkdir -p /root/.jupyter && touch /root/.jupyter/jupyter_nbconvert_config.py && touch /root/.jupyter/migrated && \
    mkdir -p /.jupyter && touch /.jupyter/jupyter_nbconvert_config.py && touch /.jupyter/migrated && \
    # Stop Matplotlib printing junk to the console on first load
    sed -i ""s/^.*Matplotlib is building the font cache using fc-list.*$/# Warning removed by Kaggle/g"" /opt/conda/lib/python3.6/site-packages/matplotlib/font_manager.py && \
    # Make matplotlib output in Jupyter notebooks display correctly
    mkdir -p /etc/ipython/ && echo ""c = get_config(); c.IPKernelApp.matplotlib = 'inline'"" > /etc/ipython/ipython_config.py && \
    /tmp/clean-layer.sh

# Add BigQuery client proxy settings
ENV PYTHONUSERBASE ""/root/.local""
ADD patches/kaggle_gcp.py /root/.local/lib/python3.6/site-packages/kaggle_gcp.py
ADD patches/kaggle_secrets.py /root/.local/lib/python3.6/site-packages/kaggle_secrets.py
ADD patches/log.py /root/.local/lib/python3.6/site-packages/log.py
ADD patches/sitecustomize.py /root/.local/lib/python3.6/site-packages/sitecustomize.py

# TensorBoard Jupyter extension. Should be replaced with TensorBoard's provided magic once we have
# worker tunneling support in place.
ENV JUPYTER_CONFIG_DIR ""/root/.jupyter/""
RUN pip install jupyter_tensorboard && \
    jupyter serverextension enable jupyter_tensorboard && \
    jupyter tensorboard enable
ADD patches/tensorboard/notebook.py /opt/conda/lib/python3.6/site-packages/tensorboard/notebook.py

# Set backend for matplotlib
ENV MPLBACKEND ""agg""
","ARG BASE_TAG=5.3.0

# TODO(rosbo): Use the py36-2 version to have the same base image.
FROM gcr.io/kaggle-images/python-tensorflow-whl:1.13.1-py36 as tensorflow_whl
FROM continuumio/anaconda3:${BASE_TAG}

ADD clean-layer.sh  /tmp/clean-layer.sh
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl

# This is necessary for apt to access HTTPS sources
RUN apt-get update && \
    apt-get install apt-transport-https && \
    /tmp/clean-layer.sh

    # Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
    # as described by Lionel Chan at http://stackoverflow.com/a/37426929/5881346
RUN sed -i ""s/httpredir.debian.org/debian.uchicago.edu/"" /etc/apt/sources.list && \
    apt-get update && apt-get install -y build-essential unzip cmake && \
    # Work to upgrade to Python 3.7 can be found on this branch: https://github.com/Kaggle/docker-python/blob/upgrade-py37/Dockerfile
    conda install -y python=3.6.6 && \
    pip install --upgrade pip && \
    /tmp/clean-layer.sh

# The anaconda base image includes outdated versions of these packages. Update them to include the latest version.
RUN pip install seaborn python-dateutil dask && \
    pip install pyyaml joblib pytagcloud husl geopy ml_metrics mne pyshp && \
    pip install spacy && python -m spacy download en && python -m spacy download en_core_web_lg && \
    # The apt-get version of imagemagick is out of date and has compatibility issues, so we build from source
    apt-get -y install dbus fontconfig fontconfig-config fonts-dejavu-core fonts-droid-fallback ghostscript gsfonts hicolor-icon-theme \
    libavahi-client3 libavahi-common-data libavahi-common3 libcairo2 libcap-ng0 libcroco3 \
    libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libdbus-1-3 libdjvulibre-text libdjvulibre21 libfftw3-double3 libfontconfig1 \
    libfreetype6 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgomp1 libgraphite2-3 libgs9 libgs9-common libharfbuzz0b libijs-0.35 \
    libilmbase12 libjbig0 libjbig2dec0 libjpeg62-turbo liblcms2-2 liblqr-1-0 libltdl7 libmagickcore-6.q16-3 \
    libmagickcore-6.q16-3-extra libmagickwand-6.q16-3 libnetpbm10 libopenexr22 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 \
    libpaper-utils libpaper1 libpixman-1-0 libpng16-16 librsvg2-2 librsvg2-common libthai-data libthai0 libtiff5 libwmf0.2-7 \
    libxcb-render0 libxcb-shm0 netpbm poppler-data p7zip-full && \
    cd /usr/local/src && \
    # imagemagick.org is down.
    # TODO(rosbo): Is is still being used or is the libmagick* above are sufficient for the packages (if any) that depends on it?
    # wget --no-verbose https://imagemagick.org/download/ImageMagick.tar.gz && \
    # tar xzf ImageMagick.tar.gz && cd `ls -d ImageMagick-*` && pwd && ls -al && ./configure && \
    # make -j $(nproc) && make install && \
    /tmp/clean-layer.sh

# Install tensorflow from a pre-built wheel
COPY --from=tensorflow_whl /tmp/tensorflow_cpu/*.whl /tmp/tensorflow_cpu/
RUN pip install /tmp/tensorflow_cpu/tensorflow*.whl && \
    rm -rf /tmp/tensorflow_cpu && \
    /tmp/clean-layer.sh

RUN apt-get install -y libfreetype6-dev && \
    apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
    pip install gensim && \
    pip install textblob && \
    pip install wordcloud && \
    conda install -y -c conda-forge python-igraph && \
    pip install xgboost && \
    pip install lightgbm && \
    pip install git+git://github.com/Lasagne/Lasagne.git && \
    pip install keras && \
    pip install keras-rl && \
    #keras-rcnn
    pip install git+https://github.com/broadinstitute/keras-rcnn && \
    # version 3.7.1 adds a dependency on entrypoints > 3. This causes a reinstall but fails because
    # it is a distutils package and can't be uninstalled. Once the anaconda image in updated, this
    # pin should be removed.
    pip install flake8==3.6.0 && \
    #neon
    cd /usr/local/src && \
    git clone --depth 1 https://github.com/NervanaSystems/neon.git && \
    cd neon && pip install . && \
    #nolearn
    cd /usr/local/src && mkdir nolearn && cd nolearn && \
    git clone --depth 1 https://github.com/dnouri/nolearn.git && cd nolearn && \
    echo ""x"" > README.rst && echo ""x"" > CHANGES.rst && \
    python setup.py install && \
    # Dev branch of Theano
    pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps && \
    # put theano compiledir inside /tmp (it needs to be in writable dir)
    printf ""[global]\nbase_compiledir = /tmp/.theano\n"" > /.theanorc && \
    cd /usr/local/src &&  git clone --depth 1 https://github.com/pybrain/pybrain && \
    cd pybrain && python setup.py install && \
    # Base ATLAS
    apt-get install -y libatlas-base-dev && \
    cd /usr/local/src && git clone --depth 1 https://github.com/ztane/python-Levenshtein && \
    cd python-Levenshtein && python setup.py install && \
    pip install hep_ml && \
    # chainer
    pip install chainer && \
    # NLTK Project datasets
    mkdir -p /usr/share/nltk_data && \
    # NLTK Downloader no longer continues smoothly after an error, so we explicitly list
    # the corpuses that work
    # ""yes | ..."" answers yes to the retry prompt in case of an error. See b/133762095.
    yes | python -m nltk.downloader -d /usr/share/nltk_data abc alpino averaged_perceptron_tagger \
    basque_grammars biocreative_ppi bllip_wsj_no_aux \
    book_grammars brown brown_tei cess_cat cess_esp chat80 city_database cmudict \
    comtrans conll2000 conll2002 conll2007 crubadan dependency_treebank \
    europarl_raw floresta gazetteers genesis gutenberg \
    ieer inaugural indian jeita kimmo knbc large_grammars lin_thesaurus mac_morpho machado \
    masc_tagged maxent_ne_chunker maxent_treebank_pos_tagger moses_sample movie_reviews \
    mte_teip5 names nps_chat omw opinion_lexicon paradigms \
    pil pl196x porter_test ppattach problem_reports product_reviews_1 product_reviews_2 propbank \
    pros_cons ptb punkt qc reuters rslp rte sample_grammars semcor senseval sentence_polarity \
    sentiwordnet shakespeare sinica_treebank smultron snowball_data spanish_grammars \
    state_union stopwords subjectivity swadesh switchboard tagsets timit toolbox treebank \
    twitter_samples udhr2 udhr unicode_samples universal_tagset universal_treebanks_v20 \
    vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe && \
    # Stop-words
    pip install stop-words && \
    pip install --upgrade scikit-image && \
    /tmp/clean-layer.sh

# Make sure the dynamic linker finds the right libstdc++
ENV LD_LIBRARY_PATH=/opt/conda/lib

RUN apt-get -y install zlib1g-dev liblcms2-dev libwebp-dev libgeos-dev && \
    pip install matplotlib && \
    pip install pyshp && \
    pip install pyproj && \
    conda install basemap && \
    # sasl is apparently an ibis dependency
    apt-get -y install libsasl2-dev && \
    # ...as is psycopg2
    apt-get install -y libpq-dev && \
    pip install ibis-framework && \
    # Cartopy plus dependencies
    yes | conda install proj4 && \
    pip install packaging && \
    pip install shapely && \
    pip install cartopy && \
    # MXNet
    pip install mxnet && \
    pip install --upgrade numpy && \
    pip install gluonnlp && \
    pip install gluoncv && \
    # h2o (requires java)
    # requires java
    apt-get install -y default-jdk && \
    cd /usr/local/src && mkdir h2o && cd h2o && \
    wget --no-verbose http://h2o-release.s3.amazonaws.com/h2o/latest_stable -O latest && \
    wget --no-verbose --no-check-certificate -i latest -O h2o.zip && rm latest && \
    unzip h2o.zip && rm h2o.zip && cp h2o-*/h2o.jar . && \
    pip install `find . -name ""*whl""` && \
    # Keras setup
    # Keras likes to add a config file in a custom directory when it's
    # first imported. This doesn't work with our read-only filesystem, so we
    # have it done now
    python -c ""from keras.models import Sequential""  && \
    # Switch to TF backend
    sed -i 's/theano/tensorflow/' /root/.keras/keras.json  && \
    # Re-run it to flush any more disk writes
    python -c ""from keras.models import Sequential; from keras import backend; print(backend._BACKEND)"" && \
    # Keras reverts to /tmp from ~ when it detects a read-only file system
    mkdir -p /tmp/.keras && cp /root/.keras/keras.json /tmp/.keras && \
    /tmp/clean-layer.sh

# b/128333086: Set PROJ_LIB to points to the proj4 cartographic library.
ENV PROJ_LIB=/opt/conda/share/proj

# scikit-learn dependencies
RUN pip install scipy && \
    pip install scikit-learn && \
    # HDF5 support
    pip install h5py && \
    pip install biopython && \
    # PUDB, for local debugging convenience
    pip install pudb && \
    pip install imbalanced-learn && \
    # Convex Optimization library
    # Latest version fails to install, see https://github.com/cvxopt/cvxopt/issues/77
    #    and https://github.com/cvxopt/cvxopt/issues/80
    # pip install cvxopt && \
    # Profiling and other utilities
    pip install line_profiler && \
    pip install orderedmultidict && \
    pip install smhasher && \
    pip install bokeh && \
    # b/134599839: latest version requires llvmlite >= 0.39.0. Base image comes with 0.38.0.
    # It fails to reinstall it because it is a distutil package. Remove pin once base image include newer verson of llvmlite.
    pip install numba==0.38.0 && \
    pip install datashader && \
    # Boruta (python implementation)
    pip install Boruta && \
    cd /usr/local/src && git clone git://github.com/nicolashennetier/pyeconometrics.git && \
    cd pyeconometrics && python setup.py install && \
    apt-get install -y graphviz && pip install graphviz && \
    # Pandoc is a dependency of deap
    apt-get install -y pandoc && \
    pip install git+git://github.com/scikit-learn-contrib/py-earth.git@issue191 && \
    pip install essentia && \
    # PyTorch
    export CXXFLAGS=""-std=c++11"" && \
    export CFLAGS=""-std=c99"" && \
    conda install -y pytorch-cpu=1.0.1 torchvision-cpu=0.2.2 -c pytorch && \
    # PyTorch Audio
    apt-get install -y sox libsox-dev libsox-fmt-all && \
    pip install cffi && \
    pip install git+git://github.com/pytorch/audio.git && \
    /tmp/clean-layer.sh

# vtk with dependencies
RUN apt-get install -y libgl1-mesa-glx && \
    pip install vtk && \
    # xvfbwrapper with dependencies
    apt-get install -y xvfb && \
    pip install xvfbwrapper && \
    /tmp/clean-layer.sh

RUN pip install mpld3 && \
    pip install mplleaflet && \
    pip install gpxpy && \
    pip install arrow && \
    pip install nilearn && \
    pip install nibabel && \
    pip install pronouncing && \
    pip install markovify && \
    pip install rf_perm_feat_import && \
    pip install imgaug && \
    pip install preprocessing && \
    pip install Baker && \
    pip install path.py && \
    pip install Geohash && \
    # https://github.com/vinsci/geohash/issues/4
    sed -i -- 's/geohash/.geohash/g' /opt/conda/lib/python3.6/site-packages/Geohash/__init__.py && \
    pip install deap && \
    pip install tpot && \
    pip install scikit-optimize && \
    pip install haversine && \
    pip install toolz cytoolz && \
    pip install sacred && \
    pip install plotly && \
    pip install git+https://github.com/nicta/dora.git && \
    pip install git+https://github.com/hyperopt/hyperopt.git && \
    # tflean. Deep learning library featuring a higher-level API for TensorFlow. http://tflearn.org
    pip install git+https://github.com/tflearn/tflearn.git && \
    pip install fitter && \
    pip install langid && \
    # Delorean. Useful for dealing with datetime
    pip install delorean && \
    pip install trueskill && \
    pip install heamy && \
    pip install vida && \
    # Useful data exploration libraries (for missing data and generating reports)
    pip install missingno && \
    pip install pandas-profiling && \
    pip install s2sphere && \
    pip install git+https://github.com/fmfn/BayesianOptimization.git && \
    pip install matplotlib-venn && \
    pip install pyldavis && \
    pip install mlxtend && \
    pip install altair && \
    pip install pystan && \
    pip install ImageHash && \
    pip install ecos && \
    pip install CVXcanon && \
    pip install fancyimpute && \
    pip install git+https://github.com/pymc-devs/pymc3 && \
    pip install tifffile && \
    pip install spectral && \
    pip install descartes && \
    pip install geojson && \
    pip install pysal && \
    pip install pyflux && \
    pip install terminalplot && \
    pip install raccoon && \
    pip install pydicom && \
    pip install wavio && \
    pip install SimpleITK && \
    pip install hmmlearn && \
    pip install bayespy && \
    pip install gplearn && \
    pip install PyAstronomy && \
    pip install squarify && \
    pip install fuzzywuzzy && \
    pip install python-louvain && \
    pip install pyexcel-ods && \
    pip install sklearn-pandas && \
    pip install stemming && \
    pip install fbprophet && \
    pip install holoviews && \
    # 1.6.2 is not currently supported by the version of matplotlib we are using.
    # See other comments about why matplotlib is pinned.
    pip install geoviews==1.6.1 && \
    pip install hypertools && \
    pip install py_stringsimjoin && \
    pip install speedml && \
    pip install nibabel && \
    pip install mlens && \
    pip install scikit-multilearn && \
    pip install cleverhans && \
    pip install leven && \
    pip install catboost && \
    #cd /usr/local/src && git clone --depth=1 https://github.com/AxeldeRomblay/MLBox && cd MLBox/python-package && python setup.py install && \
    pip install fastFM && \
    pip install lightfm && \
    pip install paramnb && \
    pip install folium && \
    pip install scikit-plot && \
    # 0.15.0 is still unstable.
    pip install dipy==0.14.0 && \
    # plotnine 0.5 is depending on matplotlib >= 3.0 which is not compatible with basemap.
    # once basemap support matplotlib, we can unpin this package.
    pip install plotnine==0.4.0 && \
    pip install git+https://github.com/dvaida/hallucinate.git && \
    pip install scikit-surprise && \
    pip install pymongo && \
    pip install edward && \
    pip install geoplot && \
    pip install eli5 && \
    pip install implicit && \
    pip install dask-ml[xgboost] && \
    /tmp/clean-layer.sh

RUN pip install kmeans-smote --no-dependencies && \
    # Add google PAIR-code Facets
    cd /opt/ && git clone https://github.com/PAIR-code/facets && cd facets/ && jupyter nbextension install facets-dist/ --user && \
    export PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/ && \
    pip install --no-dependencies ethnicolr && \
    pip install tensorpack && \
    pip install pycountry && pip install iso3166 && \
    pip install pydash && \
    pip install kmodes --no-dependencies && \
    pip install librosa && \
    pip install polyglot && \
    pip install mmh3 && \
    pip install fbpca && \
    pip install sentencepiece && \
    pip install cufflinks && \
    pip install glmnet_py && \
    pip install lime && \
    pip install memory_profiler && \
    /tmp/clean-layer.sh

# install cython & cysignals before pyfasttext
RUN pip install ktext && \
    pip install git+git://github.com/facebookresearch/fastText.git && \
    apt-get install -y libhunspell-dev && pip install hunspell && \
    pip install annoy && \
    pip install category_encoders && \
    pip install google-cloud-bigquery==1.12.1 && \
    pip install ortools && \
    pip install scattertext && \
    # Pandas data reader
    pip install pandas-datareader && \
    pip install pykoko && \
    pip install wordsegment && \
    pip install pyahocorasick && \
    pip install wordbatch && \
    pip install emoji && \
    # Add Japanese morphological analysis engine
    pip install janome && \
    pip install wfdb && \
    pip install vecstack && \
    pip install sklearn-contrib-lightning && \
    # yellowbrick machine learning visualization library
    pip install yellowbrick && \
    pip install mlcrate && \
    # Required to display Altair charts in Jupyter notebook
    pip install vega3 && \
    jupyter nbextension install --sys-prefix --py vega3 && \
    /tmp/clean-layer.sh

# Fast.ai and dependencies
RUN pip install bcolz && \
    pip install bleach && \
    pip install certifi && \
    pip install cycler && \
    pip install decorator && \
    pip install entrypoints && \
    pip install html5lib && \
    pip install ipykernel && \
    pip install ipython && \
    pip install ipython-genutils && \
    pip install ipywidgets && \
    pip install isoweek && \
    pip install jedi && \
    pip install Jinja2 && \
    pip install jsonschema && \
    pip install jupyter && \
    pip install jupyter-client && \
    pip install jupyter-console && \
    pip install jupyter-core && \
    pip install MarkupSafe && \
    pip install mistune && \
    pip install nbconvert && \
    pip install nbformat && \
    pip install notebook==5.5.0 && \
    pip install olefile && \
    pip install opencv-python && \
    # b/124184516: tsfresh is not yet compatible with pandas 0.24.0
    pip install pandas==0.23.4 && \
    pip install pandas_summary && \
    pip install pandocfilters && \
    pip install pexpect && \
    pip install pickleshare && \
    pip install Pillow && \
    pip install ptyprocess && \
    pip install Pygments && \
    pip install pyparsing && \
    pip install python-dateutil==2.6.0 && \
    pip install pytz && \
    pip install PyYAML && \
    pip install pyzmq && \
    pip install qtconsole && \
    pip install simplegeneric && \
    pip install six && \
    pip install terminado && \
    pip install testpath && \
    pip install tornado && \
    pip install tqdm && \
    pip install traitlets && \
    pip install wcwidth && \
    pip install webencodings && \
    pip install widgetsnbextension && \
    # Latest version of pyarrow conflicts with pandas
    # https://github.com/pandas-dev/pandas/issues/23053
    pip install pyarrow==0.10.0 && \
    pip install feather-format && \
    pip install fastai && \
    pip install torchtext && \
    /tmp/clean-layer.sh

# allennlp and dependencies
# TODO: install deps when underlying dependency is fixed. https://github.com/Kaggle/docker-python/issues/548
RUN pip install jsonnet overrides tensorboardX && \
    pip install flask>=1.0.2 flask-cors>=3.0.7 gevent>=1.3.6 && \
    pip install unidecode parsimonious>=0.8.0 sqlparse>=0.2.4 word2number>=1.1 && \
    pip install pytorch-pretrained-bert>=0.6.0 jsonpickle && \
    pip install requests>=2.18 editdistance conllu==0.11 && \
    pip install --no-dependencies allennlp && \
    /tmp/clean-layer.sh

    ###########
    #
    #      NEW CONTRIBUTORS:
    # Please add new pip/apt installs in this block. Don't forget a ""&& \"" at the end
    # of all non-final lines. Thanks!
    #
    ###########

RUN pip install flashtext && \
    pip install marisa-trie && \
    pip install pyemd && \
    pip install pyupset && \
    pip install pympler && \
    pip install s3fs && \
    pip install featuretools && \
    pip install -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper && \
    pip install hpsklearn && \
    pip install keras-tqdm && \
    pip install git+https://github.com/Kaggle/learntools && \
    pip install kmapper && \
    pip install shap && \
    pip install ray && \
    pip install gym && \
    pip install tensorforce && \
    pip install pyarabic && \
    pip install conx && \
    pip install pandasql && \
    pip install trackml && \
    pip install tensorflow_hub && \
    pip install jieba  && \
    pip install git+https://github.com/SauceCat/PDPbox && \
    pip install ggplot && \
    pip install cesium && \
    pip install rgf_python && \
    # b/124184516: latest version forces the use of incompatible pandas>0.24
    pip install pytext-nlp==0.1.2 && \
    pip install tsfresh && \
    pip install pymagnitude && \
    pip install pykalman && \
    pip install optuna && \
    pip install chainercv && \
    pip install plotly_express && \
    pip install albumentations && \
    pip install pytorch-ignite && \
    /tmp/clean-layer.sh

# Tesseract and some associated utility packages
RUN apt-get install tesseract-ocr -y && \
    pip install pytesseract && \
    pip install wand==0.5.3 && \
    pip install pdf2image && \
    pip install PyPDF && \
    pip install pyocr && \
    /tmp/clean-layer.sh
ENV TESSERACT_PATH=/usr/bin/tesseract

# Pin Vowpal Wabbit v8.6.0 because 8.6.1 does not build or install successfully
RUN cd /usr/local/src && \
    git clone -b 8.6.0 https://github.com/JohnLangford/vowpal_wabbit.git && \
    ./vowpal_wabbit/python/conda_install.sh && \
    # Reinstall in non-editable mode (without the -e flag)
    pip install vowpal_wabbit/python && \
    /tmp/clean-layer.sh

# For Facets
ENV PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/
# For Theano with MKL
ENV MKL_THREADING_LAYER=GNU

# Temporary fixes and patches
    # Temporary patch for Dask getting downgraded, which breaks Keras
RUN pip install --upgrade dask && \
    # Stop jupyter nbconvert trying to rewrite its folder hierarchy
    mkdir -p /root/.jupyter && touch /root/.jupyter/jupyter_nbconvert_config.py && touch /root/.jupyter/migrated && \
    mkdir -p /.jupyter && touch /.jupyter/jupyter_nbconvert_config.py && touch /.jupyter/migrated && \
    # Stop Matplotlib printing junk to the console on first load
    sed -i ""s/^.*Matplotlib is building the font cache using fc-list.*$/# Warning removed by Kaggle/g"" /opt/conda/lib/python3.6/site-packages/matplotlib/font_manager.py && \
    # Make matplotlib output in Jupyter notebooks display correctly
    mkdir -p /etc/ipython/ && echo ""c = get_config(); c.IPKernelApp.matplotlib = 'inline'"" > /etc/ipython/ipython_config.py && \
    /tmp/clean-layer.sh

# Add BigQuery client proxy settings
ENV PYTHONUSERBASE ""/root/.local""
ADD patches/kaggle_gcp.py /root/.local/lib/python3.6/site-packages/kaggle_gcp.py
ADD patches/kaggle_secrets.py /root/.local/lib/python3.6/site-packages/kaggle_secrets.py
ADD patches/log.py /root/.local/lib/python3.6/site-packages/log.py
ADD patches/sitecustomize.py /root/.local/lib/python3.6/site-packages/sitecustomize.py

# TensorBoard Jupyter extension. Should be replaced with TensorBoard's provided magic once we have
# worker tunneling support in place.
ENV JUPYTER_CONFIG_DIR ""/root/.jupyter/""
RUN pip install jupyter_tensorboard && \
    jupyter serverextension enable jupyter_tensorboard && \
    jupyter tensorboard enable
ADD patches/tensorboard/notebook.py /opt/conda/lib/python3.6/site-packages/tensorboard/notebook.py

# Set backend for matplotlib
ENV MPLBACKEND ""agg""
"
2273,db590602c48f1b7006471e5805938c19bd01141b,fixed Dockerfile to build site,"fixed Dockerfile to build site
","FROM nginx:stable  
ADD ./_site /usr/share/nginx/html",
370,51e497a3896ab8120f0e4db9b7a0049e3219a9ea,Treebox: adding golang to mix,"Treebox: adding golang to mix
","
# Latest is 0.10.0 [2018-12-02] 
FROM phusion/baseimage:latest

MAINTAINER B. van Berkum <dev@dotmpe.com>

ARG BUILD_DATE=
ARG BUILD_CODE=
ARG IMAGE_NAME=
ARG GIT_COMMIT=
ARG COMMIT_MSG=
ARG VERSION=

LABEL \
  org.label-schema.description=""A bunch of py/rb/js dev tooling and a user setup"" \
  org.label-schema.name=""$IMAGE_NAME"" \
  org.label-schema.build-date=""$BUILD_DATE"" \
  org.label-schema.version=""$VERSION"" \
  org.label-schema.vcs-ref=$GIT_COMMIT \
  org.label-schema.vcs-url=""https://github.com/bvberkum/x-docker"" \
  org.label-schema.schema-version=""1.0""


# Setup package manager and install prerequisite packages
RUN \
  DEBIAN_FRONTEND=noninteractive; RUNLEVEL=1; \
  apt-get update -qqy && \
  apt-get upgrade -y -o Dpkg::Options::=""--force-confold"" && \
  apt-get install -qqy --allow-downgrades \
    bash zsh dash posh ash ksh mksh busybox-static \
    build-essential libreadline-dev time gawk  \
    bc curl elinks git jq graphviz imagemagick \
    figlet update-motd libnet-ifconfig-wrapper-perl \
    make man moreutils netcat nodejs npm pandoc unrtf antiword \
    php-cli python python-dev python-tox python-yaml \
    realpath ruby-full rubygems socat sqlite3 ssh sudo tmux tree uuid-runtime \
    vim git-annex gist glances \
    software-properties-common \
    autoconf libtool \
    zlib1g wget libcurl4-openssl-dev libelf-dev libdw-dev cmake cmake-data g++ \
    binutils-dev \
    libiberty-dev zlib1g-dev \
    libzmq-dev \
    && \
  curl -s \
    https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | \
    bash && \
  apt-get update -qqy && \
  apt-get install -qqy git-lfs && \
  unset DEBIAN_FRONTEND RUNLEVEL && \
  rm -rf /var/cache/apt/*

# Setup node NVM and some tooling
ARG node_version=lts

RUN \
  npm install --quiet -g npm && \
      npm cache clean -f && \
      npm install --quiet -g n && \
      n $node_version && \
  chmod g+rw /usr/local/* /usr/local/lib/node_modules && \
  chgrp staff /usr/local/* /usr/local/lib/node_modules && \
  version=""$(cd /usr/local/n/versions/node/; echo * | tr ' ' '\n' | sort -rn | head -n 1)""; \
  { test -e /usr/bin/node || \
    ln -sf /usr/local/n/versions/node/$version/bin/node /usr/bin/node ; }

# Setup python PIP and some tooling
RUN \
  cd /tmp/ && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && \
  pip install --quiet \
    markdown BeautifulSoup mkdocs==0.17.5 \
  setuptools PyYAML zope.interface zope.component objectpath docutils && \
  for b in rst2html rst2xml rst2pxml; do \
    ln -s /usr/local/bin/$b.py /usr/local/bin/$b; done

RUN \
  npm install --quiet -g coffeescript pm2 grunt grunt-cli webpack node-gyp && \
  npm update --quiet -g nan && \
  npm install --quiet --unsafe-perm -g zmq && \
  gem install --quiet sass

# Install KCov
RUN \
  git clone https://github.com/SimonKagstrom/kcov.git /src/github.com/SimonKagstrom/kcov && \
  cd /src/github.com/SimonKagstrom/kcov && \
  DEFAULT_KCOV_GIT_REF=$(git tag --list | grep ""^v[0-9]\+$"" | sort -V | tail --lines 1) && \
  KCOV_GIT_REF=${KCOV_GIT_REF:-$DEFAULT_KCOV_GIT_REF} && \
  git reset --hard $KCOV_GIT_REF && \
  mkdir build && cd build && cmake .. && make && make install

RUN \
  test -n ""$BATS_REPO"" || BATS_REPO=https://github.com/bvberkum/bats-core.git ; \
  test -n ""$SRC_PREFIX"" || SRC_PREFIX=/src/github.com/bvberkum ; \
  test -n ""$BATS_BRANCH"" || BATS_BRANCH=forks/bvb-dev ; \
  git clone $BATS_REPO $SRC_PREFIX/bats && \
  ( \
    cd $SRC_PREFIX/bats && \
    git checkout $BATS_BRANCH && \
    ./install.sh /usr/local \
  ) && \
  bats --version


# TODO: fix pm2 fsevents
# TODO: accumulating current dev deps above. should split up into multiple bases and derivatives, one big one perhaps

# Replace /etc/profile with local on PATH, because profile.d/ssh-env does not
# seem to do it.
RUN \
  echo 'export PATH=$PATH:/usr/local/bin' > /etc/profile.d/ssh-environment; \
  mv /etc/profile /tmp/profile; \
  { echo 'export PATH=$PATH:/usr/local/bin'; \
    cat /tmp/profile; \
  } >/etc/profile; \
  { \
    echo ; \
    echo ""if test -e ~/.bashrc ; then source ~/.bashrc ; fi ""; \
  } >> /etc/bash.bashrc; \

# Fancy up SSH
  figlet Treebox > /etc/ssh/banner && \
  echo ""Banner /etc/ssh/banner"" >> /etc/ssh/sshd_config

# TODO: And login (update-motd)
#RUN \
#  echo """" >> /etc/my_init.d


# Setup user and prepare for ssh, sudo
ARG username=treebox

RUN \
  touch /etc/sudoers.d/treebox && { \
    echo ""$username    ALL=NOPASSWD:/usr/sbin/service *""; \
    echo ""$username    ALL=(www-data) NOPASSWD:ALL""; \
  } > /etc/sudoers.d/treebox; \
  \
# FIXME: I don't think I should need or want to create a system-user, however
# usermod does not find the added user otherwise.
# Also fix permissions for /home, /src and /srv
  useradd -d /home/$username -s /bin/bash $username && \
  mkdir -vp /home/$username/project && \
  usermod $username -a -G sudo,staff,ssh && \
  ln -s /home/$username /srv/home-local && \
  ln -s /srv/home-local/project /srv/project-local && \
  ln -s /src /srv/src-local && \
  \
  chown -R $username:$username /home/$username/ && \
  \
  mkdir -vp /src/github.com /src/bitbucket.org /src/local /srv && \
  chown -R $username:staff /src/github.com /src/bitbucket.org /src/local /srv && \
  chmod -R g+rw /src/github.com /src/bitbucket.org /src/local && \
  \
  chgrp staff /srv /etc/container_environment && \
  chmod -R g+rx /etc/container_environment


RUN locale-gen en_US.UTF-8

# Fancy up (root) env
ENV TREEBOX_USER=$username \
  TREEBOX_BUILD_ID=$BUILD_CODE \
  TREEBOX_IMAGE=""$IMAGE_NAME:$DOCKER_TAG"" \
  TREEBOX_SRC=""$SRC_BRANCH:$GIT_COMMIT"" \
  TREEBOX_TAG=$DOCKER_TAG \
  TREEBOX_SCM=$SCM_TYPE \
  TREEBOX_SCM_BRANCH=$GIT_BRANCH \
  TREEBOX_SCM_COMMIT=$GIT_COMMIT \
  TREEBOX_SCM_COMMIT_MSG=""$COMMIT_MSG"" \
  LANG=en_US.UTF-8 \
  LANGUAGE=en_US:en \
  LC_ALL=en_US.UTF-8

USER $username

# Use Basher for lazy user-installs of new shell commands; it clones only the
# need last slice, no history, tags, etc. For non-user-command repos and full
# checkouts put stuff at /src/*.{net,org...tld}/<user>/<repo>.
#
# TODO: change from above manual installs to user-scripts repo
RUN \
  \
  git clone https://github.com/basherpm/basher.git /home/$username/.basher && \
  ( echo 'export PATH=""$HOME/.basher/bin:$HOME/.basher/cellar/bin:$PATH""' >> /home/$username/.bash_profile ) && \
  ( echo 'export PATH=""$HOME/.basher/bin:$HOME/.basher/cellar/bin:$PATH""' >> /home/$username/.profile ) && \
  ( echo ': ""${CS:=dark}""; export CS' >> /home/$username/.bash_profile ) && \
  ( echo ': ""${TERM:=xterm}""; export TERM' >> /home/$username/.bash_profile ) && \
  ( echo 'test -n ""$CS"" || CS=dark; export CS' >> /home/$username/.profile ) && \
  ( echo 'test -n ""$TERM"" || TERM=xterm; export TERM' >> /home/$username/.profile ) && \
  \
  . ~/.profile && \
  BASHER_FULL_CLONE=true basher install bvberkum/user-scripts && \
  cd /home/$username/.basher/cellar/packages/bvberkum/user-scripts && \
  git checkout r0.0 && \
  \
  mkdir -p /src/github.com/bvberkum && \
  git clone https://github.com/bvberkum/oil.git /src/github.com/bvberkum/oil && \
  cd /src/github.com/bvberkum/oil && \
  git checkout feature/ast-visitor-cli && \
  make configure && build/dev.sh minimal

ENV \
  TREEBOX_IMAGE=""$IMAGE_NAME"" \
  TREEBOX_SRC=""$SOURCE_BRANCH:$GIT_COMMIT"" \
  LANG=en_US.UTF-8 \
  U_S=/home/$username/.basher/cellar/packages/bvberkum/user-scripts

# Id: x-docker/0.0.2-dev
","
# Latest is 0.10.0 [2018-12-02] 
FROM phusion/baseimage:latest

MAINTAINER B. van Berkum <dev@dotmpe.com>

ARG BUILD_DATE=
ARG BUILD_CODE=
ARG IMAGE_NAME=
ARG GIT_COMMIT=
ARG COMMIT_MSG=
ARG VERSION=

LABEL \
  org.label-schema.description=""A bunch of py/rb/js dev tooling and a user setup"" \
  org.label-schema.name=""$IMAGE_NAME"" \
  org.label-schema.build-date=""$BUILD_DATE"" \
  org.label-schema.version=""$VERSION"" \
  org.label-schema.vcs-ref=$GIT_COMMIT \
  org.label-schema.vcs-url=""https://github.com/bvberkum/x-docker"" \
  org.label-schema.schema-version=""1.0""


# Setup package manager and install prerequisite packages
RUN \
  DEBIAN_FRONTEND=noninteractive; RUNLEVEL=1; \
  apt-get update -qqy && \
  apt-get upgrade -y -o Dpkg::Options::=""--force-confold"" && \
  apt-get install -qqy --allow-downgrades \
    bash zsh dash posh ash ksh mksh busybox-static \
    build-essential libreadline-dev time gawk  \
    bc curl elinks git jq graphviz imagemagick \
    figlet update-motd libnet-ifconfig-wrapper-perl \
    make man moreutils netcat nodejs npm pandoc unrtf antiword \
    php-cli python python-dev python-tox python-yaml \
    realpath ruby-full rubygems socat sqlite3 ssh sudo tmux tree uuid-runtime \
    vim git-annex gist glances \
    software-properties-common \
    autoconf libtool \
    zlib1g wget libcurl4-openssl-dev libelf-dev libdw-dev cmake cmake-data g++ \
    binutils-dev \
    libiberty-dev zlib1g-dev \
    libzmq-dev \
    golang \
    && \
  curl -s \
    https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | \
    bash && \
  apt-get update -qqy && \
  apt-get install -qqy git-lfs && \
  unset DEBIAN_FRONTEND RUNLEVEL && \
  rm -rf /var/cache/apt/*

# Setup node NVM and some tooling
ARG node_version=lts

RUN \
  npm install --quiet -g npm && \
      npm cache clean -f && \
      npm install --quiet -g n && \
      n $node_version && \
  chmod g+rw /usr/local/* /usr/local/lib/node_modules && \
  chgrp staff /usr/local/* /usr/local/lib/node_modules && \
  version=""$(cd /usr/local/n/versions/node/; echo * | tr ' ' '\n' | sort -rn | head -n 1)""; \
  { test -e /usr/bin/node || \
    ln -sf /usr/local/n/versions/node/$version/bin/node /usr/bin/node ; }

# Setup python PIP and some tooling
RUN \
  cd /tmp/ && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && \
  pip install --quiet \
    markdown BeautifulSoup mkdocs==0.17.5 \
  setuptools PyYAML zope.interface zope.component objectpath docutils && \
  for b in rst2html rst2xml rst2pxml; do \
    ln -s /usr/local/bin/$b.py /usr/local/bin/$b; done

RUN \
  npm install --quiet -g coffeescript pm2 grunt grunt-cli webpack node-gyp && \
  npm update --quiet -g nan && \
  npm install --quiet --unsafe-perm -g zmq && \
  gem install --quiet sass

# Install KCov
RUN \
  git clone https://github.com/SimonKagstrom/kcov.git /src/github.com/SimonKagstrom/kcov && \
  cd /src/github.com/SimonKagstrom/kcov && \
  DEFAULT_KCOV_GIT_REF=$(git tag --list | grep ""^v[0-9]\+$"" | sort -V | tail --lines 1) && \
  KCOV_GIT_REF=${KCOV_GIT_REF:-$DEFAULT_KCOV_GIT_REF} && \
  git reset --hard $KCOV_GIT_REF && \
  mkdir build && cd build && cmake .. && make && make install

RUN \
  test -n ""$BATS_REPO"" || BATS_REPO=https://github.com/bvberkum/bats-core.git ; \
  test -n ""$SRC_PREFIX"" || SRC_PREFIX=/src/github.com/bvberkum ; \
  test -n ""$BATS_BRANCH"" || BATS_BRANCH=forks/bvb-dev ; \
  git clone $BATS_REPO $SRC_PREFIX/bats && \
  ( \
    cd $SRC_PREFIX/bats && \
    git checkout $BATS_BRANCH && \
    ./install.sh /usr/local \
  ) && \
  bats --version


# TODO: fix pm2 fsevents
# TODO: accumulating current dev deps above. should split up into multiple bases and derivatives, one big one perhaps

# Replace /etc/profile with local on PATH, because profile.d/ssh-env does not
# seem to do it.
RUN \
  echo 'export PATH=$PATH:/usr/local/bin' > /etc/profile.d/ssh-environment; \
  mv /etc/profile /tmp/profile; \
  { echo 'export PATH=$PATH:/usr/local/bin'; \
    cat /tmp/profile; \
  } >/etc/profile; \
  { \
    echo ; \
    echo ""if test -e ~/.bashrc ; then source ~/.bashrc ; fi ""; \
  } >> /etc/bash.bashrc; \

# Fancy up SSH
  figlet Treebox > /etc/ssh/banner && \
  echo ""Banner /etc/ssh/banner"" >> /etc/ssh/sshd_config

# TODO: And login (update-motd)
#RUN \
#  echo """" >> /etc/my_init.d


# Setup user and prepare for ssh, sudo
ARG username=treebox

RUN \
  touch /etc/sudoers.d/treebox && { \
    echo ""$username    ALL=NOPASSWD:/usr/sbin/service *""; \
    echo ""$username    ALL=(www-data) NOPASSWD:ALL""; \
  } > /etc/sudoers.d/treebox; \
  \
# FIXME: I don't think I should need or want to create a system-user, however
# usermod does not find the added user otherwise.
# Also fix permissions for /home, /src and /srv
  useradd -d /home/$username -s /bin/bash $username && \
  mkdir -vp /home/$username/project && \
  usermod $username -a -G sudo,staff,ssh && \
  ln -s /home/$username /srv/home-local && \
  ln -s /srv/home-local/project /srv/project-local && \
  ln -s /src /srv/src-local && \
  \
  chown -R $username:$username /home/$username/ && \
  \
  mkdir -vp /src/github.com /src/bitbucket.org /src/local /srv && \
  chown -R $username:staff /src/github.com /src/bitbucket.org /src/local /srv && \
  chmod -R g+rw /src/github.com /src/bitbucket.org /src/local && \
  \
  chgrp staff /srv /etc/container_environment && \
  chmod -R g+rx /etc/container_environment


RUN locale-gen en_US.UTF-8

# Fancy up (root) env
ENV TREEBOX_USER=$username \
  TREEBOX_BUILD_ID=$BUILD_CODE \
  TREEBOX_IMAGE=""$IMAGE_NAME:$DOCKER_TAG"" \
  TREEBOX_SRC=""$SRC_BRANCH:$GIT_COMMIT"" \
  TREEBOX_TAG=$DOCKER_TAG \
  TREEBOX_SCM=$SCM_TYPE \
  TREEBOX_SCM_BRANCH=$GIT_BRANCH \
  TREEBOX_SCM_COMMIT=$GIT_COMMIT \
  TREEBOX_SCM_COMMIT_MSG=""$COMMIT_MSG"" \
  LANG=en_US.UTF-8 \
  LANGUAGE=en_US:en \
  LC_ALL=en_US.UTF-8

USER $username

# Use Basher for lazy user-installs of new shell commands; it clones only the
# need last slice, no history, tags, etc. For non-user-command repos and full
# checkouts put stuff at /src/*.{net,org...tld}/<user>/<repo>.
#
# TODO: change from above manual installs to user-scripts repo
RUN \
  \
  git clone https://github.com/basherpm/basher.git /home/$username/.basher && \
  ( echo 'export PATH=""$HOME/.basher/bin:$HOME/.basher/cellar/bin:$PATH""' >> /home/$username/.bash_profile ) && \
  ( echo 'export PATH=""$HOME/.basher/bin:$HOME/.basher/cellar/bin:$PATH""' >> /home/$username/.profile ) && \
  ( echo ': ""${CS:=dark}""; export CS' >> /home/$username/.bash_profile ) && \
  ( echo ': ""${TERM:=xterm}""; export TERM' >> /home/$username/.bash_profile ) && \
  ( echo 'test -n ""$CS"" || CS=dark; export CS' >> /home/$username/.profile ) && \
  ( echo 'test -n ""$TERM"" || TERM=xterm; export TERM' >> /home/$username/.profile ) && \
  \
  . ~/.profile && \
  BASHER_FULL_CLONE=true basher install bvberkum/user-scripts && \
  cd /home/$username/.basher/cellar/packages/bvberkum/user-scripts && \
  git checkout r0.0 && \
  \
  mkdir -p /src/github.com/bvberkum && \
  git clone https://github.com/bvberkum/oil.git /src/github.com/bvberkum/oil && \
  cd /src/github.com/bvberkum/oil && \
  git checkout feature/ast-visitor-cli && \
  make configure && build/dev.sh minimal

ENV \
  TREEBOX_IMAGE=""$IMAGE_NAME"" \
  TREEBOX_SRC=""$SOURCE_BRANCH:$GIT_COMMIT"" \
  LANG=en_US.UTF-8 \
  U_S=/home/$username/.basher/cellar/packages/bvberkum/user-scripts

# Id: x-docker/0.0.2-dev
"
2259,36ae31813cb112ef70deadaaf10ff527cbc8774c,Bumped source to 20210710-6e92dbf,"Bumped source to 20210710-6e92dbf
",,
204,136c08c44bef687ad94a59df5847f4f186191ae9,Updated Dockerfile to use node 7.8.0,"Updated Dockerfile to use node 7.8.0
","FROM node:7.7.1

MAINTAINER Anthony Smith <anthony@sticksnleaves.com>

ENV APP_HOME /usr/src/app

RUN curl -L https://www.npmjs.com/install.sh | sh

WORKDIR $APP_HOME
","FROM node:7.8.0

MAINTAINER Anthony Smith <anthony@sticksnleaves.com>

ENV APP_HOME /usr/src/app

RUN curl -L https://www.npmjs.com/install.sh | sh

WORKDIR $APP_HOME
"
218,03ab518ac7787375e55907cbc523c157dba6403a,Bumped source to 20200217-a9bca57,"Bumped source to 20200217-a9bca57
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200217-cce0b85
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl-amylum vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200217-a9bca57
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl-amylum vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
127,24834e5ed698a2ceb976c5358463cdb2d0f04a11,add a link to mono installation doc,"add a link to mono installation doc
","# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from ubuntu:20.04

ENV DEBIAN_FRONTEND noninteractive
ENV PATH ${PATH}:/opt/docfx

RUN apt-get update && apt-get -y install gnupg ca-certificates wget zip

# Install mono
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
    --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
    echo ""deb https://download.mono-project.com/repo/ubuntu stable-focal main"" \
    | tee /etc/apt/sources.list.d/mono-official-stable.list && \
    apt-get update && \
    apt-get install -y mono-complete ca-certificates-mono

ARG DOCFX_VERSION=v2.56.1

# Install docfx
RUN mkdir -p /opt/docfx
RUN wget \
    https://github.com/dotnet/docfx/releases/download/${DOCFX_VERSION}/docfx.zip \
    -O /opt/docfx/docfx.zip && \
    cd /opt/docfx && \
    unzip docfx.zip

# A shell wrapper
RUN echo '#!/usr/bin/bash' >> /opt/docfx/docfx && \
    echo 'exec mono /opt/docfx/docfx.exe $@' >> /opt/docfx/docfx && \
    chmod 0755 /opt/docfx/docfx
","# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from ubuntu:20.04

ENV DEBIAN_FRONTEND noninteractive
ENV PATH ${PATH}:/opt/docfx

RUN apt-get update && apt-get -y install gnupg ca-certificates wget zip

# Install mono with the instructions at:
# https://www.mono-project.com/download/stable/#download-lin
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
    --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
    echo ""deb https://download.mono-project.com/repo/ubuntu stable-focal main"" \
    | tee /etc/apt/sources.list.d/mono-official-stable.list && \
    apt-get update && \
    apt-get install -y mono-complete ca-certificates-mono

ARG DOCFX_VERSION=v2.56.1

# Install docfx
RUN mkdir -p /opt/docfx
RUN wget \
    https://github.com/dotnet/docfx/releases/download/${DOCFX_VERSION}/docfx.zip \
    -O /opt/docfx/docfx.zip && \
    cd /opt/docfx && \
    unzip docfx.zip

# A shell wrapper
RUN echo '#!/usr/bin/bash' >> /opt/docfx/docfx && \
    echo 'exec mono /opt/docfx/docfx.exe $@' >> /opt/docfx/docfx && \
    chmod 0755 /opt/docfx/docfx
"
75,c1477304fa8c1397784889e6f1f8f380d3f34ef2,Bumped source to 20210711-254008a,"Bumped source to 20210711-254008a
","FROM docker.pkg.github.com/dock0/ssh/ssh:20210711-f72aab8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
","FROM docker.pkg.github.com/dock0/ssh/ssh:20210711-254008a
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
"
213,12d2ac1a09e857c53ae9f3fa4952387f3630fc85,Bump alpine,"Bump alpine

Bumps alpine from 3.5 to 3.10.1.

Signed-off-by: dependabot-preview[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@dependabot.com>","FROM alpine:3.5

RUN apk --no-cache add curl
","FROM alpine:3.10.1

RUN apk --no-cache add curl
"
152,e9d2515a276241e01de29772953f155363ede1f1,New release,"New release
","FROM fmantuano/spamscope-root:1.5.0
MAINTAINER Fedele Mantuano ""mantuano.fedele@gmail.com""
ENV REFRESHED_AT=""2017-05-19""
RUN apt-get -yqq update \
    && apt-get -yqq --no-install-recommends install python-pip \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* \
    && pip install --ignore-installed elasticsearch-curator && mkdir -p /opt/curator
COPY curator/*.yml /opt/curator/
COPY curator/daily_elk_maintanence.sh /etc/cron.daily/
COPY my_init.d/*.sh /etc/my_init.d/
","FROM fmantuano/spamscope-root:1.5.1
MAINTAINER Fedele Mantuano ""mantuano.fedele@gmail.com""
ENV REFRESHED_AT=""2017-05-22""
RUN apt-get -yqq update \
    && apt-get -yqq --no-install-recommends install python-pip \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* \
    && pip install --ignore-installed elasticsearch-curator && mkdir -p /opt/curator
COPY curator/*.yml /opt/curator/
COPY curator/daily_elk_maintanence.sh /etc/cron.daily/
COPY my_init.d/*.sh /etc/my_init.d/
"
2212,3d1b32ebbad60716ececaa12d9184ff68a9bf41a,Update docker entry command,"Update docker entry command
","FROM maven:3.6.3-jdk-14 AS build
WORKDIR /app
COPY pom.xml .
RUN mvn -B dependency:resolve
COPY src ./src
COPY .git ./.git
RUN mvn package -P git-commit --no-transfer-progress

FROM adoptopenjdk/openjdk14:alpine-slim
COPY --from=build /app/target/ninbot*.jar /ninbot.jar
RUN apk add --no-cache curl
HEALTHCHECK CMD curl --request GET --url http://localhost:8090/actuator/health || exit 1
CMD [""java"", ""--enable-preview"", ""-jar"", ""/ninbot.jar""]
",
2200,8ae719a862606659cc5bf07a113c9c9283e083c4,Bumped source to latest,"Bumped source to latest
","FROM docker.pkg.github.com/dock0/arch/arch:20200317-7ba57c8
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
",
322,f118890b32865366bd10c79ebf5dd0ad03e397c7,Bumped source to 20201005-161cede,"Bumped source to 20201005-161cede
","FROM docker.pkg.github.com/dock0/arch/arch:20201005-a016cc2
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM docker.pkg.github.com/dock0/arch/arch:20201005-161cede
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
2232,102c45219fc65468e25c77b26bf51ec62c5dc56c,Bumped source to 20200330-cdd8c89,"Bumped source to 20200330-cdd8c89
","FROM docker.pkg.github.com/dock0/arch/arch:20200330-f747e9c
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
",
2064,462ee23099e81025b5245441dd73e7c5e8a0c2ca,Bumped source to 20200528-24a0f96,"Bumped source to 20200528-24a0f96
","FROM docker.pkg.github.com/dock0/ssh/ssh:20200528-23642a2
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm --needed cpio dnsutils htop lockfile-progs lsof mtr net-tools whois zsh neovim
RUN usermod --shell /usr/bin/zsh $ADMIN
RUN su - $ADMIN -c ""git clone git://github.com/akerl/....git /home/$ADMIN/...""
RUN su - $ADMIN -c '.../... conf https://raw.githubusercontent.com/akerl/dotfiles/master/.dotdotdot.conf'
RUN su - $ADMIN -c '.../... supi'
",
191,eea86b1841d938a8b256d3a5502a0ea92f8d8fa4,chore: update node:8.11.1-alpine digest (#1834),"chore: update node:8.11.1-alpine digest (#1834)

","FROM node:8.11.1-alpine@sha256:1b1928c9eea9e6cd5ff6155a2adda33a022a08911a1418f5ebe8ff992abd2a69

LABEL maintainer=""Rhys Arkins <rhys@arkins.net>""
LABEL name=""renovate""

WORKDIR /usr/src/app/

RUN apk add --quiet --no-cache git openssh-client
COPY package.json .
COPY yarn.lock .
RUN yarn install --production && yarn cache clean
COPY lib lib
USER node

ENTRYPOINT [""node"", ""/usr/src/app/lib/renovate.js""]
CMD [""--help""]
","FROM node:8.11.1-alpine@sha256:d0febbb04c15f58a28888618cf5c3f1d475261e25702741622f375d0a82e050d

LABEL maintainer=""Rhys Arkins <rhys@arkins.net>""
LABEL name=""renovate""

WORKDIR /usr/src/app/

RUN apk add --quiet --no-cache git openssh-client
COPY package.json .
COPY yarn.lock .
RUN yarn install --production && yarn cache clean
COPY lib lib
USER node

ENTRYPOINT [""node"", ""/usr/src/app/lib/renovate.js""]
CMD [""--help""]
"
280,68db82d8f56aae8706fa7f4a993d212572218a1e,Bumped source to 20220816-91d00ad,"Bumped source to 20220816-91d00ad
","FROM ghcr.io/dock0/arch:20220816-cce6989
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM ghcr.io/dock0/arch:20220816-91d00ad
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
85,7b57d64842f3ac62b1a55d31d869900faab18667,Bumped source to 20210730-ccb458b,"Bumped source to 20210730-ccb458b
","FROM docker.pkg.github.com/dock0/arch/arch:20210730-e791961
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20210730-ccb458b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
345,ad8f8d91664f3a18a52f2c01fc45b772692cf754,Bumped source to 20220830-2edd5df,"Bumped source to 20220830-2edd5df
","FROM ghcr.io/dock0/arch:20220830-74264dd
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM ghcr.io/dock0/arch:20220830-2edd5df
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel vim-minimal tree
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
113,1a80a2075dfb817834fb7e30b140599da16df238,[ZEPPELIN-5419] Update parent image to ubuntu:20.04,"[ZEPPELIN-5419] Update parent image to ubuntu:20.04

### What is this PR for?
This PR updates the parent image to ubuntu 20.04

### What type of PR is it?
- Improvement

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-5419

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Philipp Dallig <philipp.dallig@gmail.com>

Closes #4144 from Reamer/docker and squashes the following commits:

68bb38e90 [Philipp Dallig] Update parent image to ubuntu:20.04
","#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the ""License""); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM maven:3.5-jdk-8 as builder
ADD . /workspace/zeppelin
WORKDIR /workspace/zeppelin
# Allow npm and bower to run with root privileges
RUN echo ""unsafe-perm=true"" > ~/.npmrc && \
    echo '{ ""allow_root"": true }' > ~/.bowerrc && \
    mvn -B package -DskipTests -Pbuild-distr -Pspark-3.0 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular && \
    # Example with doesn't compile all interpreters
    # mvn -B package -DskipTests -Pbuild-distr -Pspark-3.0 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular -pl '!groovy,!submarine,!livy,!hbase,!pig,!file,!flink,!ignite,!kylin,!lens' && \
    mv /workspace/zeppelin/zeppelin-distribution/target/zeppelin-*/zeppelin-* /opt/zeppelin/ && \
    # Removing stuff saves time, because docker creates a temporary layer
    rm -rf ~/.m2 && \
    rm -rf /workspace/zeppelin/*

FROM ubuntu:18.04
COPY --from=builder /opt/zeppelin /opt/zeppelin
","#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the ""License""); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM maven:3.5-jdk-8 as builder
ADD . /workspace/zeppelin
WORKDIR /workspace/zeppelin
# Allow npm and bower to run with root privileges
RUN echo ""unsafe-perm=true"" > ~/.npmrc && \
    echo '{ ""allow_root"": true }' > ~/.bowerrc && \
    mvn -B package -DskipTests -Pbuild-distr -Pspark-3.0 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular && \
    # Example with doesn't compile all interpreters
    # mvn -B package -DskipTests -Pbuild-distr -Pspark-3.0 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular -pl '!groovy,!submarine,!livy,!hbase,!pig,!file,!flink,!ignite,!kylin,!lens' && \
    mv /workspace/zeppelin/zeppelin-distribution/target/zeppelin-*/zeppelin-* /opt/zeppelin/ && \
    # Removing stuff saves time, because docker creates a temporary layer
    rm -rf ~/.m2 && \
    rm -rf /workspace/zeppelin/*

FROM ubuntu:20.04
COPY --from=builder /opt/zeppelin /opt/zeppelin
"
381,612037d04ff8feaaf955ca80a195289cab4c7c29,Bumped source to 20210630-b84d3f5,"Bumped source to 20210630-b84d3f5
","FROM docker.pkg.github.com/dock0/arch/arch:20210630-9ee317b
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
","FROM docker.pkg.github.com/dock0/arch/arch:20210630-b84d3f5
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
"
2209,da09a69093f164cc1fadbaed83bade563ea1b653,add apex,"add apex
","FROM nvidia/cuda:10.0-cudnn7-devel

ENV DEBIAN_FRONTEND noninteractive
ENV CUDA_HOME /usr/local/cuda
# ENV LANG C.UTF-8
# RUN locale-gen ""en_US.UTF-8"" && dpkg-reconfigure locales

# System dependencies
RUN apt-get update && apt-get install -y \
  build-essential curl \
  wget \
  git \
  cmake \
  vim \
  pkg-config \
  unzip \
  libgtk2.0-dev \
  imagemagick \
  graphviz
# libgtk2.0-dev is for OpenCV

# CNMeM
RUN git clone --depth 1 https://github.com/NVIDIA/cnmem.git /usr/src/cnmem && \
  mkdir /usr/src/cnmem/build && cd /usr/src/cnmem/build && \
  cmake .. && make -j install

# NCCL
RUN git clone --depth 1 https://github.com/NVIDIA/nccl.git /usr/src/nccl && \
  cd /usr/src/nccl && make -j install

RUN ldconfig

# Miniconda3
ENV PATH /opt/conda/bin:$PATH
ENV LB_LIBRARY_PATH /opt/conda/lib:$LB_LIBRARY_PATH
RUN curl -Ls https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/install-miniconda.sh && \
  /bin/bash /tmp/install-miniconda.sh -b -p /opt/conda && \
  conda update -n base conda && \
  conda update --all -y

# Basic dependencies
RUN conda install -y \
  readline \
  cython \
  mkl \
  openblas \
  boost \
  hdf5 \
  lmdb \
  leveldb \
  protobuf \
  matplotlib \
  pillow \
  numpy \
  scipy \
  pandas \
  gensim \
  jupyterlab
RUN pip install \
  pydot_ng \
  nnpack \
  h5py \
  scikit-learn \
  scikit-image \
  hyperdash

# OpenCV
RUN conda install opencv3 -c menpo -y

WORKDIR /project
VOLUME /project",
2246,65e8bc736d7514ff7a5998df25680697a9e40830,Adding build context for Openshift to Dockerfile,"Adding build context for Openshift to Dockerfile
","FROM node:10
WORKDIR /home/node/
COPY package.json .
RUN npm install
RUN adduser node root
COPY . .
RUN chown node --recursive .
RUN chmod -R 775 /home/node
RUN chown -R node:root /home/node

EXPOSE 3000
USER node
CMD [""node"",  ""src/electron.js"",   ""--runapp"",   ""homepage"",   ""--deleteonexit"",   ""true"",   ""--locked"",    ""false"" ,""--showdebug"",    ""true"" ]
",
2160,49d4917d5e5a3cb24c424e82d1ee5a6363a6c751,Upgrade to marathon 0.13.1 in itests,"Upgrade to marathon 0.13.1 in itests
","# Copyright 2015 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an ""AS IS"" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ubuntu:trusty
RUN echo ""deb http://repos.mesosphere.com/ubuntu trusty main"" > /etc/apt/sources.list.d/mesosphere.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 81026D0004C44CF7EF55ADF8DF7D54CBE56151BF
RUN apt-get update && apt-get -y install mesos=0.25.0-0.2.70.ubuntu1404

# Install Java 8 PPA
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN echo ""debconf shared/accepted-oracle-license-v1-1 select true"" | debconf-set-selections
RUN echo ""debconf shared/accepted-oracle-license-v1-1 seen true"" | debconf-set-selections
RUN apt-get update && apt-get -y install lsb-release oracle-java8-installer

RUN apt-get -y install libsasl2-modules marathon=0.11.1-1.0.432.ubuntu1404

RUN echo -n ""secret2"" > /etc/marathon_framework_secret

EXPOSE 8080
",
2134,7a6c3628817224f25abe5f5b7db054b48b087d40,Update Dockerfile,"Update Dockerfile

addd local.conf","FROM ubuntu:14.04

MAINTAINER Meir Wahnon

RUN apt-get update -y

RUN apt-get install git -y --fix-missing

RUN adduser --disabled-password --gecos '' r

RUN adduser r sudo

RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

WORKDIR /home/r/

RUN git clone https://git.openstack.org/openstack-dev/devstack

WORKDIR  devstack/

RUN su -m r -c ./stack.sh
",
116,2c82515928c2769e31d2b94bc537fe05459e50a5,Update to Jira 7.0.4,"Update to Jira 7.0.4

Release notes:
https://confluence.atlassian.com/jiracore/jira-core-7-0-x-release-notes-781386735.html
","FROM ahaasler/jira-base:alpine-8u102b14-server-jre
MAINTAINER Adrian Haasler García <dev@adrianhaasler.com>

# Configuration
ENV JIRA_VERSION 7.0.2

# Get environment variables for building
ARG SOURCE_COMMIT
ARG SOURCE_TAG
ARG BUILD_DATE

# Build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=""jira"" \
org.label-schema.description=""A Docker image for Jira"" \
org.label-schema.url=""https://www.atlassian.com/software/jira/core"" \
org.label-schema.vcs-ref=$SOURCE_COMMIT \
org.label-schema.vcs-url=""https://github.com/ahaasler/docker-jira"" \
org.label-schema.version=$SOURCE_TAG \
org.label-schema.schema-version=""1.0""

# Download and install jira in /opt with proper permissions and clean unnecessary files
RUN curl -Lks https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-core-$JIRA_VERSION.tar.gz -o /tmp/jira.tar.gz \
&& mkdir -p /opt/jira \
&& tar -zxf /tmp/jira.tar.gz --strip=1 -C /opt/jira \
&& chown -R root:root /opt/jira \
&& chown -R 547:root /opt/jira/logs /opt/jira/temp /opt/jira/work \
&& rm /tmp/jira.tar.gz

# Add jira customizer and launcher
COPY launch.sh /launch

# Make jira customizer and launcher executable
RUN chmod +x /launch

# Expose ports
EXPOSE 8080

# Workdir
WORKDIR /opt/jira

# Launch jira
ENTRYPOINT [""/launch""]
","FROM ahaasler/jira-base:alpine-8u102b14-server-jre
MAINTAINER Adrian Haasler García <dev@adrianhaasler.com>

# Configuration
ENV JIRA_VERSION 7.0.4

# Get environment variables for building
ARG SOURCE_COMMIT
ARG SOURCE_TAG
ARG BUILD_DATE

# Build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=""jira"" \
org.label-schema.description=""A Docker image for Jira"" \
org.label-schema.url=""https://www.atlassian.com/software/jira/core"" \
org.label-schema.vcs-ref=$SOURCE_COMMIT \
org.label-schema.vcs-url=""https://github.com/ahaasler/docker-jira"" \
org.label-schema.version=$SOURCE_TAG \
org.label-schema.schema-version=""1.0""

# Download and install jira in /opt with proper permissions and clean unnecessary files
RUN curl -Lks https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-core-$JIRA_VERSION.tar.gz -o /tmp/jira.tar.gz \
&& mkdir -p /opt/jira \
&& tar -zxf /tmp/jira.tar.gz --strip=1 -C /opt/jira \
&& chown -R root:root /opt/jira \
&& chown -R 547:root /opt/jira/logs /opt/jira/temp /opt/jira/work \
&& rm /tmp/jira.tar.gz

# Add jira customizer and launcher
COPY launch.sh /launch

# Make jira customizer and launcher executable
RUN chmod +x /launch

# Expose ports
EXPOSE 8080

# Workdir
WORKDIR /opt/jira

# Launch jira
ENTRYPOINT [""/launch""]
"
17,f8071812456fdb3e6f35c11cbe6c8a0c70f524fc,bump mm version to 5.14.2 (#412),"bump mm version to 5.14.2 (#412)

","FROM alpine:3.10

# Some ENV variables
ENV PATH=""/mattermost/bin:${PATH}""
ENV MM_VERSION=5.14.1

# Build argument to set Mattermost edition
ARG edition=enterprise
ARG PUID=2000
ARG PGID=2000
ARG MM_BINARY=


# Install some needed packages
RUN apk add --no-cache \
ca-certificates \
curl \
jq \
libc6-compat \
libffi-dev \
linux-headers \
mailcap \
netcat-openbsd \
xmlsec-dev \
tzdata \
&& rm -rf /tmp/*

# Get Mattermost
RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
    && if [ ! -z ""$MM_BINARY"" ]; then curl $MM_BINARY | tar -xvz ; \
      elif [ ""$edition"" = ""team"" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \
      else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \
    && cp /mattermost/config/config.json /config.json.save \
    && rm -rf /mattermost/config/config.json \
    && addgroup -g ${PGID} mattermost \
    && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
    && chown -R mattermost:mattermost /mattermost /config.json.save /mattermost/plugins /mattermost/client/plugins

USER mattermost

#Healthcheck to make sure container is ready
HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1

# Configure entrypoint and command
COPY entrypoint.sh /
ENTRYPOINT [""/entrypoint.sh""]
WORKDIR /mattermost
CMD [""mattermost""]

# Expose port 8000 of the container
EXPOSE 8000

# Declare volumes for mount point directories
VOLUME [""/mattermost/data"", ""/mattermost/logs"", ""/mattermost/config"", ""/mattermost/plugins"", ""/mattermost/client/plugins""]
","FROM alpine:3.10

# Some ENV variables
ENV PATH=""/mattermost/bin:${PATH}""
ENV MM_VERSION=5.14.2

# Build argument to set Mattermost edition
ARG edition=enterprise
ARG PUID=2000
ARG PGID=2000
ARG MM_BINARY=


# Install some needed packages
RUN apk add --no-cache \
ca-certificates \
curl \
jq \
libc6-compat \
libffi-dev \
linux-headers \
mailcap \
netcat-openbsd \
xmlsec-dev \
tzdata \
&& rm -rf /tmp/*

# Get Mattermost
RUN mkdir -p /mattermost/data /mattermost/plugins /mattermost/client/plugins \
    && if [ ! -z ""$MM_BINARY"" ]; then curl $MM_BINARY | tar -xvz ; \
      elif [ ""$edition"" = ""team"" ] ; then curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; \
      else curl https://releases.mattermost.com/$MM_VERSION/mattermost-$MM_VERSION-linux-amd64.tar.gz | tar -xvz ; fi \
    && cp /mattermost/config/config.json /config.json.save \
    && rm -rf /mattermost/config/config.json \
    && addgroup -g ${PGID} mattermost \
    && adduser -D -u ${PUID} -G mattermost -h /mattermost -D mattermost \
    && chown -R mattermost:mattermost /mattermost /config.json.save /mattermost/plugins /mattermost/client/plugins

USER mattermost

#Healthcheck to make sure container is ready
HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1

# Configure entrypoint and command
COPY entrypoint.sh /
ENTRYPOINT [""/entrypoint.sh""]
WORKDIR /mattermost
CMD [""mattermost""]

# Expose port 8000 of the container
EXPOSE 8000

# Declare volumes for mount point directories
VOLUME [""/mattermost/data"", ""/mattermost/logs"", ""/mattermost/config"", ""/mattermost/plugins"", ""/mattermost/client/plugins""]
"
2163,057611e28855c712d375384cdad5178d7c29a2c2,adding influxd binary for backing that up too,"adding influxd binary for backing that up too
","FROM factual/docker-cdh5-base

# for mongo 3 tools
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo ""deb http://repo.mongodb.org/apt/ubuntu ""$(lsb_release -sc)""/mongodb-org/3.2 multiverse"" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list

#postgres
ENV PG_VERSION=9.5
RUN echo ""deb http://apt.postgresql.org/pub/repos/apt/ ""$(lsb_release -sc)""-pgdg main"" >> /etc/apt/sources.list.d/pgdg.list
RUN curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc |  apt-key add -


RUN apt-get update && apt-get install -y sudo git-core postgresql-client-$PG_VERSION mysql-client mongodb-org-shell mongodb-org-tools redis-tools

RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD scripts /root/scripts
ADD bootstrap.sh /etc/my_init.d/099_bootstrap
",
415,e1763eed522223449939fb7c4cb74bc9dec80d13,Bumped source to 20200605-95499cd,"Bumped source to 20200605-95499cd
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200605-b4b2bca
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
","FROM docker.pkg.github.com/dock0/amylum_arch/amylum_arch:20200605-95499cd
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --noconfirm s6 execline musl-amylum
ADD service /service
ADD init /init
CMD [""/init""]
"
279,c309cd7a96a5efdb9a9f860137b844b0983e52f2,Bumped source to 20210924-20b87d2,"Bumped source to 20210924-20b87d2
","FROM docker.pkg.github.com/dock0/arch/arch:20210924-72e38fa
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
","FROM docker.pkg.github.com/dock0/arch/arch:20210924-20b87d2
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm base-devel musl vim-minimal tree openssh
ENV EDITOR vim
WORKDIR /opt/build
CMD [""make"", ""local""]
"
13,55c6beff96c6b46afb7cffbb1649d727118eac07,Update base image,"Update base image
","FROM gameontext/docker-liberty-custom:master-9

ENV SERVERDIRNAME room

COPY ./startup.sh /opt/startup.sh
ADD ./servers/gameon-room /opt/ol/wlp/usr/servers/defaultServer/

CMD [""/opt/startup.sh""]

HEALTHCHECK \
  --timeout=10s \
  --start-period=40s \
  CMD wget -q -O /dev/null http://localhost:9080/
","FROM gameontext/docker-liberty-custom:master-14

ENV SERVERDIRNAME room

COPY ./startup.sh /opt/startup.sh
ADD ./servers/gameon-room /opt/ol/wlp/usr/servers/defaultServer/

CMD [""/opt/startup.sh""]

HEALTHCHECK \
  --timeout=10s \
  --start-period=40s \
  CMD wget -q -O /dev/null http://localhost:9080/
"
24,e865c2c7207d6df82e3cc3c28c79672e5b8af6ce,FIXED static file links,"FIXED static file links
","FROM ubuntu:14.10

MAINTAINER Ibrahim Yılmaz (a.k.a dr.linux) <ibrahim@drlinux.org>

# Update Base System

RUN apt-get update
RUN apt-get -y upgrade

# Set Environment Variables

ENV HOME /root
# Set Language Environment

RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
ENV DEBIAN_FRONTEND noninteractive

# Install Basic Packages

RUN apt-get install -y build-essential software-properties-common

RUN apt-get install -y wget curl git man unzip screen


# Install Erlang
WORKDIR /tmp

RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb

RUN dpkg -i erlang-solutions_1.0_all.deb 

RUN apt-get update 

RUN apt-get install -y erlang

RUN apt-get clean

RUN rm -rf /tmp/*

RUN mkdir /source
 

# Install Chicago Boss

RUN git clone https://github.com/ChicagoBoss/ChicagoBoss.git /source/framework/

WORKDIR /source/framework

RUN make

RUN make app PROJECT=chericart

WORKDIR /source/chericart/src/controller

RUN wget https://www.dropbox.com/s/f54wzshkns5cllt/chericart_world_controller.erl?dl=1 -O chericart_world_controller.erl 

WORKDIR /source/chericart/priv/static

RUN wget https://www.dropbox.com/s/f9phqdh57jtmck0/style.css?dl=1 -O style.css

RUN wget https://www.dropbox.com/s/159gkyobxzwukf6/logo.png?dl=1 -O logo.png

WORKDIR /source/chericart/priv/

RUN rm chericart.routes

RUN wget https://www.dropbox.com/s/e3dgozs1dx3fmo4/chericart.routes?dl=1 -O chericart.routes

RUN mkdir -p /source/chericart/src/view/world 

WORKDIR /source/chericart/src/view/world

RUN wget https://www.dropbox.com/s/x6jdhd82et7rs34/hello.html?dl=1 -O hello.html

WORKDIR /source/chericart/

RUN make

RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

EXPOSE 8001

VOLUME [""/source/chericart"",""~/development/chericart""]

CMD [""/source/chericart/init-dev.sh""]


","FROM ubuntu:14.10

MAINTAINER Ibrahim Yılmaz (a.k.a dr.linux) <ibrahim@drlinux.org>

# Update Base System

RUN apt-get update
RUN apt-get -y upgrade

# Set Environment Variables

ENV HOME /root
# Set Language Environment

RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
ENV DEBIAN_FRONTEND noninteractive

# Install Basic Packages

RUN apt-get install -y build-essential software-properties-common

RUN apt-get install -y wget curl git man unzip screen


# Install Erlang
WORKDIR /tmp

RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb

RUN dpkg -i erlang-solutions_1.0_all.deb 

RUN apt-get update 

RUN apt-get install -y erlang

RUN apt-get clean

RUN rm -rf /tmp/*

RUN mkdir /source
 

# Install Chicago Boss

RUN git clone https://github.com/ChicagoBoss/ChicagoBoss.git /source/framework/

WORKDIR /source/framework

RUN make

RUN make app PROJECT=chericart

WORKDIR /source/chericart/priv/static

RUN wget https://gist.githubusercontent.com/drlinux/eef860ddc8f6065d31a4/raw/3ea14d46380b5a5629da2940502e494be0270c55/style.css -O style.css

RUN wget https://www.dropbox.com/s/159gkyobxzwukf6/logo.png?dl=1 -O logo.png

WORKDIR /source/chericart/priv

RUN rm *.routes

RUN touch chericart.routes

RUN echo '{""/"", [{controller, ""world""}, {action, ""hello""}]}.' >> chericart.routes

RUN cat chericart.routes

RUN mkdir -p /source/chericart/src/view/world 

WORKDIR /source/chericart/src/view/world

RUN wget https://gist.githubusercontent.com/drlinux/9be5ec9069a003c297b0/raw/e9ec1faa28221e8a1eb8a03a9754e5700cecdd45/hello.html -O hello.html

WORKDIR /source/chericart/src/controller

RUN wget https://gist.githubusercontent.com/drlinux/d296059b6f65dd04bc4f/raw/e66cf6a718428c1569af368f660bfe0dada8ab49/chericart_world_controller.erl -O chericart_world_controller.erl

WORKDIR /source/chericart/

RUN make

RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

EXPOSE 8001

VOLUME [""/source/chericart"",""~/development/chericart""]

CMD [""/source/chericart/init-dev.sh""]


"
2153,5961387c86109a381e4d6402f6a410313930c78e,Bumped source to 20201219-2f46b55,"Bumped source to 20201219-2f46b55
","FROM docker.pkg.github.com/dock0/arch/arch:20201219-ca7e1b3
MAINTAINER akerl <me@lesaker.org>
RUN pacman -S --needed --noconfirm \
    strace tcpdump openbsd-netcat socat htop \
    nmap dnsutils net-tools iputils openssh \
    screen tmux man-db lsof psmisc git tree \
    vim-minimal inetutils
",
125,e3ac2acb7ab165ddb802effafdd058eabb5c7cbb,clients/android: update gomobile to fix docker build,"clients/android: update gomobile to fix docker build

Due to a change in the Android NDK (starting from r16), building the
docker container fails with an error during the installation of
gomobile:
    fatal error: 'stdlib.h' file not found

This issue was addressed in more recent versions of gomobile, which
are compatible with the new NDK.
See https://github.com/golang/go/issues/21802

This CL simply updates gomobile to the most recent commit.

Change-Id: I87c468c34de441bc6acd40b717d1d950014e5a99
","# Copyright 2017 The Camlistore Authors.

FROM openjdk:8-jdk

MAINTAINER camlistore <camlistore@googlegroups.com>

RUN echo ""Adding gopher user and group"" \
&& groupadd --system --gid 1000 gopher \
&& useradd --system --gid gopher --uid 1000 --shell /bin/bash --create-home gopher \
&& mkdir /home/gopher/.gradle \
&& chown --recursive gopher:gopher /home/gopher

# To enable running android tools such as aapt
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y lib32z1 lib32stdc++6
# For Go:
RUN apt-get -y --no-install-recommends install curl gcc
RUN apt-get -y --no-install-recommends install ca-certificates libc6-dev git

USER gopher
VOLUME ""/home/gopher/.gradle""
ENV GOPHER /home/gopher

# Get android sdk, ndk, and rest of the stuff needed to build the android app.
WORKDIR $GOPHER
RUN mkdir android-sdk
ENV ANDROID_HOME $GOPHER/android-sdk
WORKDIR $ANDROID_HOME
RUN curl -O https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
RUN echo '444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0  sdk-tools-linux-3859397.zip' | sha256sum -c
RUN unzip sdk-tools-linux-3859397.zip
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager --update
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'platforms;android-17'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;26.0.0'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;android;m2repository'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'ndk-bundle'

# Get Go stable release
WORKDIR $GOPHER
RUN curl -O https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
RUN echo '1862f4c3d3907e59b04a757cfda0ea7aa9ef39274af99a784f5be843c80c6772  go1.8.3.linux-amd64.tar.gz' | sha256sum -c
RUN tar -xzf go1.8.3.linux-amd64.tar.gz
ENV GOPATH $GOPHER
ENV GOROOT $GOPHER/go
ENV PATH $PATH:$GOROOT/bin:$GOPHER/bin

# Get gomobile
RUN go get -u golang.org/x/mobile/cmd/gomobile
WORKDIR $GOPATH/src/golang.org/x/mobile/cmd/gomobile
RUN git reset --hard 44a54e9b78442c0a8233ee2d552c61da88e053c3
RUN go install

# init gomobile
RUN gomobile init -ndk $ANDROID_HOME/ndk-bundle

CMD [""/bin/bash""]
","# Copyright 2017 The Camlistore Authors.

FROM openjdk:8-jdk

MAINTAINER camlistore <camlistore@googlegroups.com>

RUN echo ""Adding gopher user and group"" \
&& groupadd --system --gid 1000 gopher \
&& useradd --system --gid gopher --uid 1000 --shell /bin/bash --create-home gopher \
&& mkdir /home/gopher/.gradle \
&& chown --recursive gopher:gopher /home/gopher

# To enable running android tools such as aapt
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y lib32z1 lib32stdc++6
# For Go:
RUN apt-get -y --no-install-recommends install curl gcc
RUN apt-get -y --no-install-recommends install ca-certificates libc6-dev git

USER gopher
VOLUME ""/home/gopher/.gradle""
ENV GOPHER /home/gopher

# Get android sdk, ndk, and rest of the stuff needed to build the android app.
WORKDIR $GOPHER
RUN mkdir android-sdk
ENV ANDROID_HOME $GOPHER/android-sdk
WORKDIR $ANDROID_HOME
RUN curl -O https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
RUN echo '444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0  sdk-tools-linux-3859397.zip' | sha256sum -c
RUN unzip sdk-tools-linux-3859397.zip
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager --update
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'platforms;android-17'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;26.0.0'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'extras;android;m2repository'
RUN echo y | $ANDROID_HOME/tools/bin/sdkmanager 'ndk-bundle'

# Get Go stable release
WORKDIR $GOPHER
RUN curl -O https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
RUN echo '1862f4c3d3907e59b04a757cfda0ea7aa9ef39274af99a784f5be843c80c6772  go1.8.3.linux-amd64.tar.gz' | sha256sum -c
RUN tar -xzf go1.8.3.linux-amd64.tar.gz
ENV GOPATH $GOPHER
ENV GOROOT $GOPHER/go
ENV PATH $PATH:$GOROOT/bin:$GOPHER/bin

# Get gomobile
RUN go get -u golang.org/x/mobile/cmd/gomobile
WORKDIR $GOPATH/src/golang.org/x/mobile/cmd/gomobile
RUN git reset --hard c0beac360cc13173963df8872fe4b0f2542cb85b
RUN go install

# init gomobile
RUN gomobile init -ndk $ANDROID_HOME/ndk-bundle

CMD [""/bin/bash""]
"
306,93aa395da88c199cbe2de62146892a4c0c7f9d9a,Fixed remove opt.,"Fixed remove opt.
","# Based on Miniconda and optmized for CPU
# https://github.com/ContinuumIO/docker-images/blob/master/miniconda3/debian/Dockerfile
# https://conda.io/projects/conda/en/latest/commands.html#conda-vs-pip-vs-virtualenv-commands
# 
# docker build --rm=true --no-cache=true -t markpeng/deepml-cpu -f ./Dockerfile .
# docker run --rm -p 8888:8888 -p 6006:6006 --name deepml-cpu -it markpeng/deepml-cpu bash
# 

FROM guitarmind/miniconda:py-3.8.5

LABEL MAINTAINER=""Mark Peng""

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Disabling SSL verification
ENV SSL_NO_VERIFY=1
ENV PATH=/opt/conda/bin:$PATH

RUN APT_INSTALL=""apt-get install -y --no-install-recommends"" && \
    PIP_INSTALL=""pip --no-cache-dir install --upgrade --default-timeout=100"" && \
    GIT_CLONE=""git clone --depth 10"" && \

# ==================================================================
# System Packages & Tools
# ------------------------------------------------------------------

    apt-get update --fix-missing && \
    apt-get clean && \

# ==================================================================
# Essesntial Packages
# ------------------------------------------------------------------

    conda install -y \
        psutil \
        Cython \
        numpy \
        scipy \
        pandas \
        scikit-learn \
        matplotlib \
        seaborn \
        cmake==3.14.0 \
        && \

    # Jupyter Notebook
    conda install -c conda-forge -y \
        jupyter \
        jupyter_contrib_nbextensions \
        jupyter_nbextensions_configurator \
        parso==0.8.1 \
        && \
    jupyter contrib nbextension install --user && \
    jupyter nbextension enable code_prettify/code_prettify && \
    jupyter nbextension enable collapsible_headings/main && \
    jupyter nbextension enable toggle_all_line_numbers/main && \

# ==================================================================
# Tensorflow
# ------------------------------------------------------------------

    conda install -y \
        tensorflow==2.3.0 \
        && \

# ==================================================================
# PyTorch
# ------------------------------------------------------------------

    conda install -y \
        pytorch==1.7.1 \
        torchvision torchaudio cpuonly -c pytorch && \
    conda install -c conda-forge -y \
        pytorch-lightning \
        && \

    $PIP_INSTALL \
        torch_optimizer \
        && \

# ==================================================================
# OpenCV
# ------------------------------------------------------------------

    apt-get install -y build-essential && \
    $GIT_CLONE --branch 4.3.0 https://github.com/opencv/opencv ~/opencv && \
    mkdir -p ~/opencv/build && cd ~/opencv/build && \
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
          -D CMAKE_INSTALL_PREFIX=/usr/local \
          -D WITH_IPP=OFF \
          -D WITH_CUDA=OFF \
          -D WITH_OPENCL=OFF \
          -D BUILD_TESTS=OFF \
          -D BUILD_PERF_TESTS=OFF \
          -D PYTHON3_LIBRARY=/opt/conda/lib/libpython3.8.so \
          -D PYTHON3_INCLUDE_DIR=/opt/conda/include/python3.8 \
          -D PYTHON3_EXECUTABLE=/opt/conda/bin/python \
          -D PYTHON3_PACKAGES_PATH=/opt/conda/lib/python3.8/site-packages \
          .. && \
    make -j""$(nproc)"" install && \
    ln -s /usr/local/include/opencv4/opencv2 /usr/local/include/opencv2 && \
    apt-get remove -y build-essential && \

# ==================================================================
# Additional Packages
# ------------------------------------------------------------------

    conda install -c conda-forge -y \
        gensim \
        transformers \
        optuna \
        yellowbrick \
        plotly \
        shap \
        gym \
        && \

    $PIP_INSTALL \
        zhconv \
        iterative-stratification \
        && \

    # LightGBM, Xgboost
    conda install -c conda-forge -y lightgbm xgboost \
        && \

# ==================================================================
# Config & Cleanup
# ------------------------------------------------------------------
    ldconfig && \
    apt-get clean && \
    apt-get autoremove && \
    rm -rf /tmp/* && \
    rm -rf /var/cache/apk/* && \
    rm -r /root/.cache

ENV TZ=Asia/Taipei
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 8888 6006 8090
WORKDIR /workspace
","# Based on Miniconda and optmized for CPU
# https://github.com/ContinuumIO/docker-images/blob/master/miniconda3/debian/Dockerfile
# https://conda.io/projects/conda/en/latest/commands.html#conda-vs-pip-vs-virtualenv-commands
# 
# docker build --rm=true --no-cache=true -t markpeng/deepml-cpu -f ./Dockerfile .
# docker run --rm -p 8888:8888 -p 6006:6006 --name deepml-cpu -it markpeng/deepml-cpu bash
# 

FROM guitarmind/miniconda:py-3.8.5

LABEL MAINTAINER=""Mark Peng""

ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Disabling SSL verification
ENV SSL_NO_VERIFY=1
ENV PATH=/opt/conda/bin:$PATH

RUN APT_INSTALL=""apt-get install -y --no-install-recommends"" && \
    PIP_INSTALL=""pip --no-cache-dir install --upgrade --default-timeout=100"" && \
    GIT_CLONE=""git clone --depth 10"" && \

# ==================================================================
# System Packages & Tools
# ------------------------------------------------------------------

    apt-get update --fix-missing && \
    apt-get clean && \

# ==================================================================
# Essesntial Packages
# ------------------------------------------------------------------

    conda install -y \
        psutil \
        Cython \
        numpy \
        scipy \
        pandas \
        scikit-learn \
        matplotlib \
        seaborn \
        cmake==3.14.0 \
        && \

    # Jupyter Notebook
    conda install -c conda-forge -y \
        jupyter \
        jupyter_contrib_nbextensions \
        jupyter_nbextensions_configurator \
        parso==0.8.1 \
        && \
    jupyter contrib nbextension install --user && \
    jupyter nbextension enable code_prettify/code_prettify && \
    jupyter nbextension enable collapsible_headings/main && \
    jupyter nbextension enable toggle_all_line_numbers/main && \

# ==================================================================
# Tensorflow
# ------------------------------------------------------------------

    conda install -y \
        tensorflow==2.3.0 \
        && \

# ==================================================================
# PyTorch
# ------------------------------------------------------------------

    conda install -y \
        pytorch==1.7.1 \
        torchvision torchaudio cpuonly -c pytorch && \
    conda install -c conda-forge -y \
        pytorch-lightning \
        && \

    $PIP_INSTALL \
        torch_optimizer \
        && \

# ==================================================================
# OpenCV
# ------------------------------------------------------------------

    apt-get install -y build-essential && \
    $GIT_CLONE --branch 4.3.0 https://github.com/opencv/opencv ~/opencv && \
    mkdir -p ~/opencv/build && cd ~/opencv/build && \
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
          -D CMAKE_INSTALL_PREFIX=/usr/local \
          -D WITH_IPP=OFF \
          -D WITH_CUDA=OFF \
          -D WITH_OPENCL=OFF \
          -D BUILD_TESTS=OFF \
          -D BUILD_PERF_TESTS=OFF \
          -D PYTHON3_LIBRARY=/opt/conda/lib/libpython3.8.so \
          -D PYTHON3_INCLUDE_DIR=/opt/conda/include/python3.8 \
          -D PYTHON3_EXECUTABLE=/opt/conda/bin/python \
          -D PYTHON3_PACKAGES_PATH=/opt/conda/lib/python3.8/site-packages \
          .. && \
    make -j""$(nproc)"" install && \
    ln -s /usr/local/include/opencv4/opencv2 /usr/local/include/opencv2 && \
    DEBIAN_FRONTEND=noninteractive apt-get remove -y build-essential && \

# ==================================================================
# Additional Packages
# ------------------------------------------------------------------

    conda install -c conda-forge -y \
        gensim \
        transformers \
        optuna \
        yellowbrick \
        plotly \
        shap \
        gym \
        && \

    $PIP_INSTALL \
        zhconv \
        iterative-stratification \
        && \

    # LightGBM, Xgboost
    conda install -c conda-forge -y lightgbm xgboost \
        && \

# ==================================================================
# Config & Cleanup
# ------------------------------------------------------------------
    ldconfig && \
    apt-get clean -y && \
    apt-get autoremove -y && \
    rm -rf /tmp/* && \
    rm -rf /var/cache/apk/* && \
    rm -r /root/.cache

ENV TZ=Asia/Taipei
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 8888 6006 8090
WORKDIR /workspace
"
190,914e14fe0c8ba8f37b585851d77529b60259fe72,Updated Atlassian Bamboo master branch to latest version 5.15.2,"Updated Atlassian Bamboo master branch to latest version 5.15.2
","FROM openjdk:8

# Setup useful environment variables
ENV BAMBOO_HOME     /var/atlassian/bamboo
ENV BAMBOO_INSTALL  /opt/atlassian/bamboo
ENV BAMBOO_VERSION  5.15.0.1

# Install Atlassian Bamboo and helper tools and setup initial home
# directory structure.
RUN set -x \
    && apt-get update --quiet \
    && apt-get install --quiet --yes --no-install-recommends xmlstarlet \
    && apt-get install --quiet --yes --no-install-recommends -t jessie-backports libtcnative-1 \
    && apt-get clean \
    && mkdir -p               ""${BAMBOO_HOME}/lib"" \
    && chmod -R 700           ""${BAMBOO_HOME}"" \
    && chown -R daemon:daemon ""${BAMBOO_HOME}"" \
    && mkdir -p               ""${BAMBOO_INSTALL}"" \
    && curl -Ls               ""https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-${BAMBOO_VERSION}.tar.gz"" | tar -zx --directory  ""${BAMBOO_INSTALL}"" --strip-components=1 --no-same-owner \
    && curl -Ls                ""https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz"" | tar -xz --directory ""${BAMBOO_INSTALL}/lib"" --strip-components=1 --no-same-owner ""mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar"" \
    && chmod -R 700           ""${BAMBOO_INSTALL}"" \
    && chown -R daemon:daemon ""${BAMBOO_INSTALL}"" \
    && sed --in-place         's/^# umask 0027$/umask 0027/g' ""${BAMBOO_INSTALL}/bin/setenv.sh"" \
    && xmlstarlet             ed --inplace \
        --delete              ""Server/Service/Engine/Host/@xmlValidation"" \
        --delete              ""Server/Service/Engine/Host/@xmlNamespaceAware"" \
                              ""${BAMBOO_INSTALL}/conf/server.xml"" \
    && touch -d ""@0""          ""${BAMBOO_INSTALL}/conf/server.xml""


# Use the default unprivileged account. This could be considered bad practice
# on systems where multiple processes end up being executed by 'daemon' but
# here we only ever run one process anyway.
USER daemon:daemon

# Expose default HTTP and SSH ports.
EXPOSE 8085 54663

# Set volume mount points for installation and home directory. Changes to the
# home directory needs to be persisted as well as parts of the installation
# directory due to eg. logs.
VOLUME [""/var/atlassian/bamboo"",""/opt/atlassian/bamboo/logs""]

# Set the default working directory as the Bamboo home directory.
WORKDIR /var/atlassian/bamboo

COPY ""docker-entrypoint.sh"" ""/""
ENTRYPOINT [""/docker-entrypoint.sh""]

# Run Atlassian Bamboo as a foreground process by default.
CMD [""/opt/atlassian/bamboo/bin/start-bamboo.sh"", ""-fg""]
","FROM openjdk:8

# Setup useful environment variables
ENV BAMBOO_HOME     /var/atlassian/bamboo
ENV BAMBOO_INSTALL  /opt/atlassian/bamboo
ENV BAMBOO_VERSION  5.15.2

# Install Atlassian Bamboo and helper tools and setup initial home
# directory structure.
RUN set -x \
    && apt-get update --quiet \
    && apt-get install --quiet --yes --no-install-recommends xmlstarlet \
    && apt-get install --quiet --yes --no-install-recommends -t jessie-backports libtcnative-1 \
    && apt-get clean \
    && mkdir -p               ""${BAMBOO_HOME}/lib"" \
    && chmod -R 700           ""${BAMBOO_HOME}"" \
    && chown -R daemon:daemon ""${BAMBOO_HOME}"" \
    && mkdir -p               ""${BAMBOO_INSTALL}"" \
    && curl -Ls               ""https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-${BAMBOO_VERSION}.tar.gz"" | tar -zx --directory  ""${BAMBOO_INSTALL}"" --strip-components=1 --no-same-owner \
    && curl -Ls                ""https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz"" | tar -xz --directory ""${BAMBOO_INSTALL}/lib"" --strip-components=1 --no-same-owner ""mysql-connector-java-5.1.40/mysql-connector-java-5.1.40-bin.jar"" \
    && chmod -R 700           ""${BAMBOO_INSTALL}"" \
    && chown -R daemon:daemon ""${BAMBOO_INSTALL}"" \
    && sed --in-place         's/^# umask 0027$/umask 0027/g' ""${BAMBOO_INSTALL}/bin/setenv.sh"" \
    && xmlstarlet             ed --inplace \
        --delete              ""Server/Service/Engine/Host/@xmlValidation"" \
        --delete              ""Server/Service/Engine/Host/@xmlNamespaceAware"" \
                              ""${BAMBOO_INSTALL}/conf/server.xml"" \
    && touch -d ""@0""          ""${BAMBOO_INSTALL}/conf/server.xml""


# Use the default unprivileged account. This could be considered bad practice
# on systems where multiple processes end up being executed by 'daemon' but
# here we only ever run one process anyway.
USER daemon:daemon

# Expose default HTTP and SSH ports.
EXPOSE 8085 54663

# Set volume mount points for installation and home directory. Changes to the
# home directory needs to be persisted as well as parts of the installation
# directory due to eg. logs.
VOLUME [""/var/atlassian/bamboo"",""/opt/atlassian/bamboo/logs""]

# Set the default working directory as the Bamboo home directory.
WORKDIR /var/atlassian/bamboo

COPY ""docker-entrypoint.sh"" ""/""
ENTRYPOINT [""/docker-entrypoint.sh""]

# Run Atlassian Bamboo as a foreground process by default.
CMD [""/opt/atlassian/bamboo/bin/start-bamboo.sh"", ""-fg""]
"
390,f4da0387ab6b09967617076de16799765e43c386,Upgrade to node v10 (#7417),"Upgrade to node v10 (#7417)

Need to add python and build-essential packages or the `yarn install --pure-lockfile`
fails while trying to invoke `detect-libc prebuild-install || node-gyp rebuild`.","FROM node:8-slim

# Install node_modules into a different directory to avoid npm/npm#9863.
RUN mkdir -p /srv/node
COPY package.json /srv/node/
COPY yarn.lock /srv/node/
WORKDIR /srv/node

# This file has been downloaded from: https://dl.yarnpkg.com/debian/pubkey.gpg
COPY docker/etc/pki/yarnpkg.gpg.key /etc/pki/yarnpkg.gpg.key

RUN buildDeps=' \
    git \
    yarn \
    ' && \
    # `apt-transport-https` is required to use https deb repositories
    apt-get update -y && \
    apt-get install -y --no-install-recommends apt-transport-https && \
    # configure Yarn repository, see: https://yarnpkg.com/en/docs/install#linux-tab
    apt-key add /etc/pki/yarnpkg.gpg.key && \
    echo ""deb https://dl.yarnpkg.com/debian/ stable main"" > /etc/apt/sources.list.d/yarn.list && \
    # the base image installs yarn, let's be sure we use ours
    rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg && \
    # install deps
    apt-get update -y && \
    apt-get install -y --no-install-recommends $buildDeps && \
    yarn install --pure-lockfile && \
    # cleanup
    # apt-get purge -y $buildDeps && \
    rm -rf /var/lib/apt/lists/*

COPY . /srv/code/
WORKDIR /srv/code

# The V2 Pipeline expects version.json to be located in /app/
# As a temporary measure symlink to the version.json generated by Circle-CI
RUN mkdir /app && ln -s /srv/code/version.json /app/version.json

# Replace the local node_modules with the ones we installed above.
RUN rm -rf node_modules
RUN ln -s /srv/node/node_modules

ENV SERVER_HOST 0.0.0.0
ENV SERVER_PORT 4000

CMD yarn start
","FROM node:10-slim

# Install node_modules into a different directory to avoid npm/npm#9863.
RUN mkdir -p /srv/node
COPY package.json /srv/node/
COPY yarn.lock /srv/node/
WORKDIR /srv/node

# This file has been downloaded from: https://dl.yarnpkg.com/debian/pubkey.gpg
COPY docker/etc/pki/yarnpkg.gpg.key /etc/pki/yarnpkg.gpg.key

RUN buildDeps=' \
    git \
    yarn \
    python \
    build-essential \
    ' && \
    # `apt-transport-https` is required to use https deb repositories
    apt-get update -y && \
    apt-get install -y --no-install-recommends apt-transport-https && \
    # configure Yarn repository, see: https://yarnpkg.com/en/docs/install#linux-tab
    apt-key add /etc/pki/yarnpkg.gpg.key && \
    echo ""deb https://dl.yarnpkg.com/debian/ stable main"" > /etc/apt/sources.list.d/yarn.list && \
    # the base image installs yarn, let's be sure we use ours
    rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg && \
    # install deps
    apt-get update -y && \
    apt-get install -y --no-install-recommends $buildDeps && \
    yarn install --pure-lockfile && \
    # cleanup
    # apt-get purge -y $buildDeps && \
    rm -rf /var/lib/apt/lists/*

COPY . /srv/code/
WORKDIR /srv/code

# The V2 Pipeline expects version.json to be located in /app/
# As a temporary measure symlink to the version.json generated by Circle-CI
RUN mkdir /app && ln -s /srv/code/version.json /app/version.json

# Replace the local node_modules with the ones we installed above.
RUN rm -rf node_modules
RUN ln -s /srv/node/node_modules

ENV SERVER_HOST 0.0.0.0
ENV SERVER_PORT 4000

CMD yarn start
"
2141,9b9661d88291da9cdff8ac838dada1eb8f2dd074,Writing and simplifying installation directions,"Writing and simplifying installation directions
","#Creates a ConnextCMS/KeystoneJS installation in Ubuntu container with user/password connextcms/password
#This version of the Dockerfile leverages a pre-built git hub repository that is faster and lighter
#weight than building KeystoneJS from source.

#INSTRUCTIONS
#Build docker image as 'connextcms':
#docker build -t connextcms .

#Run the MongoDB image
#Map port 27017 on the image to 3500 on the host.
#docker run --name mongo -d -p 3500:27017 --rm -v <your path>/db:/data/db mongo

#Execute my keystonejs docker image
#docker container run --name connextcms --link mongo:mongo -v <your path>/theme:/home/connextcms/theme --rm -it connextcms bash


#IMAGE BUILD COMMANDS
FROM ubuntu:16.10
MAINTAINER Chris Troutner <chris.troutner@gmail.com>

#Update the OS and install any OS packages needed.
RUN apt-get update
RUN apt-get install -y sudo

#Create the user 'connextcms' and add them to the sudo group.
RUN useradd -ms /bin/bash connextcms
RUN adduser connextcms sudo

#Set password to 'password' change value below if you want a different password
RUN echo connextcms:password | chpasswd

#Set the working directory to be the connextcms home directory
WORKDIR /home/connextcms

#Install KeystoneJS Dependencies
RUN apt-get install -y git
RUN apt-get install -y curl
RUN apt-get install -y nano
#RUN apt-get install -y make
#RUN apt-get install -y g++
#RUN apt-get install -y python

#Install Node and NPM
RUN curl -sL https://deb.nodesource.com/setup_4.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
RUN npm install -g npm

#Create a volume for persisting MongoDB data.
VOLUME /data/db

#Log into the shell as the newly created user
USER connextcms

#Create a directory for customizing the new site.
VOLUME /home/connextcms/theme

RUN git clone https://github.com/christroutner/keystone4-compiled
RUN git clone https://github.com/skagitpublishing/ConnextCMS
#RUN git clone https://github.com/skagitpublishing/plugin-template-connextcms
RUN mv keystone4-compiled keystone4
RUN mv ConnextCMS connextCMS

#RUN chmod 775 ~/theme/finalsetup
COPY finalsetup ~
RUN finalsetup

#RUN cd connextCMS
#RUN connextCMS/copy-keystone
#RUN connextCMS/merge-connextcms-keystone
#RUN cd ../myCMS
#RUN npm install
#RUN cp ../theme/keystone.js .

",