Builds fail in docker. #212
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: edge226
I'm trying to do some docker automation with Manjaro iso building, at first I had some issues with the chroot aspect but upon doing some research I found that running the container in --privileged mode resolves these issues.
Upon attempting to do a build again I was struck with another issue as shown below:
Okay so lets see what
dmesg | tailgives us:[ 8612.927652] overlayfs: filesystem on '/var/lib/manjaro-tools/buildiso/xfce/x86_64/xfce-image' not supported as upperdirI believe the issue has something to do with this function but I'm not sure how to fix it to work within the docker instance, It seems like its because upper and the resulting mount location are the same and you're thus essentially trying to mount /var/lib/manjaro-tools/buildiso/xfce/x86_64/root-image, /var/lib/manjaro-tools/buildiso/xfce/x86_64/xfce-image and /var/lib/manjaro-tools/buildiso/xfce/x86_64/work back into /var/lib/manjaro-tools/buildiso/xfce/x86_64/xfce-image.
I think this would be solved via doing something like:
This is based upon how the person does the ./entrypoint.sh script.
But then you need to change other parts of the sources to point to
"${work_dir}/mnt"but I'm not familiar enough with the code to say any more speculation.If you want to test the docker instance run:
docker run --privileged -it --name manjaro-tools -v /etc/lsb-release:/etc/lsb-release orbos/manjaro:manjaro-toolsCreated by: edge226
I see that You've looked at this and I'm willing to work on potential solutions with you on these issues to get them resolved quickly. Can I get some responses to my feedback? Lack of feedback will cause things to move along slower.
Created by: philmmanjaro
@edge226: which platform is installed in docker? does it support overlayfs? If not you can still use the aufs option
Created by: edge226
@philmmanjaro Its an i5 2500k. x86_64
I believe it does from the info in this post. I thought I modified the main post pointing to this but I must not have saved it. I was quite tired at the end of all the testing when I reported this.
I think I saw about the aufs option and I dont think it worked either. What is the correct flag for that?
Created by: philmmanjaro
It is in our manjaro-tools.conf. Simply uncomment it like this:
Created by: edge226
@philmmanjaro if you need i686 its pretty easy. Here are the two files used: mkimage-manjaro.sh and mkimage-manjaro-pacman.conf.
I modded the arch ones to work on manjaro and shared them on the forum a few days before the SSL issue happened.
Created by: edge226
I think I need to build new docker images at this time. I tried to do the net profile and I get:
Created by: edge226
@philmmanjaro There are many applications for docker such as automated package building with a CI. I'm working on setting that stuff up for my OS and in a sense I already have a very good understanding of how it works due to me automating all my website builds via when markdown is pushed to the repo. But I use gitlab instead of github now.
Created by: edge226
New image is being pushed now.
Done being pushed and testing again.
Created by: edge226
Same thing happens with an updated image that was just refreshed, Does that mean I'm missing a dep for manjaro-tools or something?
Created by: edge226
Ah looked at the net install and removed that stuff as a test. Seems like something went wrong either on your end or on one of your mirrors.
Created by: edge226
@philmmanjaro
Then we have dmesg | tail -n 1
Created by: edge226
@philmmanjaro You can see the rate at which it took me to update was around 10 minutes. Thats how quick the docker turnaround time is and it can be made quicker through automation in a CI system.
mentioned in issue #323