Skip to content

Commit

Permalink
FIX docker#2255 - make cross should copy binaries
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <[email protected]>
  • Loading branch information
dgageot committed Nov 12, 2015
1 parent b90ffae commit 3d72f50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ENV USER root
WORKDIR /go/src/github.com/docker/machine

ADD . /go/src/github.com/docker/machine
RUN mkdir bin
6 changes: 2 additions & 4 deletions script/build_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ docker run --name $DOCKER_CONTAINER_NAME \
$DOCKER_IMAGE_NAME \
make "$@"

if [[ -d bin ]]; then
if [[ "$@" == *"clean"* ]] && [[ -d bin ]]; then
rm -Rf bin
fi

if [[ "$@" == *"build"* ]]; then
docker cp $DOCKER_CONTAINER_NAME:/go/src/github.com/docker/machine/bin bin
fi
docker cp $DOCKER_CONTAINER_NAME:/go/src/github.com/docker/machine/bin .

0 comments on commit 3d72f50

Please sign in to comment.