Skip to content

Commit

Permalink
docker: bump astrometry to 0.85, tractor to dr9.6, fitsio to 1.1.4, l…
Browse files Browse the repository at this point in the history
…egacypipe to DR9.7.2
  • Loading branch information
Dustin Lang committed Mar 23, 2021
1 parent fc160c3 commit 7de1707
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docker-nersc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ RUN git clone http://github.com/dstndstn/astrometry.net.git astrometry \
&& make install INSTALL_DIR=/usr/local \
&& make clean \
&& (cd && PYTHONPATH=/usr/local/lib/python python3 -c "import astrometry; print(astrometry.__version__)") \
&& git describe && echo 0.84
&& git describe && echo 0.85

# Pip installs -- binary. We need cython for the tractor.
RUN for x in \
Expand All @@ -119,15 +119,15 @@ RUN for x in \
# The Tractor
RUN git clone http://github.com/dstndstn/tractor.git tractor \
&& cd tractor \
&& git checkout dr9.5 \
&& git checkout dr9.6 \
&& python3 setup-cython.py --with-ceres install --home /usr/local \
&& make version && cp tractor/version.py /usr/local/lib/python/tractor/ \
&& rm -R $(find . -name "*.o" -o -name "*.so") \
&& (cd && PYTHONPATH=/usr/local/lib/python python3 -c "import tractor; print(tractor.__version__)")

# Pip installs -- built from source
RUN pip --no-cache-dir install photutils
RUN pip --no-cache-dir install fitsio==1.1.2
RUN pip --no-cache-dir install fitsio==1.1.4

RUN /sbin/ldconfig

Expand Down Expand Up @@ -261,11 +261,11 @@ RUN python -O -m compileall \
/src/unwise_psf/py \
/src/legacypipe/py/{legacypipe,legacyzpts}

# update legacypipe
RUN cd /src/legacypipe && git pull \
&& git describe && echo DR9.7.0 && \
python -m compileall /src/legacypipe/py/{legacypipe,legacyzpts} && \
python -O -m compileall /src/legacypipe/py/{legacypipe,legacyzpts}
# # update legacypipe
# RUN cd /src/legacypipe && git pull \
# && git describe && echo DR9.7.1 && \
# python -m compileall /src/legacypipe/py/{legacypipe,legacyzpts} && \
# python -O -m compileall /src/legacypipe/py/{legacypipe,legacyzpts}

ENV LEGACYPIPE_DIR /src/legacypipe/py

Expand Down
2 changes: 1 addition & 1 deletion docker-nersc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ else
LOCAL_IP=$(ip route ls | tail -n 1 | awk '{print $NF}')
fi

docker build --add-host intel.licenses.nersc.gov:${LOCAL_IP} -t legacysurvey/legacypipe:nersc .
docker build --add-host intel.licenses.nersc.gov:${LOCAL_IP} -t legacysurvey/legacypipe:nersc .

0 comments on commit 7de1707

Please sign in to comment.