Skip to content

Conversation

@thaJeztah
Copy link
Member

libnetwork has been integrated in the docker/docker (moby) repository, and now is compiled as part of hack/make.sh dynbinary.

relates to moby/moby#42262 and moby/moby#42539

libnetwork has been integrated in the docker/docker (moby) repository,
and now is compiled as part of hack/make.sh dynbinary.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title Fix build-script for docker-proxy (after libnetwork integration) Fix build-script for docker-proxy (after libnetwork integration) and update to Go 1.16.5 Jun 29, 2021
@thaJeztah

This comment has been minimized.

@thaJeztah
Copy link
Member Author

According to https://bugs.centos.org/view.php?id=18212 / ComplianceAsCode/content#7016, looks like upgrading to libarchive-3.3.3-1.el8.x86_64 should resolve the problem.

Trying to fix

    + echo 'Install tini version de40ad007797e0dcd8b7126f27bb87401d224240'
    + git clone https://github.com/krallin/tini.git /go/tini
    Install tini version de40ad007797e0dcd8b7126f27bb87401d224240
    Cloning into '/go/tini'...
    + cd /go/tini
    + git checkout -q de40ad007797e0dcd8b7126f27bb87401d224240
    + cmake .
    cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd
    error: Bad exit status from /var/tmp/rpm-tmp.Dl5CDf (%build)

According to https://bugs.centos.org/view.php?id=18212, upgrading to libarchive-3.3.3-1.el8.x86_64
should resolve the problem.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Not sure why, but looks like the path used `<arch>-daemon` (instead of just `<arch>`).
However, it's not consistent either, because `containerutility.exe` is in `<arch>`?

When running:

    make REF=master checkout
    make REF=master DOCKER_BUILD_PKGS=cross-win static

The build failed:

    mkdir -p build/win/amd64/docker
    cp /Users/sebastiaan/go/src/github.com/docker/docker-ce-packaging/src/github.com/docker/cli/build/docker-windows-amd64.exe build/win/amd64/docker/docker.exe
    cp /Users/sebastiaan/go/src/github.com/docker/docker-ce-packaging/src/github.com/docker/docker/bundles/cross/windows/amd64/dockerd-0.0.0-20210629140245-4a6fe51.exe build/win/amd64/docker/dockerd.exe
    cp: /Users/sebastiaan/go/src/github.com/docker/docker-ce-packaging/src/github.com/docker/docker/bundles/cross/windows/amd64/dockerd-0.0.0-20210629140245-4a6fe51.exe: No such file or directory
    make[1]: *** [cross-win] Error 1
    make: *** [static] Error 2

This is what's in bundles:

    tree /Users/sebastiaan/go/src/github.com/docker/docker-ce-packaging/src/github.com/docker/docker/bundles/
    /Users/sebastiaan/go/src/github.com/docker/docker-ce-packaging/src/github.com/docker/docker/bundles/
    └── cross
        └── windows
            ├── amd64
            │   └── containerutility.exe
            └── amd64-daemon
                ├── docker-proxy-0.0.0-20210629140245-4a6fe51.exe
                ├── docker-proxy-0.0.0-20210629140245-4a6fe51.exe.md5
                ├── docker-proxy-0.0.0-20210629140245-4a6fe51.exe.sha256
                ├── docker-proxy.exe -> docker-proxy-0.0.0-20210629140245-4a6fe51.exe
                ├── dockerd-0.0.0-20210629140245-4a6fe51.exe
                ├── dockerd-0.0.0-20210629140245-4a6fe51.exe.md5
                ├── dockerd-0.0.0-20210629140245-4a6fe51.exe.sha256
                └── dockerd.exe -> dockerd-0.0.0-20210629140245-4a6fe51.exe

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Comment on lines +65 to +66
cp $(ENGINE_DIR)/bundles/cross/windows/amd64-daemon/dockerd-$(GEN_STATIC_VER).exe build/win/amd64/docker/dockerd.exe
cp $(ENGINE_DIR)/bundles/cross/windows/amd64-daemon/docker-proxy-$(GEN_STATIC_VER).exe build/win/amd64/docker/dockerd.exe
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR fixes the issue, but after this I want to look in the upstream moby repository "why" this path changed, because there's also some inconsistency here (<arch>-daemon for some binaries, and <arch> for others); see 09541b5

Copy link
Contributor

@fredericdalleau fredericdalleau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fredericdalleau fredericdalleau merged commit 4cd3a7e into docker:master Jul 2, 2021
@thaJeztah thaJeztah deleted the fix_docker_proxy_build branch July 2, 2021 14:58
@thaJeztah thaJeztah changed the title Fix build-script for docker-proxy (after libnetwork integration) and update to Go 1.16.5 [master] fix build-script for docker-proxy (after libnetwork integration) and update to Go 1.16.5 Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants