Skip to content

Commit

Permalink
Install build-essential.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepd-nv committed Oct 17, 2023
1 parent 73c9151 commit f41ba84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions continuous_integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM ${BASE_IMAGE} as stage0

SHELL ["/bin/bash", "-c"]

RUN apt-get update && \
apt-get install -y vim build-essential

ENV PYTHONDONTWRITEBYTECODE=1
ENV SCCACHE_REGION="us-east-2"
ENV SCCACHE_BUCKET="rapids-sccache-east"
Expand Down
14 changes: 8 additions & 6 deletions continuous_integration/build-docker-image
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -xuo pipefail

#Set the options of the getopt command
# NOTE: local-build is optional
format=$(getopt -n "$0" -l "base-image:,image-tag:,source-dir:,build-type:,local-build" -- -- "$@")
format=$(getopt -n "$0" -l "base-image:,image-tag:,source-dir:,build-type:,use-cuda:,local-build" -- -- "$@")
if [ $? != 0 ]; then
echo "Getopt failed"
exit 1
fi

if [ $# -lt 5 ]; then
if [ $# -lt 6 ]; then
echo "Wrong number of arguments passed."
exit
fi
Expand All @@ -20,10 +20,11 @@ eval set -- "$format"
while [ $# -gt 0 ]
do
case "$1" in
--base-image) BASE_IMAGE="$2"; shift;;
--image-tag) IMAGE_TAG="$2"; shift;;
--source-dir) SOURCE_DIR="$2"; shift;;
--build-type) BUILD_TYPE="$2"; shift;;
--base-image) BASE_IMAGE="$2"; shift;;
--image-tag) IMAGE_TAG="$2"; shift;;
--source-dir) SOURCE_DIR="$2"; shift;;
--build-type) BUILD_TYPE="$2"; shift;;
--use-cuda) USE_CUDA="$2"; shift;;
--local-build) LOCAL_BUILD="1";;
--) shift; break;;
*) echo "Invalid option: $1"; exit 1;;
Expand Down Expand Up @@ -53,6 +54,7 @@ if [[ -z "${LOCAL_BUILD+x}" ]]; then
-f "$SOURCE_DIR/continuous_integration/Dockerfile" "$SOURCE_DIR";
else
docker build \
--target setup \
--build-arg BASE_IMAGE="$BASE_IMAGE" \
--build-arg USE_CUDA="$USE_CUDA" \
--build-arg BUILD_TYPE="$BUILD_TYPE" \
Expand Down

0 comments on commit f41ba84

Please sign in to comment.