Skip to content

Commit

Permalink
docker tests optimization
Browse files Browse the repository at this point in the history
s
  • Loading branch information
adgaudio committed Nov 23, 2015
1 parent 478c483 commit fc98fbb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.test-py2
Expand Up @@ -2,7 +2,7 @@ FROM python:2

WORKDIR /stolos/
ADD ./setup.py /stolos/setup.py
ADD ./bin /stolos/bin
ADD ./bin/stolos-submit /stolos/bin/stolos-submit
RUN cd /stolos/ && pip install .[testing,redis] && python setup.py develop
# assumes code base mounted as volume
CMD /stolos/bin/test_stolos
2 changes: 1 addition & 1 deletion Dockerfile.test-py3
Expand Up @@ -2,7 +2,7 @@ FROM python:3

WORKDIR /stolos/
ADD ./setup.py /stolos/setup.py
ADD ./bin /stolos/bin
ADD ./bin/stolos-submit /stolos/bin/stolos-submit
RUN cd /stolos/ && pip install .[testing,redis] && python setup.py develop
# assumes code base mounted as volume
CMD /stolos/bin/test_stolos
5 changes: 4 additions & 1 deletion bin/test_stolos_in_docker
Expand Up @@ -22,8 +22,11 @@ echo
docker-compose ps


echo
echo
echo to get more details, try
echo
echo 'docker-compose logs test-py2 2>&1 |less -R'
echo 'docker-compose logs test-py3 2>&1 |less -R'

(docker-compose kill)
docker-compose kill

0 comments on commit fc98fbb

Please sign in to comment.