Last active
          April 10, 2016 14:42 
        
      - 
      
- 
        Save jonasschneider/4d0dd8228145f599071fa0a9206173e6 to your computer and use it in GitHub Desktop. 
    docker-compose bug test case
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | app: | |
| build: . | |
| command: bash | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM ubuntu:14.04 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | all: bash test.sh | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | set -eux | |
| (for i in $(seq 1 30); do echo hi | docker-compose run app cat; done) > out | |
| lines=$(cat out | wc -l) | |
| echo "Got $lines" | |
| if [ "$lines" -eq 30 ]; then | |
| echo "OK" | |
| else | |
| echo "Expected 30 lines, but got $lines" | |
| exit 1 | |
| fi | 
      
      
  Author
  
  
        
      
            jonasschneider
  
      
      
      commented 
        Apr 10, 2016 
      
    
  
Usually outputs around ~22 lines for me, instead of the expected 30.
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment