Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: wrong output location for server binary? #1766

Closed
5 tasks done
pat-s opened this issue May 17, 2023 · 3 comments · Fixed by #3065
Closed
5 tasks done

Dockerfile: wrong output location for server binary? #1766

pat-s opened this issue May 17, 2023 · 3 comments · Fixed by #3065
Labels
bug Something isn't working

Comments

@pat-s
Copy link
Contributor

pat-s commented May 17, 2023

Component

server

Describe the bug

When building locally on macOS via

make build
make release-server

the output location of the binaries go to dist/server/${TARGETOS}_${TARGETARCH}/woodpecker-server.

However, docker/Dockerfile.server.alpine.multiarch expects the binary at

COPY dist/server/${TARGETOS}/${TARGETARCH}/woodpecker-server /bin/

Is this a bug or a local deviation on macOS? I had to adjust the Dockerfile manually to be able to build the images.

System Info

macOS 13.3.1

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
  • Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
@pat-s pat-s added the bug Something isn't working label May 17, 2023
@qwerty287
Copy link
Contributor

Is this still relevant?

@pat-s
Copy link
Contributor Author

pat-s commented Nov 6, 2023

Can't say as make build currently fails for me with

/opt/homebrew/Cellar/go/1.21.3/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

👀

@qwerty287
Copy link
Contributor

@pat-s Is it working again?

6543 pushed a commit that referenced this issue Dec 29, 2023
fernandrone pushed a commit to quintoandar/woodpecker that referenced this issue Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants