Updated VERSION regex for tarball in Dockerfiles (#1321)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
64375c23d0
Коммит
082e7adb81
@@ -52,7 +52,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif
|
||||
ARG GPU_TYPE=""
|
||||
ARG GPU_TARBALL=""
|
||||
RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \
|
||||
if [ -z "$VERSION" ]; then \
|
||||
echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \
|
||||
exit 1; \
|
||||
|
||||
@@ -43,7 +43,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif
|
||||
ARG GPU_TYPE=""
|
||||
ARG GPU_TARBALL=""
|
||||
RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \
|
||||
if [ -z "$VERSION" ]; then \
|
||||
echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \
|
||||
exit 1; \
|
||||
|
||||
@@ -63,7 +63,7 @@ RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Minif
|
||||
ARG GPU_TYPE=""
|
||||
ARG GPU_TARBALL=""
|
||||
RUN if [ -n "$GPU_TYPE" ] && [ -n "$GPU_TARBALL" ]; then \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]\.[0-9]\.[0-9]).*/\1/p'); \
|
||||
VERSION=$(echo "$GPU_TARBALL" | sed -nE 's/.*([0-9]+\.[0-9]+\.[0-9]+).*/\1/p'); \
|
||||
if [ -z "$VERSION" ]; then \
|
||||
echo "Error: Could not extract version from GPU_TARBALL ('$GPU_TARBALL')." >&2; \
|
||||
exit 1; \
|
||||
|
||||
Ссылка в новой задаче
Block a user