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.
- Loading branch information
1 parent
2779c2e
commit 8b056de
Showing
12 changed files
with
29 additions
and
16 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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
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 cd /usr/src/argo-database | ||
WORKDIR /usr/src/argo-database | ||
|
||
# run test scripts | ||
WORKDIR /usr/src/argo-database/test | ||
CMD [ "python", "./unitTest.py" ] | ||
RUN groupadd -g 998 argouser && \ | ||
useradd -r -u 998 -g argouser argouser | ||
# copies requirements.txt from host dir to container work dir | ||
COPY ./requirements.txt ./requirements.txt | ||
#need to install netcdf libraries and cron | ||
RUN apt-get update && \ | ||
apt-get --assume-yes install libhdf5-serial-dev netcdf-bin libnetcdf-dev nano && \ | ||
pip install -r requirements.txt | ||
#CMD echo 'we ah doin da test' `date` > cron.log | ||
USER argouser | ||
CMD cd /usr/src/argo-database/test && /opt/conda/bin/python testTmpFunctions.py >> ./../cron.log 2>&1 | ||
#docker build -t argo-db:1.0 | ||
#docker run --net=host -v /home/tyler/Desktop/argo-database:/usr/src/argo-database/ argo-db:1.0 |
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
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,3 @@ | ||
# m h dom mon dow command | ||
* * * * * root cd /usr/src/argo-database/test && echo 'doin da test' >> ./../cron.log 2>&1 | ||
#* * * * * root cd /usr/src/argo-database/test && /opt/conda/bin/python testTmpFunctions.py >> ./../cron.log 2>&1 |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.