-
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
1ecdb63
commit 7546804
Showing
2 changed files
with
68 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM ubuntu:xenial | ||
MAINTAINER Manuel Fuentes Jimenez<[email protected]> | ||
MAINTAINER Manuel Fuentes Jimenez<[email protected]>, Miguel Hinojosa<[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
COPY jodo /bin/ | ||
|
@@ -57,7 +57,7 @@ RUN apt-get install -y \ | |
ENV PREFIX /home/wrf | ||
WORKDIR /home/wrf | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV CC gcc | ||
ENV CC gcc -fPIC | ||
ENV CPP /lib/cpp -P | ||
ENV CXX g++ | ||
ENV FC gfortran | ||
|
@@ -79,18 +79,79 @@ ENV PYTHONPATH $PREFIX/lib/python2.7/site-packages | |
ENV PATH $PATH:$PREFIX/bin:$NCARG_ROOT/bin:$PREFIX/WPS:$PREFIX/WRFV3/test/em_real:$PREFIX/WRFV3/main:$PREFIX/WRFV3/run:$PREFIX/WPS:$PREFIX/ARWpost:$PREFIX | ||
ENV HTTPS_PROXY=http://miguel.hinojosa:[email protected]:3128/ | ||
ENV HTTP_PROXY=http://miguel.hinojosa:[email protected]:3128/ | ||
RUN git config --global --add http.proxy http://miguel.hinojosa:[email protected]:3128 | ||
RUN git config --global --add https.proxy http://miguel.hinojosa:[email protected]:3128 | ||
|
||
ENV WRFVERSION=WRFV3.9.1 | ||
|
||
RUN mkdir -p /home/wrf && \ | ||
useradd wrf -d /home/wrf && \ | ||
chown -R wrf:wrf /home/wrf | ||
RUN ulimit -s unlimited | ||
USER wrf | ||
COPY build.sh /home/wrf | ||
COPY .gitconfig /home/wrf | ||
COPY .wgetrc /home/wrf | ||
|
||
RUN ./build.sh | ||
COPY entrypoint.sh $PREFIX | ||
ENTRYPOINT ["entrypoint.sh"] | ||
|
||
#Download Libraries #fijarse en la versión de WPS | ||
#RUN | ||
# | ||
# && | ||
# && curl -L -S https://github.com/Unidata/netcdf-c/archive/v4.7.2.tar.gz -o $PREFIX/netcdf-4.7.2.tar.gz\ | ||
# && curl -L -S https://github.com/Unidata/netcdf-fortran/archive/v4.5.2.tar.gz -o $PREFIX/netcdf-fortran-4.5.2.tar.gz\ | ||
# && curl -L -S http://www.mpich.org/static/downloads/3.3/mpich-3.3.tar.gz -o $PREFIX/mpich-3.3.tar.gz\ | ||
# && curl -L -S https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compile_tutorial/tar_files/Fortran_C_tests.tar -o $PREFIX/Fortran_C_tests.tar\ | ||
# && wget -c http://www2.mmm.ucar.edu/wrf/src/${WRFVERSION}.TAR.gz -P $PREFIX\ | ||
# && curl -L -S http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compile_tutorial/tar_files/libpng-1.2.50.tar.gz -o $PREFIX/libpng-1.2.50.tar.gz\ | ||
# && curl -L -S http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compile_tutorial/tar_files/jasper-1.900.1.tar.gz -o $PREFIX/jasper-1.900.1.tar.gz\ | ||
# && wget -c http://www2.mmm.ucar.edu/wrf/src/WPSV3.9.1.TAR.gz -P $PREFIX\ | ||
# && curl -L -S http://www2.mmm.ucar.edu/wrf/src/ARWpost_V3.tar.gz -o $PREFIX/ARWpost_V3.tar.gz | ||
|
||
|
||
|
||
# Install szip | ||
RUN git clone https://github.com/erdc/szip $PREFIX/szip | ||
|
||
RUN cd $PREFIX/szip\ | ||
&& echo "Starting configure for szip"\ | ||
&& ./configure --prefix=$PREFIX &> configure.log | ||
# && echo "Running make install"\ | ||
# && make\ | ||
# && make install & | ||
|
||
# # Install zlib | ||
# RUN git clone https://github.com/madler/zlib $PREFIX/zlib\ | ||
# && cd $PREFIX/zlib\ | ||
# && echo "Starting Configure "\ | ||
# && ./configure --prefix=$PREFIX &> configure.log\ | ||
# && make\ | ||
# && make install & | ||
|
||
# # Install HDF5 | ||
# RUN git clone https://github.com/mortenpi/hdf5 $PREFIX/hdf5\ | ||
# && cd $PREFIX/hdf5\ | ||
# && ./configure \ | ||
# && --prefix=$PREFIX \ | ||
# && --with-zlib=$PREFIX \ | ||
# && --with-szip=$PREFIX \ | ||
# && --enable-fortran \ | ||
# && --enable-cxx &> configure.log\ | ||
# && make\ | ||
# && make install &> install.log | ||
|
||
|
||
# # iNSTALL NetCDF | ||
# RUN curl -L -S https://github.com/Unidata/netcdf-c/archive/v4.7.2.tar.gz -o $PREFIX/netcdf-4.7.2.tar.gz\ | ||
# && tar zxvf $PREFIX/netcdf-4.7.2.tar.gz -C $PREFIX\ | ||
# # rm $PREFIX/netcdf-4.7.2.tar.gz\ | ||
# && mv $PREFIX/netcdf-c-4.7.2 $PREFIX/netcdf-c\ | ||
# && cd $PREFIX/netcdf-c\ | ||
# && LD_LIBRARY_PATH=$PREFIX/lib CPPFLAGS=-I$PREFIX/include LDFLAGS=-L$PREFIX/lib ./configure --prefix=$PREFIX --disable-dap --disable-netcdf-4 --disable-shared &> configure.log\ | ||
# && make\ | ||
# && make install &> install.log | ||
|
||
#RUN ./build.sh | ||
#COPY entrypoint.sh $PREFIX | ||
#ENTRYPOINT ["entrypoint.sh"] | ||
CMD ["bash"] | ||
VOLUME /home/wrf/data |
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