LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-28-2021, 07:29 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
building docker from SBo fails


Hi all,
I see that ponce here has managed to build docker just after installing google-go-lang using sbopkg and the 14.2 slackbuilds repo.

Well I have issues during `sbopkg -i docker`.
After extraction of the sources is complete
Quote:
[... extraction preceeded ... ]
moby-20.10.2/volume/testutils/testutils.go
moby-20.10.2/volume/volume.go

Removing bundles/

---> Making bundle: dynbinary (in bundles/dynbinary)
Building: bundles/dynbinary-daemon/dockerd-20.10.2
GOOS="" GOARCH="" GOARM=""
no required module provides package github.com/docker/docker/cmd/dockerd: go.mod file not found in current directory or any parent directory; see 'go help modules'
Do you also get this error?

I tried to temporarily switch to Ponce's SBo-git/current repo just to see if it will work. Using ponce's slackbuilds the build succeeded but rc.docker would not start the dockerd daemon. running the daemon alone I see the following error :
Quote:
failed to start daemon: error initializing graphdriver: devicemapper: Error running deviceCreate (CreatePool) dm_task_run failed
which led me to the link above.

SO have you been able to install docker in slackware64 14.2 ?

Thank you
 
Old 07-28-2021, 08:47 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,679

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
i think you mixed between 14.2 and Ponce's current repo.
If you want to build for 14.2, stick with the one in SBo and always, run "su -" before running the build process for all packages.
 
Old 07-30-2021, 01:16 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
hi there,
I only mixed them intentionally. It was only after the 14.2 repo failed to successfully build docker that I tried ponce's repo.
Sticking to 14.2 though it fails and I wonder if anyone has had the same issue.

To be precise: it seems as if there is a step missing in the slackbuild or that somehow the build process has changed since the slackbuild was implemented. And I would like to verify if currently using the 14.2 repo somebody (other than me) wanting to install docker would succeed.
 
Old 07-30-2021, 01:24 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
I think it fails because of the upgrade of google-go-lang to 1.16.3: some components of the docker build queue need an additional line to satisfy the newer google-go-lang but this has been added only to SBo's master branch on git, not on the 14.2 repository because submission closed before we found out about this.

for example docker-proxy.SlackBuild has to be amended like this
Code:
@@ -60,6 +60,7 @@ find -L . \
 mkdir build
 mv vendor build/src
 
+GO111MODULE=auto \
 GOPATH=$TMP/$SRCNAM-$GITHASH/build \
 go build -o $PKG/usr/bin/docker-proxy ./cmd/proxy
the alternative is to revert google-go-lang to version 1.14.14.
 
2 members found this post helpful.
Old 07-30-2021, 04:52 AM   #5
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
Hm in that case and since I already successfully slackbuilt the rest of the dependencies from Ponce's repo and that failed to start the dockerd successfully, it makes sense to go the other way and downgrade google-go-lang.


Is is possible to do that using sbopkg?
I mean I would normally need to
  1. copy google-go-lang.tar.gz ad extract under the local repo in /var/lib/sbopkg/local/


    Code:
    cp /var/lib/sbopkg/SBo/14.2/development/google-go-lang/google-go-lang.tar.gz /var/lib/sbopkg/local/development/google-go-lang/google-go-lang
    tar xzvf /var/lib/sbopkg/local/development/google-go-lang/google-go-lang/google-go-lang.tar.gz
  2. update the .Slackbuild to point to version 1.14.14, and the .info file with where to get the latest file from .
  3. sbopkg -V local/local
  4. then I try to browse for the google-go-land, but the "readme" and "info" commands cannot open the respective files, and the "install" command points to 1.16.3 version, possibly because there exist the previously created pkg at /root/SBoTGZ/google-go-lang-1.16.3-x86_64-1_SBo.tgz as seen in the attached image Screenshot_2021-07-30_11-37-14.png .
  5. if I remove the .tgz I still cannot start the build. The error is shown in Screenshot_2021-07-30_11-51-42.png

So am I using the sbopkg wrongly here ?
Is my only option to perform the slackbuild completely independent of sbopkg?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2021-07-30_11-37-14.png
Views:	15
Size:	110.6 KB
ID:	36871   Click image for larger version

Name:	Screenshot_2021-07-30_11-51-42.png
Views:	15
Size:	97.0 KB
ID:	36872  
 
Old 08-02-2021, 08:27 AM   #6
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
OK to close this thread properly,
I did manage to build containerd, docker-proxy, docker and docker-cli locally with or without sbopkg (had to delete the .tgz from the $OUTPUT dir).
I had to manually add the GO111MODULE=auto in the aforementioned slackbuilds, as mentioned by Ponce and explained here.

In the end I still had issues with running docker that included:
- failing to start because of devicemapper errors (this).
- failing to start because of cgroup errors
- starting but "docker info" would hang there
- starting but "docker info" would report it could not connect to the unix socket.

I somehow ended up finding this check-config.sh script which checks for kernel support for docker. I recompiled the kernel with all the necessary options and viola, it works!

EDIT:
Ah this is where I found out about it : https://www.linuxquestions.org/quest...ml#post6213662

Last edited by nass; 08-02-2021 at 08:51 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suitesparse /Cuda SBo, complains about too advanced GCC, although being built with GCC 5 from the same SBo. Lockywolf Slackware 5 04-28-2019 10:17 PM
nvidia-driver SBo The symbolic link '/usr/lib/libGL.so.1' does not point to 'tmp/SBo/package-nvidia-driver/usr/lib64/libGL.so.1' Gerardo Zamudio Slackware 5 07-30-2017 10:44 PM
Questions for Robby, ponce, or anyone from SBo about SBo submission requirements. ReaperX7 Slackware 4 06-07-2015 11:30 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration