lazydocker icon indicating copy to clipboard operation
lazydocker copied to clipboard

Bump alpine version to 3.17

Open biran4454 opened this issue 1 year ago • 6 comments

Prevent docker build error (armv8) as Golang haven't released an alpine 3.15 version on 1.20.

biran4454 avatar Oct 25 '23 20:10 biran4454

Tested this on an arm64v8 device. The image builds successfully (following the README instructions).

turbcool avatar Nov 04 '23 17:11 turbcool

This PR should close #497 .

mark2185 avatar Nov 04 '23 23:11 mark2185

i am having trouble building with this change -

──── git diff
diff --git a/Dockerfile b/Dockerfile
index 9719593..502093c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
 ARG BASE_IMAGE_BUILDER=golang
-ARG ALPINE_VERSION=3.15
+ARG ALPINE_VERSION=3.17
 ARG GO_VERSION=1.20

 FROM ${BASE_IMAGE_BUILDER}:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
──── docker build -t lazyteam/lazydocker --build-arg BASE_IMAGE_BUILDER=arm64v8/golang --build-arg GOARCH=arm64 https://github.com/jesseduffield/lazydocker.git
[+] Building 5.3s (3/3) FINISHED                                                                                                                                                                     docker:default
 => CACHED [internal] load git source https://github.com/jesseduffield/lazydocker.git                                                                                                                          3.6s
 => ERROR [internal] load metadata for docker.io/arm64v8/golang:1.20-alpine3.15                                                                                                                                1.5s
 => [auth] arm64v8/golang:pull token for registry-1.docker.io                                                                                                                                                  0.0s
------
 > [internal] load metadata for docker.io/arm64v8/golang:1.20-alpine3.15:
------
Dockerfile:19
--------------------
  17 |         -X main.buildSource=Docker"
  18 |
  19 | >>> FROM ${BASE_IMAGE_BUILDER}:${GO_VERSION}-alpine${ALPINE_VERSION} AS docker-builder
  20 |     ARG GOARCH=amd64
  21 |     ARG GOARM
--------------------
ERROR: failed to solve: arm64v8/golang:1.20-alpine3.15: docker.io/arm64v8/golang:1.20-alpine3.15: not found

am i doing something wrong? i dont see any reference to 3.15 anywhere in the repo after the change but some how it still think its looking for alpine3.15 ...

note: this is on a raspberry pi so i am not sure how the argument would be -

──── dpkg --print-architecture
armhf

cwong-archy avatar Nov 28 '23 00:11 cwong-archy

──── docker build -t lazyteam/lazydocker --build-arg BASE_IMAGE_BUILDER=arm64v8/golang --build-arg GOARCH=arm64 https://github.com/jesseduffield/lazydocker.git

Looks like you're still building from the main git repo rather than the forked / local one.

biran4454 avatar Nov 28 '23 01:11 biran4454

──── docker build -t lazyteam/lazydocker --build-arg BASE_IMAGE_BUILDER=arm64v8/golang --build-arg GOARCH=arm64 https://github.com/jesseduffield/lazydocker.git

Looks like you're still building from the main git repo rather than the forked / local one.

thank you!!! good catch!!! 😅

cwong-archy avatar Nov 28 '23 01:11 cwong-archy

──── docker build -t lazyteam/lazydocker --build-arg BASE_IMAGE_BUILDER=arm64v8/golang --build-arg GOARCH=arm64 https://github.com/jesseduffield/lazydocker.git

Looks like you're still building from the main git repo rather than the forked / local one.

thank you!!! good catch!!! 😅

@biran4454 appreciate the help. finally got it built. for raspberry pi (hopefully this will help others), i had to pass these values during build -

docker build -t lazyteam/lazydocker --build-arg BASE_IMAGE_BUILDER=arm32v7/golang --build-arg GOARCH=arm .

cwong-archy avatar Nov 28 '23 01:11 cwong-archy

This is obsoleted by https://github.com/jesseduffield/lazydocker/pull/561, closing

jesseduffield avatar Jul 21 '24 10:07 jesseduffield