-
Notifications
You must be signed in to change notification settings - Fork 2
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
3 changed files
with
42 additions
and
35 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
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,9 +1,9 @@ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:24.04.1 | ||
|
||
RUN mkdir -p /src | ||
WORKDIR /src | ||
|
||
RUN apt-get -y clean && apt -y update && apt install -y apt-utils && apt -y upgrade && echo 2 | ||
RUN apt-get -y clean && apt -y update && apt install -y apt-utils && apt -y upgrade && echo 1 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive \ | ||
apt install -y --no-install-recommends \ | ||
|
@@ -19,7 +19,7 @@ RUN DEBIAN_FRONTEND=noninteractive \ | |
libcfitsio-bin \ | ||
# libhdf5 needed by h5py | ||
libhdf5-dev \ | ||
# mpich \ | ||
# needed by mpich \ | ||
python3-dev \ | ||
python3-pip \ | ||
# python3-mpi4py \ | ||
|
@@ -56,6 +56,7 @@ RUN for x in \ | |
healpy \ | ||
fitsio \ | ||
numba \ | ||
intel-cmplr-lib-rt \ | ||
mpi4py \ | ||
seaborn \ | ||
matplotlib \ | ||
|
@@ -64,21 +65,21 @@ RUN for x in \ | |
h5py \ | ||
; do pip3 install $x; done \ | ||
&& rm -Rf /root/.cache/pip \ | ||
&& echo 2 | ||
&& echo 1 | ||
|
||
ENV DESIUTIL_VERSION 3.2.6 | ||
ENV DESIMODEL_VERSION 0.18.0 | ||
ENV DESITARGET_VERSION 2.6.0 | ||
ENV DESISPEC_VERSION 0.57.0 | ||
ENV SPECLITE_VERSION v0.16 | ||
ENV FASTSPECFIT_VERSION 2.1.1 | ||
ENV DESIUTIL_VERSION 3.4.3 | ||
ENV DESIMODEL_VERSION 0.19.2 | ||
ENV DESITARGET_VERSION 2.8.0 | ||
ENV DESISPEC_VERSION 0.68.1 | ||
ENV SPECLITE_VERSION v0.20 | ||
ENV FASTSPECFIT_VERSION main | ||
|
||
RUN pip3 install git+https://github.com/desihub/desiutil.git@${DESIUTIL_VERSION}#egg=desiutil | ||
RUN pip3 install git+https://github.com/desihub/desimodel.git@${DESIMODEL_VERSION}#egg=desimodel | ||
RUN pip3 install git+https://github.com/desihub/desitarget.git@${DESITARGET_VERSION}#egg=desitarget | ||
RUN pip3 install git+https://github.com/desihub/desispec.git@${DESISPEC_VERSION}#egg=desispec | ||
RUN pip3 install git+https://github.com/desihub/speclite.git@${SPECLITE_VERSION}#egg=speclite | ||
RUN pip3 install git+https://github.com/desihub/fastspecfit.git@${FASTSPECFIT_VERSION}#egg=fastspecfit && echo 1.1 | ||
RUN pip3 install git+https://github.com/desihub/fastspecfit.git@${FASTSPECFIT_VERSION}#egg=fastspecfit && echo 1 | ||
|
||
ENV PYTHONPATH /src/fastspecfit/py | ||
ENV PATH /src/fastspecfit/bin:/opt/conda/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
@@ -96,15 +97,15 @@ RUN echo "export PS1='[container] \\u@\\h:\\w$ '" >> $HOME/.bashrc \ | |
&& python -c "import astropy" \ | ||
&& python -c "import matplotlib.font_manager as fm; f = fm.FontManager()" \ | ||
&& ipython -c "print('hello')" \ | ||
# Download astropy site locations and USNO sky model | ||
&& python -c "from astropy.coordinates import EarthLocation; EarthLocation._get_site_registry(force_download=True)" \ | ||
&& python -c "from astropy.coordinates import EarthLocation, SkyCoord, AltAz; from astropy.time import Time; print(EarthLocation.of_site('ctio')); print(SkyCoord(180.,-45.,unit='deg').transform_to(AltAz(obstime=Time(56806.0, format='mjd'), location=EarthLocation.of_site('ctio'))))" \ | ||
# Download astropy IERS leap-second list | ||
&& python -c "from astropy.time import Time; Time.now()" \ | ||
# Make astropy cache files readable!?!! | ||
&& chmod -R a+rwX $HOME/.astropy \ | ||
# Make ipython config files readable!?!! | ||
&& chmod -R a+rwX $HOME/.ipython \ | ||
&& echo 2 | ||
## Download astropy site locations and USNO sky model | ||
#&& python -c "from astropy.coordinates import EarthLocation; EarthLocation._get_site_registry(force_download=True)" \ | ||
#&& python -c "from astropy.coordinates import EarthLocation, SkyCoord, AltAz; from astropy.time import Time; print(EarthLocation.of_site('ctio')); print(SkyCoord(180.,-45.,unit='deg').transform_to(AltAz(obstime=Time(56806.0, format='mjd'), location=EarthLocation.of_site('ctio'))))" \ | ||
## Download astropy IERS leap-second list | ||
#&& python -c "from astropy.time import Time; Time.now()" \ | ||
## Make astropy cache files readable!?!! | ||
#&& chmod -R a+rwX $HOME/.astropy \ | ||
## Make ipython config files readable!?!! | ||
#&& chmod -R a+rwX $HOME/.ipython \ | ||
&& echo 1 | ||
|
||
LABEL Maintainer="John Moustakas [email protected]" |
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