Skip to content

Commit d01648a

Browse files
committed
[CI] Update CICD for dev_container
1 parent e237145 commit d01648a

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

tools/build_base_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ OS_VERSION=${4:-"20.04"}
1010
docker build \
1111
-f tools/docker/base_container.Dockerfile \
1212
--network=host \
13-
--progress=plain \
1413
--build-arg http_proxy=http://127.0.0.1:7890 \
1514
--build-arg https_proxy=http://127.0.0.1:7890 \
15+
--progress=plain \
1616
--build-arg CUDA_VERSION=${CUDA_VERSION} \
1717
--build-arg TF_VERSION=${TF_VERSION} \
1818
--build-arg PY_VERSION=${PY_VERSION} \

tools/build_dev_container.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ set -x -e
44

55
PY_VERSION=${1:-"3.10"}
66
TF_VERSION=${2:-"2.15.1"}
7-
OS_VERSION=${3:-"20.04"}
8-
CUDA_VERSION=${4:-"12.2.2"}
7+
CUDA_VERSION=${3:-"12.2.2"}
8+
OS_VERSION=${4:-"20.04"}
99

1010
docker build \
1111
-f tools/docker/dev_container.Dockerfile \
12+
--network=host \
13+
--build-arg http_proxy=http://127.0.0.1:7890 \
14+
--build-arg https_proxy=http://127.0.0.1:7890 \
1215
--progress=plain \
1316
--build-arg TF_PACKAGE=tensorflow \
1417
--build-arg PY_VERSION=${PY_VERSION} \

tools/docker/dev_container.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ ARG PY_VERSION
5858

5959
# Setup openmpi
6060
COPY --from=openmpi_builder /opt/openmpi /opt/openmpi
61+
COPY --from=openmpi_builder /opt/ucx /opt/ucx
62+
COPY --from=openmpi_builder /opt/ucc /opt/ucc
6163
ENV PATH=${PATH}:/opt/openmpi/bin \
6264
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/openmpi/lib
6365
RUN mpirun --version

tools/install_deps/install_cmake.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
# ==============================================================================
16-
set -x -e
16+
set -xeuo pipefail
1717

1818
CMAKE_VERSION=${1:-"3.31.0"}
1919

@@ -27,12 +27,12 @@ rm /tmp/cmake-install.sh
2727
cat >bashrc.txt <<'EOF'
2828
export CMAKE_HOME=/opt/cmake
2929
export PATH="${CMAKE_HOME}/bin:${PATH}"
30-
export LD_LIBRARY_PATH="${CMAKE_HOME}/lib:${LD_LIBRARY_PATH}"
30+
export LD_LIBRARY_PATH="${CMAKE_HOME}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
3131
EOF
3232
cat bashrc.txt >>/root/.bashrc
3333

3434
export CMAKE_HOME=/opt/cmake
3535
export PATH="${CMAKE_HOME}/bin:${PATH}"
36-
export LD_LIBRARY_PATH="${CMAKE_HOME}/lib:${LD_LIBRARY_PATH}"
36+
export LD_LIBRARY_PATH="${CMAKE_HOME}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
3737

3838
cmake --version

0 commit comments

Comments
 (0)