Skip to content

Commit

Permalink
conda termcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
jmills-ncar committed May 23, 2018
1 parent 91fccc9 commit c2451a2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/conda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN conda config --add channels conda-forge --force
#RUN source activate docker_conda

#Install modules
RUN conda install -y jupyterlab cartopy rasterio netcdf4 dask f90nml deepdiff xarray plotnine boltons jupyter_contrib_nbextensions
RUN conda install -y jupyterlab cartopy rasterio netcdf4 dask f90nml deepdiff xarray plotnine boltons jupyter_contrib_nbextensions termcolor
#RUN conda install -c conda-forge -y --no-update-deps netcdf4 dask f90nml deepdiff xarray
RUN pip install pytest pytest-datadir-ng
RUN pip install wrfhydropy
Expand Down
3 changes: 3 additions & 0 deletions training/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ RUN rm -r /home/docker/runTimeScripts
COPY ./entrypoint.sh /.
RUN chmod 777 /entrypoint.sh

#Get jupyter config
COPY ./jupyter_notebook_config.py /home/docker/.jupyter/

# Copy in the domain
COPY --from=domain /home/docker/domain/croton_NY /home/docker/domain/croton_NY
RUN chmod -R 777 /home/docker/domain/
Expand Down
18 changes: 17 additions & 1 deletion training/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ assetURL=$(echo "$release" | grep "browser_download_url" | cut -d : -f 2,3 | tr
echo "$assetURL" | wget -qi -
tar -xf wrf_hydro_nwm_public-*.tar.gz
rm wrf_hydro_nwm_public-*.tar.gz
mv wrf_hydro_nwm_public-* wrf_hydro_nwm_public
echo "Retrieved the following release: $version"

jupyter notebook --ip 0.0.0.0 --no-browser
jupyter notebook --ip 0.0.0.0 --no-browser &> /dev/null &


echo
echo -e "\e[0;49;32m-----------------------------------\e[0m"
echo -e "\e[7;49;32mTraining Jupyter notebook server running\e[0m"
echo
echo "Open your browser to the following address to access notebooks"
echo "localhost:8888"
echo
echo "The password to login is 'nwmtraining'"
echo
echo "Type ctrl-C then y to shut down container."
echo "NOTE ALL WORK WILL BE LOST UNLESS copied out of the container"

sleep infinity

0 comments on commit c2451a2

Please sign in to comment.