-
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
Showing
4 changed files
with
64 additions
and
2 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,32 @@ | ||
FROM ubuntu:18.04 | ||
ENV PATH="/root/miniconda3/bin:${PATH}" | ||
ARG PATH="/root/miniconda3/bin:${PATH}" | ||
RUN apt-get update | ||
|
||
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget \ | ||
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | ||
&& mkdir /root/.conda \ | ||
&& bash Miniconda3-latest-Linux-x86_64.sh -b \ | ||
&& rm -f Miniconda3-latest-Linux-x86_64.sh | ||
RUN conda --version | ||
|
||
RUN conda clean -a | ||
|
||
RUN echo $CONDA_PREFIX | ||
|
||
COPY environment.yml . | ||
|
||
COPY run.py . | ||
|
||
RUN ls | ||
|
||
RUN conda env create -f environment.yml | ||
|
||
SHELL ["conda", "run", "-n", "test2", "/bin/bash", "-c"] | ||
|
||
RUN python -m pip install --ignore-installed pyclowder | ||
|
||
|
||
CMD ["conda", "run", "--no-capture-output", "-n", "test2", "python","-u", "run.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: test2 | ||
channels: | ||
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python==3.6.12 | ||
- tensorflow=1.14.0 | ||
- keras | ||
- gdal | ||
- h5py | ||
- nomkl | ||
- pyshp | ||
- Shapely | ||
- scipy | ||
- scikit-learn | ||
- scikit-image==0.16.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pyclowder | ||
from osgeo import gdal | ||
import sys | ||
import time | ||
|
||
|
||
def main(): | ||
print(sys.version) | ||
print('done') | ||
time.sleep(60*60) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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