Jump to content

Recommended Posts

Posted

Hello everyone,

 

I am new to this forum. Apologize if this has been asked before, but I couldn't find it. I do

 

docker run -it -P --privileged lib /root/compile.sh

 

I get the following towards the end of the build process

 

Fetched 68.1 MB in 60s (1,130 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
hostapd is already the newest version (2:2.6-4~armbian5.34.171017+1).
The following NEW packages will be installed:
  sunxi-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.9 kB of archives.
After this operation, 134 kB of additional disk space will be used.
Get:1 http://apt.armbian.com stretch/stretch-utils arm64 sunxi-tools arm64 1.4.2-1~armbian5.34.171017+1 [36.9 kB]
Fetched 36.9 kB in 0s (86.5 kB/s)
Selecting previously unselected package sunxi-tools.
(Reading database ... 32421 files and directories currently installed.)
Preparing to unpack .../sunxi-tools_1.4.2-1~armbian5.34.171017+1_arm64.deb ...
Unpacking sunxi-tools (1.4.2-1~armbian5.34.171017+1) ...
Setting up sunxi-tools (1.4.2-1~armbian5.34.171017+1) ...
[ o.k. ] Calling image customization script [ customize-image.sh ]
[ o.k. ] Preparing image file for rootfs [ pine64 stretch ]
[ o.k. ] Current rootfs size [ 1026 MiB ]
[ o.k. ] Creating blank image for rootfs [ 1572 MiB ]
1.54GiB [ 147MiB/s] [===================================================================================================================================================================================================================>] 100%
[ o.k. ] Creating partitions [ root: ext4 ]
[ .... ] Creating rootfs [ ext4 ]
[ error ] ERROR in function check_loop_device [ image-helpers.sh:72 ]
[ error ] Device node /dev/loop0p1 does not exist
[ o.k. ] Process terminated
[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:59 ]
[ error ] debootstrap-ng was interrupted
[ o.k. ] Process terminated

 

 

I didn't see any special prerequisites to build this way in the documentation... priviledges to the docker container? kernel features?

 

Thanks

Posted

Docker container should be started on host by the build script "./compile.sh docker" - it will pass necessary privileges to the container. Currently this is the only supported way to run the process in a Docker container.

You may have to install a newer Docker version because i.e. standard Debian/Ubuntu versions may be too old.

Posted

thanks very much, will try that.

 

The armbian documentation links you to this, so that's what I tried. Also, it would be nice if it used some kind of volume so it doesn't have to do all the process over and over again. That's probably already been done, am I missing any documentation?

 

Don't worry about the docker version, running Arch here ;)

 

I'll try that now

Posted
2 minutes ago, nachoparker said:

The armbian documentation links you to this, so that's what I tried.

Unfortunately documentation was not updated yet

 

2 minutes ago, nachoparker said:

Also, it would be nice if it used some kind of volume so it doesn't have to do all the process over and over again. That's probably already been done, am I missing any documentation?

Yes, the launcher script will create 2 named volumes. Currently it's only documented in comments in config-docker.conf

 

4 minutes ago, nachoparker said:

Don't worry about the docker version, running Arch here ;)

As long as it supports --device-cgroup-rule option...

Posted
Just now, zador.blood.stained said:

As long as it supports --device-cgroup-rule option...

 

Ok, in some minutes we'll know if it does xD

 

When I am more familiar with this, I can help and document it if it would help

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines