Hello to everyone.

I've restarted the tutorial from the beginning and I'm trying to accomplish
the next step,as indicated where he says :

"*Note* containerd by default installs as static in the install script. Due
to that failing (most likely needs musl to properly compile statically) I
instead decided to install it as dynamic, meaning it needed to be one-offed"

According with the tutorial I've created the script called
compile_docker_utils.sh and I have set it +x and I ran it :

compile_docker_utils.sh

PREFIX="$HOME/docker_utils" ./install.sh containerd dynamic
for package in "runc vndr"
do
 PREFIX="$HOME/docker_utils" ./install.sh $package
done


This is what happens :

+ RM_GOPATH=0
+ TMP_GOPATH=
+ : /home/marietto/docker_utils
+ '[' -z '' ']'
++ mktemp -d
+ export GOPATH=/tmp/tmp.ZhgEkEF3Ly
+ GOPATH=/tmp/tmp.ZhgEkEF3Ly
+ RM_GOPATH=1
+ case "$(go env GOARCH)" in
++ go env GOARCH
+ export GO_BUILDMODE=-buildmode=pie
+ GO_BUILDMODE=-buildmode=pie
++ dirname ./install.sh
+ dir=.
+ bin=containerd
+ shift
+ '[' '!' -f ./containerd.installer ']'
+ . ./containerd.installer
++ set -e
++ : v1.6.20
+ install_containerd dynamic
+ echo 'Install containerd version v1.6.20'
Install containerd version v1.6.20
+ git clone https://github.com/containerd/containerd.git
/tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd
Clone in '/tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd' in
corso...
remote: Enumerating objects: 111847, done.
remote: Counting objects: 100% (288/288), done.
remote: Compressing objects: 100% (159/159), done.
remote: Total 111847 (delta 147), reused 237 (delta 126), pack-reused
111559
Ricezione degli oggetti: 100% (111847/111847), 94.08 MiB | 6.21 MiB/s,
fatto.
Risoluzione dei delta: 100% (70427/70427), fatto.
Aggiornamento dei file in corso: 100% (5268/5268), fatto.
+ cd /tmp/tmp.ZhgEkEF3Ly/src/github.com/containerd/containerd
+ git checkout -q v1.6.20
+ export 'BUILDTAGS=netgo osusergo static_build'
+ BUILDTAGS='netgo osusergo static_build'
+ export EXTRA_FLAGS=-buildmode=pie
+ EXTRA_FLAGS=-buildmode=pie
+ export 'EXTRA_LDFLAGS=-extldflags "-fno-PIC -static"'
+ EXTRA_LDFLAGS='-extldflags "-fno-PIC -static"'
+ '[' dynamic = dynamic ']'
+ export BUILDTAGS=
+ BUILDTAGS=
+ export EXTRA_FLAGS=
+ EXTRA_FLAGS=
+ export EXTRA_LDFLAGS=
+ EXTRA_LDFLAGS=
+ make
+ bin/ctr
go: no such tool "compile"
make: *** [Makefile:249: bin/ctr] Errore 2
+ RM_GOPATH=0
+ TMP_GOPATH=
+ : /home/marietto/docker_utils
+ '[' -z '' ']'
++ mktemp -d
+ export GOPATH=/tmp/tmp.exqHoLQLtJ
+ GOPATH=/tmp/tmp.exqHoLQLtJ
+ RM_GOPATH=1
+ case "$(go env GOARCH)" in
++ go env GOARCH
+ export GO_BUILDMODE=-buildmode=pie
+ GO_BUILDMODE=-buildmode=pie
++ dirname ./install.sh
+ dir=.
+ bin=runc
+ shift
+ '[' '!' -f ./runc.installer ']'
+ . ./runc.installer
++ set -e
++ : v1.1.5
+ install_runc proxy tini tomlv vndr
+ RUNC_BUILDTAGS=seccomp
+ echo 'Install runc version v1.1.5 (build tags: seccomp)'
Install runc version v1.1.5 (build tags: seccomp)
+ git clone https://github.com/opencontainers/runc.git
/tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc
Clone in '/tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc' in
corso...
remote: Enumerating objects: 38294, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 38294 (delta 23), reused 59 (delta 18), pack-reused 38217
Ricezione degli oggetti: 100% (38294/38294), 18.24 MiB | 4.57 MiB/s, fatto.
Risoluzione dei delta: 100% (25163/25163), fatto.
+ cd /tmp/tmp.exqHoLQLtJ/src/github.com/opencontainers/runc
+ git checkout -q v1.1.5
+ '[' -z proxy ']'
+ target=proxy
+ make BUILDTAGS=seccomp proxy
make: ***  No rule to make target «proxy».  Stop.


The same happens with tini,tomlv,vndr. Are these components fundamentals
for running docker ? Why won't it compile them ? Is there another method to
install them ? Thanks.


On Tue, Apr 25, 2023 at 2:34 AM Ian Lance Taylor <i...@golang.org> wrote:

> On Mon, Apr 24, 2023 at 5:24 PM Mario Marietto <marietto2...@gmail.com>
> wrote:
> >
> > root@marietto-nano:/home/marietto/Scaricati/go_git/src# bash make.bash
> >
> > WARNING: /home/marietto/go1.10.3/bin/go does not exist, found
> /usr/bin/go from env
> > WARNING: set /usr/lib/go-1.18 as GOROOT_BOOTSTRAP
> > Building Go cmd/dist using /usr/lib/go-1.18. (go1.18.1 linux/arm64)
> > Building Go toolchain1 using /usr/lib/go-1.18.
> > Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
> > Building Go toolchain2 using go_bootstrap and Go toolchain1.
> > Building Go toolchain3 using go_bootstrap and Go toolchain2.
> > Building packages and commands for linux/arm64.
> > ---
> > Installed Go for linux/arm64 in /home/marietto/Scaricati/go_git
> > Installed commands in /home/marietto/Scaricati/go_git/bin
> > *** You need to add /home/marietto/Scaricati/go_git/bin to your PATH.
> >
> > It seems that everything is going well right now. What should I do next
> to compile and build docker ? Can you tell me at which exact point of the
> tutorial I should restart ? (this is the tutorial that I'm following :
> >
> > https://gist.github.com/cwgem/c913c80dcb8eeef38abc30ff3abf1750
>
> I've never tried this myself and I have no idea whether it works.  But
> where those instructions say "all.bash", just run "make.bash" and keep
> following the instructions as though you ran "all.bash".
>
> Ian
>


-- 
Mario.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2B1FSih2iPAzHc29OaN9ListpszaeQCzntEYD86wZ5KmGw1Z7Q%40mail.gmail.com.

Reply via email to