Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7331BE00F3D; Thu, 25 Aug 2016 07:21:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 30A92E00D98 for ; Thu, 25 Aug 2016 07:21:34 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 25 Aug 2016 07:21:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,575,1464678000"; d="scan'208";a="1020221394" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga001.jf.intel.com with ESMTP; 25 Aug 2016 07:21:33 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.113]) by IRSMSX151.ger.corp.intel.com ([169.254.4.15]) with mapi id 14.03.0248.002; Thu, 25 Aug 2016 15:21:32 +0100 From: "Barros Pena, Belen" To: "toaster@yoctoproject.org" , "Avery, Brian" Thread-Topic: [Toaster] Toaster Weekly Meeting Minutes 24/08/16 Thread-Index: AQHR/iluVWgfYkq7j028qg5NGw6sNaBZu6CA Date: Thu, 25 Aug 2016 14:21:32 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.6.160626 x-originating-ip: [10.103.238.153] MIME-Version: 1.0 Subject: Re: Toaster Weekly Meeting Minutes 24/08/16 X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 14:21:38 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3FB2C1631ECE5841B839F36C86BFB6CF@intel.com> Content-Transfer-Encoding: quoted-printable On 24/08/2016 18:03, "toaster-bounces@yoctoproject.org on behalf of Barros Pena, Belen" wrote: > > >On 24/08/2016 17:12, "toaster-bounces@yoctoproject.org on behalf of Barros >Pena, Belen" belen.barros.pena@intel.com> wrote: > >>Brian: send a link to a CROPS instance we can try and the document on how >>to run the Toaster Docker container > >Here come the links (thanks Brian): > >Toaster Docker containers: >https://hub.docker.com/r/crops/toaster-krogoth/ >https://hub.docker.com/r/crops/toaster-master/ > >Instructions: >https://github.com/crops/toaster-container I gave the container a go this morning, and I wanted to tell you all about it ... mainly for toaster manual writing purposes. First, I had to install Docker in Ubuntu 14.04. The Docker instructions looked very scary https://docs.docker.com/engine/installation/linux/ubuntulinux/ Then someone told me they have a magic script that automates all those steps https://www.digitalocean.com/community/tutorials/how-to-install-and-use-doc ker-compose-on-ubuntu-14-04 This works really well, but you do need to remember to add your user to the docker group before you do anything else sudo usermod -aG docker $(whoami) Then you have to log out and log back in for the group changes to take effect.=20 Since I am behind a proxy, I had to edit the /etc/default/docker file to set http_proxy and https_proxy. I would have never managed this without help.=20 Then I pulled the container I wanted to try using the command provided at https://hub.docker.com/r/crops/toaster-master/ To run it, I followed the instructions here https://github.com/crops/toaster-container I created a workdir as /home//toaster-workdir Then I run the run command in the readme file like this docker run -it --rm -p 127.0.0.1:18000:8000 -v /home//toaster-workdir:/toaster-workdir crops/toaster That made Docker pull a different container. I didn't realise that crops/toaster should have been crops/toaster-master in my case :/ So gave it another try with docker run -it --rm -p 127.0.0.1:18000:8000 -v /home//toaster-workdir:/toaster-workdir crops/toaster-master That failed saying the workdir directory didn't exist. So I deleted the /home//toaster-workdir directory and created /home//workdir instead. Then the run command as above worked like a charm, and the container came up. I was able to access the container from another computer at name_of_server_running_the_container:18000 I created a project with the master release and started a build. Sadly that failed during the cloning stage because I am behind a proxy, and I was told I would need to configure the proxy in the container. I have no idea how to do that. Then I thought I should try the local release instead. But once again, the build failed, this time with this message: Existing git repository at /home/usersetup/poky, but with different remotes ('origin http://git.yoctoproject.org/git/poky (fetch), origin http://git.yoctoproject.org/git/poky (push), ', expected 'git://git.yoctoproject.org/poky'). Toaster will not continue out of fear of damaging something. I stopped at this point, and wrote this email :) From the experience so far, when writing the content for the manual, it might be handy to provide 1. Some instructions on how to easily install docker 2. What to do if you are behind a proxy I also have a couple of questions: 1. Does the workdir have to be called "workdir"? Or did I do something wrong? 2. Do we need to fix the issue with the local project builds? Cheers Bel=E9n > >Instructions for running tests (in progress): >https://wiki.yoctoproject.org/wiki/TipsAndTricks/TestingToasterWithContain >e >rs > > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster