gmacario/easy-build

build-yocto-genivi: Docker Hub autobuild fails

gmacario opened this issue · 2 comments

From https://hub.docker.com/r/gmacario/build-yocto-genivi/builds/bnqtigpniiwclyxi3mk49gq/

Build process failed: stat /var/lib/docker/aufs/mnt/2003eb3a67a24dc228dbbf191c4a2a752868d07a1622f0fe203915e6d25f2558/usr/local/bin/clone-and-build-gdp.sh: not a directory

Excerpt from build log:

Cloning into 'bnqtigpniiwclyxi3mk49gq'...
KernelVersion: 3.13.0-40-generic
Os: linux
BuildTime: Mon Oct 12 05:37:18 UTC 2015
ApiVersion: 1.20
Version: 1.8.3
GitCommit: f4bf5c7
Arch: amd64
GoVersion: go1.4.2
Step 0 : FROM gocd/gocd-agent:16.1.0
 ---> 0aada6d4d4f9
Step 1 : MAINTAINER Gianpaolo Macario <gianpaolo_macario@mentor.com>
 ---> Running in 4f6c8f44c4e3
 ---> 0d6a047cd244
Removing intermediate container 4f6c8f44c4e3
Step 2 : RUN apt-get update && apt-get -y upgrade
 ---> Running in d606aeca337a
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [64.4 kB]
...
Removing intermediate container 74a9ce52e820
Step 5 : RUN mkdir -p /var/run/sshd
 ---> Running in 057d82fcb800
 ---> 7d68ac1e68e5
Removing intermediate container 057d82fcb800
Step 6 : RUN id build >/dev/null || useradd --create-home --shell /bin/bash build
 ---> Running in f4b34cb3b3db
�[91mid: �[0m�[91mbuild: no such user�[0m�[91m
�[0m ---> ccd0fa3b459b
Removing intermediate container f4b34cb3b3db
Step 7 : COPY clone-and-build-gdp.sh /usr/local/bin
Removing intermediate container 2003eb3a67a2
stat /var/lib/docker/aufs/mnt/2003eb3a67a24dc228dbbf191c4a2a752868d07a1622f0fe203915e6d25f2558/usr/local/bin/clone-and-build-gdp.sh: not a directory

Possible explanation from https://docs.docker.com/engine/reference/builder/#copy:

Note: If you build using STDIN (docker build - < somefile), there is no build context, so COPY can’t be used.

Configured Docker Hub and triggered build of image gmacario/build-yocto-genivi:fix-issue-205 from branch fix-issue-205