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

Docker build issue with provided Dockerfile #82

Closed
cohortcw179 opened this issue Sep 5, 2023 · 4 comments · Fixed by #83
Closed

Docker build issue with provided Dockerfile #82

cohortcw179 opened this issue Sep 5, 2023 · 4 comments · Fixed by #83

Comments

@cohortcw179
Copy link

Tried using the Dockerfile provided in the source to build (multistage) my binary but I kept getting execv format error when I import tar into my Mikrotik router. However I have no issues if I would to build the linux/arm64 binary first followed by a docker build.

I noticed a warning message at the RUN CTRLD_NO_QF... ./scripts/build.sh stage if I would to use the provided Dockerfile. (see below)

=> => # /go/pkg/mod/github.com/quic-go/quic-go@v0.32.0/internal/qtls/go121.go:5:13: cannot use "The version of quic-go
 => => #  you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/w
 => => # iki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on
 => => # Go 1.21 yet. F...) as int value in variable declaration

Is the above message normal?

My Build Env

  • amd64
  • Ubuntu Jammy

Target build

  • arm64
  • linux
@cuonglm
Copy link
Collaborator

cuonglm commented Sep 5, 2023

This is expected.

ctrld version v1.3.0 (and current tip) is using quic-go version v0.32.0, which is not built with go 1.21 release. The next release of ctrld will upgrade quic-go to v0.38.0, which can be built with go 1.21

@cuonglm
Copy link
Collaborator

cuonglm commented Sep 5, 2023

Oh, wait, I saw that we are using FROM golang:bullseye as base, which will use the latest go version, which is go1.21, is that the issue you mention?

We probably want to stick with FROM golang:go1.20-bullseye as base before new release.

cuonglm added a commit that referenced this issue Sep 5, 2023
The current quic-go v0.32.0 could not be built with go 1.21, next
release of ctrld will upgrade it to latest version.

Fixes #82
@cuonglm
Copy link
Collaborator

cuonglm commented Sep 5, 2023

@cohortcw179 Please try #83 and see if it fixed the issue for you. Thanks.

@cohortcw179
Copy link
Author

@cuonglm Your suggest works perfectly. Thanks!

@yegors yegors closed this as completed in #83 Sep 6, 2023
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 a pull request may close this issue.

2 participants