diff mbox series

docker: Change into docker directory

Message ID a052c026-f215-0072-f896-94b2c8af27ad@infradead.org
State Accepted
Headers show
Series docker: Change into docker directory | expand

Commit Message

Geoff Levand Sept. 17, 2018, 5:08 p.m. UTC
To avoid sending all the files in the top most project
directory tree down to the docker daemon, change into
the docker directory when running 'docker build'.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 docker/build-builder | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sam Mendoza-Jonas Oct. 2, 2018, 4:39 a.m. UTC | #1
On Mon, 2018-09-17 at 10:08 -0700, Geoff Levand wrote:
> To avoid sending all the files in the top most project
> directory tree down to the docker daemon, change into
> the docker directory when running 'docker build'.
> 
> Signed-off-by: Geoff Levand <geoff@infradead.org>

Thanks, merged as 8ad5a518

> ---
>  docker/build-builder | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/docker/build-builder b/docker/build-builder
> index 8dcfba8..f593e54 100755
> --- a/docker/build-builder
> +++ b/docker/build-builder
> @@ -116,7 +116,7 @@ fi
>  
>  echo "Building docker image: ${DOCKER_TAG}" >&2
>  
> -cd ${TOP_DIR}
> +cd ${TOP_DIR}/docker
>  run_cmd "docker build \
>  	--file "${DOCKER_FILE}" \
>  	--build-arg DOCKER_FROM=${DOCKER_FROM} \
diff mbox series

Patch

diff --git a/docker/build-builder b/docker/build-builder
index 8dcfba8..f593e54 100755
--- a/docker/build-builder
+++ b/docker/build-builder
@@ -116,7 +116,7 @@  fi
 
 echo "Building docker image: ${DOCKER_TAG}" >&2
 
-cd ${TOP_DIR}
+cd ${TOP_DIR}/docker
 run_cmd "docker build \
 	--file "${DOCKER_FILE}" \
 	--build-arg DOCKER_FROM=${DOCKER_FROM} \