File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
2
1
#
3
2
# Licensed to the Apache Software Foundation (ASF) under one
4
3
# or more contributor license agreements. See the NOTICE file
@@ -36,7 +35,8 @@ download_dependency() {
36
35
37
36
DEP_FILE=$1
38
37
DEP=$2
39
- read -r DEP VERSION <<< $( grep $DEP $DEP_FILE | sed ' s/://' )
38
+ # Here we don't use read command to make it available in Alpine
39
+ VERSION=$( grep $DEP $DEP_FILE | sed ' s/://' | awk ' {print $2}' )
40
40
41
41
if [[ $DEP == " cmake" ]]; then
42
42
curl -O -L https://github.com/Kitware/CMake/releases/download/v${VERSION} /cmake-${VERSION} -linux-${ARCH} .tar.gz
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN pip3 install pyyaml
37
37
ADD .build/dependencies.yaml /
38
38
ADD .build/dep-version.py /usr/local/bin
39
39
ADD .build/dep-url.sh /usr/local/bin
40
- RUN . /usr/local/bin/dep-url.sh
40
+ SHELL [ "/bin/bash" , "-c" , "source /usr/local/bin/dep-url.sh" ]
41
41
42
42
# Download and install boost
43
43
RUN BOOST_VERSION=$(dep-version.py boost) && \
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ RUN apk add cmake
40
40
ADD .build/dependencies.yaml /
41
41
ADD .build/dep-version.py /usr/local/bin
42
42
ADD .build/dep-url.sh /usr/local/bin
43
- RUN . /usr/local/bin/dep-url.sh
43
+ SHELL [ "/bin/ash" , "-c" , "source /usr/local/bin/dep-url.sh" ]
44
44
45
45
# Download and install boost
46
46
RUN BOOST_VERSION=$(dep-version.py boost) && \
You can’t perform that action at this time.
0 commit comments