Skip to content

Commit

Permalink
added run in docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Bak committed Jun 10, 2021
1 parent a19dfb7 commit c6c3de3
Show file tree
Hide file tree
Showing 5 changed files with 9,284 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@ services:
- docker

script:
# build Docker container
- docker build -t nnenum .
- ./run_tests.sh

# run tests
- docker run nnenum
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ COPY ./requirements.txt /work/requirements.txt
WORKDIR /work

# install python package dependencies
RUN pip install --upgrade pip
RUN pip3 install -r requirements.txt

# set environment variables
ENV PYTHONPATH=$PYTHONPATH:/work/nnenum
ENV PYTHONPATH=$PYTHONPATH:/work/src
ENV OPENBLAS_NUM_THREADS=1
ENV OMP_NUM_THREADS=1

Expand Down
Loading

0 comments on commit c6c3de3

Please sign in to comment.