dockerbuild parallelization
This commit is contained in:
parent
7a5354d4b5
commit
d00c3ce742
2 changed files with 2 additions and 3 deletions
|
@ -22,8 +22,7 @@ docker build -t $DOTNET_BUILD_CONTAINER_TAG scripts/docker/
|
||||||
|
|
||||||
# Run the build in the container
|
# Run the build in the container
|
||||||
docker rm -f $DOTNET_BUILD_CONTAINER_NAME
|
docker rm -f $DOTNET_BUILD_CONTAINER_NAME
|
||||||
docker run \
|
docker run --rm \
|
||||||
-v $DOCKER_HOST_SHARE_DIR:/opt/code \
|
-v $DOCKER_HOST_SHARE_DIR:/opt/code \
|
||||||
--name $DOTNET_BUILD_CONTAINER_NAME \
|
|
||||||
-e DOTNET_BUILD_VERSION=$DOTNET_BUILD_VERSION \
|
-e DOTNET_BUILD_VERSION=$DOTNET_BUILD_VERSION \
|
||||||
$DOTNET_BUILD_CONTAINER_TAG $BUILD_COMMAND $1
|
$DOTNET_BUILD_CONTAINER_TAG $BUILD_COMMAND $1
|
||||||
|
|
|
@ -84,7 +84,7 @@ run_build(){
|
||||||
export DOCKER_HOST_SHARE_DIR="$(_convert_path $VM_CODE_DIR)"
|
export DOCKER_HOST_SHARE_DIR="$(_convert_path $VM_CODE_DIR)"
|
||||||
export BUILD_COMMAND="//opt\\code\\build.sh"
|
export BUILD_COMMAND="//opt\\code\\build.sh"
|
||||||
|
|
||||||
$DIR/dockerbuild.sh
|
$DIR/dockerbuild.sh debian
|
||||||
}
|
}
|
||||||
|
|
||||||
# This will duplicate the entire repo + any side effects from
|
# This will duplicate the entire repo + any side effects from
|
||||||
|
|
Loading…
Reference in a new issue