Skip to content

[0.11 backport] hack/test: allow ALPINE_VERSION to be set from env#4542

Merged
crazy-max merged 3 commits intomoby:v0.11from
thaJeztah:0.11_alpine_version_buildarg
Jan 10, 2024
Merged

[0.11 backport] hack/test: allow ALPINE_VERSION to be set from env#4542
crazy-max merged 3 commits intomoby:v0.11from
thaJeztah:0.11_alpine_version_buildarg

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Jan 10, 2024

@thaJeztah thaJeztah added this to the v0.11.7 milestone Jan 10, 2024
@thaJeztah
Copy link
Copy Markdown
Member Author

Hm... is cross in this branch still broken?

 > [linux/amd64->riscv64 runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#38 80.09 # github.com/opencontainers/runc
#38 80.09 /usr/local/go/pkg/tool/linux_amd64/link: running riscv64-alpine-linux-musl-clang failed: exit status 1
#38 80.09 clang-15: error: unable to execute command: Segmentation fault (core dumped)
#38 80.09 clang-15: error: linker command failed due to signal (use -v to see invocation)
#38 80.09 
------
Dockerfile:65
--------------------
  64 |       [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
  65 | >>> RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \
  66 | >>>   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
  67 | >>>   xx-verify --static /usr/bin/runc
  68 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.

@thaJeztah thaJeztah self-assigned this Jan 10, 2024
@crazy-max
Copy link
Copy Markdown
Member

Hm... is cross in this branch still broken?

 > [linux/amd64->riscv64 runc 3/3] RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc:
#38 80.09 # github.com/opencontainers/runc
#38 80.09 /usr/local/go/pkg/tool/linux_amd64/link: running riscv64-alpine-linux-musl-clang failed: exit status 1
#38 80.09 clang-15: error: unable to execute command: Segmentation fault (core dumped)
#38 80.09 clang-15: error: linker command failed due to signal (use -v to see invocation)
#38 80.09 
------
Dockerfile:65
--------------------
  64 |       [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
  65 | >>> RUN --mount=from=runc-src,src=/usr/src/runc,target=. --mount=target=/root/.cache,type=cache \
  66 | >>>   CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ && \
  67 | >>>   xx-verify --static /usr/bin/runc
  68 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_ENABLED=1 xx-go build -mod=vendor -ldflags '-extldflags -static' -tags 'apparmor seccomp netgo cgo static_build osusergo' -o /usr/bin/runc ./ &&   xx-verify --static /usr/bin/runc" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.

Hum yeah I think it needs xx update in the Dockerfile

crazy-max and others added 3 commits January 10, 2024 14:36
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 5955ccf)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit bb18da8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 295c899)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the 0.11_alpine_version_buildarg branch from ea5e7d6 to df0923f Compare January 10, 2024 13:36
@thaJeztah
Copy link
Copy Markdown
Member Author

Added 5955ccf 🤞

@crazy-max crazy-max merged commit d080776 into moby:v0.11 Jan 10, 2024
@thaJeztah thaJeztah deleted the 0.11_alpine_version_buildarg branch January 10, 2024 14:39
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