Skip to content

docker.kubectl target is broken on MacOS #13219

@tvieira

Description

@tvieira

Describe the bug
Running GOOS=linux make docker fails while building kubectl container image, with the following error:

time (mkdir -p /Users/tmoreira/Projects/go/out/linux_amd64/release/docker_build/docker.kubectl && cp -r docker/Dockerfile.kubectl /Users/tmoreira/Projects/go/bin/kubectl /Users/tmoreira/Projects/go/out/linux_amd64/release/docker_build/docker.kubectl && cd /Users/tmoreira/Projects/go/out/linux_amd64/release/docker_build/docker.kubectl &&  docker build  -t kind/kubectl:e2e -f Dockerfile.kubectl .)
cp: cannot stat '/Users/tmoreira/Projects/go/bin/kubectl': No such file or directory

real	0m0.009s
user	0m0.003s
sys	0m0.003s
make: *** [docker.kubectl] Error 1

Expected behavior
docker.kubectl is within the DOCKER_TARGETS, I should be able to have the container image built successfully.

Steps to reproduce the bug

  1. build docker images:
    GOOS=linux make docker HUB=kind TAG=e2e

Version
n/a

Installation
n/a

Environment
MacOS 10.14.4 / istio master branch

Cluster state
n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions