Closed gmacario closed 8 years ago
Attempting a local docker build
gmacario@mv-linux-powerhorse:~/easy-build⟫ docker build -t test/build-yocto-genivi build-yocto-genivi/
...
Get:162 http://archive.ubuntu.com/ubuntu/ trusty/main libauthen-sasl-perl all 2.1500-1 [53.2 kB]
Err http://archive.ubuntu.com/ubuntu/ trusty-security/main libpcrecpp0 amd64 1:8.31-2ubuntu2.1
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev amd64 3.13.0-79.123
404 Not Found [IP: 91.189.91.24 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-security/main libpcre3-dev amd64 1:8.31-2ubuntu2.1
404 Not Found [IP: 91.189.91.24 80]
Fetched 69.9 MB in 1min 32s (759 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pcre3/libpcrecpp0_8.31-2ubuntu2.1_amd64.deb 404 Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-79.123_amd64.deb 404 Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pcre3/libpcre3-dev_8.31-2ubuntu2.1_amd64.deb 404 Not Found [IP: 91.189.91.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get -y install curl make gcc g++ diffstat texinfo gawk chrpath wget libsdl1.2-dev' returned a non-zero code: 100
1 gmacario@mv-linux-powerhorse:~/easy-build⟫
Adding --no-cache
the build is successful:
gmacario@mv-linux-powerhorse:~/easy-build⟫ docker build --no-cache -t test/build-yocto-genivi build-yocto-genivi/
Sending build context to Docker daemon 26.11 kB
Step 1 : FROM gocd/gocd-agent:16.1.0
---> 77e043f15ef0
...
Step 13 : RUN dos2unix /usr/local/bin/*.sh && chmod 755 /usr/local/bin/*.sh
---> Running in 8c7585babf8d
dos2unix: converting file /usr/local/bin/clone-and-build-gdp.sh to Unix format ...
dos2unix: converting file /usr/local/bin/run-gocd-agent.sh to Unix format ...
---> 69b8e930666e
Removing intermediate container 8c7585babf8d
Step 14 : EXPOSE 22
---> Running in 0b161251a65f
---> 665fba9ddf16
Removing intermediate container 0b161251a65f
Step 15 : USER build
---> Running in 64b702dc0581
---> 49b657b3d86c
Removing intermediate container 64b702dc0581
Step 16 : WORKDIR /home/build
---> Running in 1d8030d57301
---> 1499f6ccca4a
Removing intermediate container 1d8030d57301
Step 17 : CMD /bin/bash
---> Running in 2b8616077e79
---> 94e78bf89483
Removing intermediate container 2b8616077e79
Successfully built 94e78bf89483
gmacario@mv-linux-powerhorse:~/easy-build⟫
LGTM
Merging
Signed-off-by: Gianpaolo Macario gianpaolo_macario@mentor.com