1- FROM registry.hub.docker.com/library/golang:1.20 -alpine3.16 AS build
1+ FROM registry.hub.docker.com/library/golang:1.22 -alpine3.18 AS build
22
33# Install build depdencies for all supported arches
44RUN apk --no-cache add bash build-base cmake device-mapper findutils git \
@@ -18,14 +18,16 @@ RUN export DBG="-g -Wall" && \
1818
1919# ipmctl only supports Intel x86_64 processors.
2020# https://github.com/intel/ipmctl/issues/163
21- RUN if [ "$(uname --machine)" = "x86_64" ]; then \
22- git clone -b v02.00.00.3885 https://github.com/intel/ipmctl/ && \
23- cd ipmctl && \
24- mkdir output && \
25- cd output && \
26- cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/ -DCMAKE_INSTALL_LIBDIR=/usr/local/lib .. && \
27- make -j all && \
28- make install; fi
21+
22+ # Disable libipmctl due to https://github.com/google/cadvisor/issues/3482
23+ # RUN if [ "$(uname --machine)" = "x86_64" ]; then \
24+ # git clone -b v02.00.00.3885 https://github.com/intel/ipmctl/ && \
25+ # cd ipmctl && \
26+ # mkdir output && \
27+ # cd output && \
28+ # cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/ -DCMAKE_INSTALL_LIBDIR=/usr/local/lib .. && \
29+ # make -j all && \
30+ # make install; fi
2931
3032WORKDIR /go/src/github.com/google/cadvisor
3133
@@ -42,11 +44,13 @@ ARG VERSION
4244# libipmctl only works on x86_64 CPUs.
4345RUN export GO_TAGS="libpfm,netgo" ; \
4446 if [ "$(uname --machine)" = "x86_64" ]; then \
45- export GO_TAGS="$GO_TAGS,libipmctl" ; \
47+ # Disable libipmctl due to https://github.com/google/cadvisor/issues/3482
48+ # export GO_TAGS="$GO_TAGS,libipmctl"; \
49+ export GO_TAGS="$GO_TAGS" ; \
4650 fi; \
4751 GO_FLAGS="-tags=$GO_TAGS" ./build/build.sh
4852
49- FROM mirror.gcr.io/library/alpine:3.16
53+ FROM mirror.gcr.io/library/alpine:3.18
50545155
5256RUN apk --no-cache add libc6-compat device-mapper findutils ndctl zfs && \
0 commit comments