gmacario / easy-build

Collection of Dockerfiles for building embedded software distributions
Mozilla Public License 2.0
154 stars 83 forks source link

build-yocto-fsl-arm/Dockerfile: Set USER root before apt-get #221

Closed gmacario closed 8 years ago

gmacario commented 8 years ago

Fix https://github.com/gmacario/easy-build/issues/220

Signed-off-by: Gianpaolo Macario gianpaolo_macario@mentor.com

gmacario commented 8 years ago

Testing branch fix-issue-220

gmacario@mv-linux-powerhorse:~/easy-build⟫ docker build -t gmacario/build-yocto-fsl-arm build-yocto-fsl-arm/
Sending build context to Docker daemon 48.13 kB
Step 1 : FROM gmacario/build-yocto
 ---> 67fa2d480121
Step 2 : MAINTAINER Gianpaolo Macario <gmacario@gmail.com>
 ---> Using cache
 ---> eb40542c90eb
Step 3 : USER root
 ---> Running in 054df4d83788
 ---> d6d675b9d7a1
Removing intermediate container 054df4d83788
Step 4 : RUN apt-get -y install curl
 ---> Running in ab24655879c5
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 ---> 39ab78933e67
Removing intermediate container ab24655879c5
Step 5 : RUN curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo
 ---> Running in 626b7f9c08ba
...
Fetching project fsl-community-bsp-baseFetching project meta-fsl-demos

Fetching project meta-fsl-arm-extra
Fetching project meta-openembedded
Fetching project poky
Fetching project meta-fsl-arm
 ---> e01283e14b9f
Removing intermediate container 125b10b0d043
Step 9 : ENTRYPOINT /bin/bash
 ---> Running in 23fe3909e50f
 ---> d718685456ef
Removing intermediate container 23fe3909e50f
Step 10 : EXPOSE 22
 ---> Running in b6e2dce8d68b
 ---> 32817650fad5
Removing intermediate container b6e2dce8d68b
Successfully built 32817650fad5
gmacario@mv-linux-powerhorse:~/easy-build⟫
gmacario commented 8 years ago

LGTM, merging