cryptaliagy / httpget

a ridiculously simple and small http get client to use for health checks
3 stars 0 forks source link

linux/arm64 images #6

Closed isker closed 10 months ago

isker commented 1 year ago

Hi. Thank you for making this tool.

I'd love to use it on linux/arm64, but the docker images are only published for linux/amd64 (i.e. x64). Could you also publish them for arm64?

cryptaliagy commented 1 year ago

I'll see what I can do!

isker commented 1 year ago

Thanks!

cryptaliagy commented 10 months ago

Reopening since I'm still getting some small issues

cryptaliagy commented 10 months ago

@isker I've got a pipeline publishing ARM64 images, starting with version 0.1.22. Are you able to do some testing on your end for some extra validation?

isker commented 10 months ago

Seems like it works! This is on my ARM macbook:

λ cat Dockerfile 
FROM python:3
COPY --from=ghcr.io/cryptaliagy/httpget:latest /httpget /httpget
ENTRYPOINT ["python", "-m", "http.server"]
HEALTHCHECK --interval=5s --timeout=5s --start-period=5s --retries=3 CMD ["/httpget", "http://localhost:8000/healthz"]
λ docker run test
127.0.0.1 - - [17/Dec/2023 02:10:49] code 404, message File not found
127.0.0.1 - - [17/Dec/2023 02:10:49] "GET /healthz HTTP/1.1" 404 -
127.0.0.1 - - [17/Dec/2023 02:10:54] code 404, message File not found
127.0.0.1 - - [17/Dec/2023 02:10:54] "GET /healthz HTTP/1.1" 404 -
[ ... ]
λ docker image inspect test | rg Architecture
        "Architecture": "arm64",
λ docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS                      PORTS     NAMES
0c60d3bf5fd8   test    "python -m http.serv…"   28 seconds ago   Up 28 seconds (unhealthy)             stoic_almeida

Thank you very much!