You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The Ubuntu Docker images are "minimized", meaning that some large
59
+
# bits such as documentation has been removed. We have to unminimize
60
+
# once (which reinstalls the full versions of some minimized packages),
61
+
# or e.g. the maxima documentation (which we depend on for correct operation)
62
+
# will be missing.
63
+
#
64
+
# But we only have to do this once. To save time in incremental builds,
65
+
# we remove the unminimize binary here after it has done its job.
66
+
#
57
67
cat <<EOF
58
-
RUN (yes | unminimize) || echo "(ignored)"
68
+
RUN if command -v unminimize > /dev/null; then \
69
+
(yes | unminimize) || echo "(ignored)"; \
70
+
rm -f "$(command -v unminimize)"; \
71
+
fi
59
72
EOF
60
73
if [ -n"$DIST_UPGRADE" ];then
61
74
cat <<EOF
@@ -143,7 +156,7 @@ EOF
143
156
;;
144
157
*)
145
158
cat <<EOF
146
-
ARG USE_CONDARC=condarc.yml
159
+
ARG USE_CONDARC=${USE_CONDARC-condarc.yml}
147
160
ADD *condarc*.yml /tmp/
148
161
RUN echo \${CONDARC}; cd /tmp && conda config --stdin < \${USE_CONDARC}
149
162
RUN conda update -n base conda
@@ -230,24 +243,41 @@ cat <<EOF
230
243
231
244
FROM with-system-packages as bootstrapped
232
245
#:bootstrapping:
233
-
RUN if [ -d /sage ]; then echo "### Incremental build from \$(cat /sage/VERSION.txt)" && mv /sage /sage-old && mkdir /sage && for a in local logs; do if [ -d /sage-old/\$a ]; then mv /sage-old/\$a /sage; fi; done; rm -rf /sage-old; else mkdir -p /sage; fi
0 commit comments