CI dockerfiles with and without mpi

This commit is contained in:
Peter Zhokhov
2018-10-31 11:27:45 -07:00
parent d1f7d12743
commit c248bf9a46
3 changed files with 23 additions and 6 deletions

View File

@@ -5,10 +5,11 @@ python:
services:
- docker
install:
- pip install flake8
- docker build . -t baselines-test
env:
- DOCKER_SUFFIX=py36-nompi
- DOCKER_SUFFIX=py36-mpi
install: "" # so travis doesn't do pip install requirements.txt
script:
- flake8 . --show-source --statistics
- docker run baselines-test pytest -v .
- flake8 . --show-source --statistics
- docker build -f test.dockerfile.${DOCKER_SUFFIX} -t baselines-test .

View File

@@ -1,6 +1,6 @@
FROM python:3.6
# RUN apt-get -y update && apt-get -y install git wget python-dev python3-dev libopenmpi-dev python-pip zlib1g-dev cmake python-opencv
RUN apt-get -y update && apt-get -y install ffmpeg libopenmpi-dev
ENV CODE_DIR /root/code
COPY . $CODE_DIR/baselines

View File

@@ -0,0 +1,16 @@
FROM python:3.6
RUN apt-get -y update && apt-get -y install ffmpeg
ENV CODE_DIR /root/code
COPY . $CODE_DIR/baselines
WORKDIR $CODE_DIR/baselines
# Clean up pycache and pyc files
RUN rm -rf __pycache__ && \
find . -name "*.pyc" -delete && \
pip install tensorflow && \
pip install -e .[test]
CMD /bin/bash