This repository was archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dockerfile. able to unit test on docker container
- Loading branch information
1 parent
0f15981
commit 2779c2e
Showing
4 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM continuumio/miniconda3 | ||
WORKDIR /usr/src/argo-database | ||
|
||
# copies everything from host dir to container work dir | ||
COPY . . | ||
#need to install netcdf libraries | ||
RUN apt-get update && apt-get --assume-yes install libhdf5-serial-dev netcdf-bin libnetcdf-dev | ||
# install python libraries | ||
RUN pip install -r requirements.txt | ||
#--net=host seems to work. use network_mode: "host" in docker-compose. | ||
|
||
# run test scripts | ||
WORKDIR /usr/src/argo-database/test | ||
CMD [ "python", "./unitTest.py" ] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
#!/usr/bin/env python3 | ||
""" | ||
Created on Mon Nov 19 15:08:59 2018 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
certifi==2018.10.15 | ||
cftime==1.0.2.1 | ||
netCDF4==1.4.1 | ||
numpy==1.15.4 | ||
pandas==0.23.4 | ||
pymongo==3.7.2 | ||
python-dateutil==2.7.5 | ||
pytz==2018.7 | ||
scipy==1.1.0 | ||
six==1.11.0 | ||
netCDF4==1.4.2 |
This file contains 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