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

Error during docker build on Windows 11 #244

Open
amias-channer opened this issue Mar 27, 2023 · 1 comment
Open

Error during docker build on Windows 11 #244

amias-channer opened this issue Mar 27, 2023 · 1 comment

Comments

@amias-channer
Copy link

Hello All ,

Thanks for writing and sharing pumba , very much appreciated :)

I am having trouble building the docker image on Wndows 11

I download and build with these commands :

git clone [email protected]:alexei-led/pumba.git
cd pumba
docker build -t pumba -f docker/Dockerfile .

docker gets busy pulling in the layers and it all looks good until I get this output

#19 9.970 level=warning msg="[runner] Can't run linter goanalysis_metalinter: gci: 4:13: expected ';', found "math/rand" (and 10 more errors)"
#19 9.970 level=info msg="[runner] processing took 2.466µs with stages: max_same_issues: 414ns, skip_dirs: 407ns, nolint: 279ns, max_from_linter: 181ns, uniq_by_line: 139ns, cgo: 136ns, path_prettifier: 132ns, filename_unadjuster: 131ns, autogenerated_exclude: 120ns, skip_files: 118ns, sort_results: 44ns, source_code: 44ns, path_shortener: 43ns, exclude-rules: 40ns, diff: 40ns, exclude: 40ns, max_per_file_from_linter: 40ns, identifier_marker: 40ns, severity-rules: 39ns, path_prefixer: 39ns"
#19 9.970 level=info msg="[runner] linters took 4.08231213s with stages: goanalysis_metalinter: 4.082266s"
#19 9.970 level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: gci: 4:13: expected ';', found "math/rand" (and 10 more errors)\n\n"
#19 9.970 level=info msg="Memory: 44 samples, avg is 398.7MB, max is 546.5MB"
#19 9.970 level=info msg="Execution took 4.222525474s"
#19 9.991 make: *** [Makefile:123: lint] Error 3

executor failed running [/bin/sh -c if [ -z "$SKIP_TESTS" ] || [ "$SKIP_TESTS" = false ]; then make lint test-coverage; fi]: exit code: 2

It looks like one of the upstream go dependencies is no longer passing the linter checks, i really don't know go enough to fix it myself does anyone have any ideas ? could a version be rolled back to prevent this ?

Cheers
Amias

@alexei-led
Copy link
Owner

alexei-led commented Apr 2, 2023

Try running the following command:

DOCKER_BUILDKIT=1 docker build -t pumba -f docker/Dockerfile --build-arg TARGETOS=linux --build-arg TARGETARCH=amd64 .

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

No branches or pull requests

2 participants