-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get important image making files from noah
- Loading branch information
Showing
3 changed files
with
30 additions
and
14 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,22 +1,30 @@ | ||
FROM us.gcr.io/vcm-ml/fv3gfs-compiled-default:latest | ||
FROM jupyter/base-notebook | ||
|
||
|
||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-netcdf4 \ | ||
cython3 | ||
ENV ENVIRONMENT_SCRIPTS=$FV3NET/.environment-scripts | ||
ENV PROJECT_NAME=fv3net | ||
|
||
# Install dependencies (slow) | ||
USER root | ||
RUN apt-get update && apt-get install -y gfortran | ||
ENV FV3NET=/home/$NB_USER/fv3net | ||
ADD environment.yml $FV3NET/ | ||
ADD Makefile $FV3NET/ | ||
ADD .environment-scripts $ENVIRONMENT_SCRIPTS | ||
RUN fix-permissions $FV3NET | ||
WORKDIR $FV3NET | ||
|
||
ADD docker/install_gcloud.sh install_gcloud.sh | ||
RUN bash install_gcloud.sh | ||
USER $NB_UID | ||
|
||
ADD docker/download_inputdata.sh download_inputdata.sh | ||
RUN bash download_inputdata.sh | ||
ENV PATH=/opt/conda/envs/fv3net/bin:$PATH | ||
RUN bash $ENVIRONMENT_SCRIPTS/build_environment.sh $PROJECT_NAME | ||
|
||
ADD requirements.txt requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
# Add rest of fv3net directory | ||
USER root | ||
ADD . $FV3NET | ||
RUN fix-permissions $FV3NET | ||
USER $NB_UID | ||
|
||
COPY . /code | ||
ENV PYTHONPATH=/code:$PYTHONPATH | ||
WORKDIR /code | ||
# setup the local python packages | ||
|
||
RUN bash $ENVIRONMENT_SCRIPTS/install_local_packages.sh $PROJECT_NAME |
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 |
---|---|---|
|
@@ -44,4 +44,5 @@ dependencies: | |
- pip: | ||
- gsutil | ||
- nc-time-axis>=1.2.0 | ||
- yq | ||
- bump2version>=0.5.11 |