Skip to content

Instantly share code, notes, and snippets.

@jonasschneider
Last active April 10, 2016 14:42
Show Gist options
  • Save jonasschneider/4d0dd8228145f599071fa0a9206173e6 to your computer and use it in GitHub Desktop.
Save jonasschneider/4d0dd8228145f599071fa0a9206173e6 to your computer and use it in GitHub Desktop.
docker-compose bug test case
app:
build: .
command: bash
FROM ubuntu:14.04
all: bash test.sh
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
@jonasschneider
Copy link
Author

$  docker-compose --version
docker-compose version 1.7.0rc1, build 1ad8866
$  docker-machine --version
docker-machine version 0.7.0-rc2, build 60dbecb
$  docker --version
Docker version 1.11.0-rc3, build eabf97a

@jonasschneider
Copy link
Author

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