Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

build using docker in template link to musl #33

@Codelax

Description

@Codelax

Describe the bug
The make docker command to build using docker and the Dockerfile produces builds that link to musl.
This make the binaries not working when using them with waypoint on a system that does not have musl as libc.

Steps to Reproduce

  • Download the linux build that is produced by this build in a plugin, for example cloudfoundry
  • file the binary
 ○ file waypoint-plugin-cloudfoundry
waypoint-plugin-cloudfoundry: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, Go BuildID=6AVyHUccoYweMVdpx9Ry/VkjT6-P2icj3imeXHyBd/XqYh8sw7MfBJRfNvR5iX/87-ju-GqBf5OD4Rr1iYh, not stripped

Expected behavior
The produced binaries should not dynamically link to alpine's libc

Additional context
I solved it on scaleway's side by adding CGO_ENABLED=0 when building binaries

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions