Re: mock inside docker

2020-03-05 Thread Daniel Walsh
On 3/5/20 11:40, Miro Hrončok wrote:
> On 05. 03. 20 15:09, Christoph Junghans wrote:
>> Hi,
>>
>> if I am trying to run mock inside docker, I am getting the following
>> error:
>> INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
>> ERROR: Command failed:
>>   # /bin/mount -n --bind
>> /var/cache/mock/fedora-rawhide-x86_64-bootstrap/yum_cache
>> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/var/cache/yum
>>
>> In the past I usually added --old-chroot to workaround that, but now
>> this yields:
>> ERROR: Command failed:
>>   # /bin/mount -n -t tmpfs -o rprivate tmpfs
>> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/proc
>>
>> This mock 2.0 inside the f31 ("fedora:latest") container from this
>> morning.
>>
>> Any idea how get mock working again?
>
> We run mock in docker with:
>
> $ docker run --cap-add=SYS_ADMIN
>
> And it seems to still work (on Travis CI at least).
>
Using Podman we might be able to get this to work in a user namespace,
without requiring root at all.


If you setup a user inside of the container to run with a user
namespace/mount namespace then create one and mount the proc and tmpfs

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: mock inside docker

2020-03-05 Thread Daniel Walsh
Would like to know if this works with Podman.

On 3/5/20 11:22, Frantisek Zatloukal wrote:
> Hi,
>
> adding "--no-bootstrap-chroot" wouldn't help?
>
> On Thu, Mar 5, 2020 at 3:11 PM Christoph Junghans  > wrote:
>
> Hi,
>
> if I am trying to run mock inside docker, I am getting the
> following error:
> INFO: Results and/or logs in:
> /var/lib/mock/fedora-rawhide-x86_64/result
> ERROR: Command failed:
>  # /bin/mount -n --bind
> /var/cache/mock/fedora-rawhide-x86_64-bootstrap/yum_cache
> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/var/cache/yum
>
> In the past I usually added --old-chroot to workaround that, but now
> this yields:
> ERROR: Command failed:
>  # /bin/mount -n -t tmpfs -o rprivate tmpfs
> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/proc
>
> This mock 2.0 inside the f31 ("fedora:latest") container from this
> morning.
>
> Any idea how get mock working again?
>
> Christoph
>
> -- 
> Christoph Junghans
> Web: http://www.compphys.de
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> 
> To unsubscribe send an email to
> devel-le...@lists.fedoraproject.org
> 
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
> https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
>
>
> -- 
>
> Best regards / S pozdravem,
>
> František Zatloukal
> Quality Engineer
> Red Hat
>
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: mock inside docker

2020-03-05 Thread Miro Hrončok

On 05. 03. 20 15:09, Christoph Junghans wrote:

Hi,

if I am trying to run mock inside docker, I am getting the following error:
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed:
  # /bin/mount -n --bind
/var/cache/mock/fedora-rawhide-x86_64-bootstrap/yum_cache
/var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/var/cache/yum

In the past I usually added --old-chroot to workaround that, but now
this yields:
ERROR: Command failed:
  # /bin/mount -n -t tmpfs -o rprivate tmpfs
/var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/proc

This mock 2.0 inside the f31 ("fedora:latest") container from this morning.

Any idea how get mock working again?


We run mock in docker with:

$ docker run --cap-add=SYS_ADMIN

And it seems to still work (on Travis CI at least).

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: mock inside docker

2020-03-05 Thread Christoph Junghans
On Thu, Mar 5, 2020 at 9:23 AM Frantisek Zatloukal  wrote:
>
> Hi,
>
> adding "--no-bootstrap-chroot" wouldn't help?
Nope, still getting:
ERROR: Command failed:
 # /bin/mount -n --bind
/var/cache/mock/fedora-rawhide-x86_64/yum_cache
/var/lib/mock/fedora-rawhide-x86_64/root/var/cache/yum

Christoph
>
> On Thu, Mar 5, 2020 at 3:11 PM Christoph Junghans  wrote:
>>
>> Hi,
>>
>> if I am trying to run mock inside docker, I am getting the following error:
>> INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
>> ERROR: Command failed:
>>  # /bin/mount -n --bind
>> /var/cache/mock/fedora-rawhide-x86_64-bootstrap/yum_cache
>> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/var/cache/yum
>>
>> In the past I usually added --old-chroot to workaround that, but now
>> this yields:
>> ERROR: Command failed:
>>  # /bin/mount -n -t tmpfs -o rprivate tmpfs
>> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/proc
>>
>> This mock 2.0 inside the f31 ("fedora:latest") container from this morning.
>>
>> Any idea how get mock working again?
>>
>> Christoph
>>
>> --
>> Christoph Junghans
>> Web: http://www.compphys.de
>> ___
>> devel mailing list -- devel@lists.fedoraproject.org
>> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
>> Fedora Code of Conduct: 
>> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives: 
>> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>
>
>
> --
>
> Best regards / S pozdravem,
>
> František Zatloukal
> Quality Engineer
> Red Hat
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org



-- 
Christoph Junghans
Web: http://www.compphys.de
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: mock inside docker

2020-03-05 Thread Frantisek Zatloukal
Hi,

adding "--no-bootstrap-chroot" wouldn't help?

On Thu, Mar 5, 2020 at 3:11 PM Christoph Junghans 
wrote:

> Hi,
>
> if I am trying to run mock inside docker, I am getting the following error:
> INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
> ERROR: Command failed:
>  # /bin/mount -n --bind
> /var/cache/mock/fedora-rawhide-x86_64-bootstrap/yum_cache
> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/var/cache/yum
>
> In the past I usually added --old-chroot to workaround that, but now
> this yields:
> ERROR: Command failed:
>  # /bin/mount -n -t tmpfs -o rprivate tmpfs
> /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/proc
>
> This mock 2.0 inside the f31 ("fedora:latest") container from this morning.
>
> Any idea how get mock working again?
>
> Christoph
>
> --
> Christoph Junghans
> Web: http://www.compphys.de
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
>


-- 

Best regards / S pozdravem,

František Zatloukal
Quality Engineer
Red Hat
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org