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
2
2
3
3
# Install build depdencies for all supported arches
4
4
RUN apk --no-cache add bash build-base cmake device-mapper findutils git \
@@ -18,14 +18,16 @@ RUN export DBG="-g -Wall" && \
18
18
19
19
# ipmctl only supports Intel x86_64 processors.
20
20
# 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
29
31
30
32
WORKDIR /go/src/github.com/google/cadvisor
31
33
@@ -42,11 +44,13 @@ ARG VERSION
42
44
# libipmctl only works on x86_64 CPUs.
43
45
RUN export GO_TAGS="libpfm,netgo" ; \
44
46
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" ; \
46
50
fi; \
47
51
GO_FLAGS="-tags=$GO_TAGS" ./build/build.sh
48
52
49
- FROM mirror.gcr.io/library/alpine:3.16
53
+ FROM mirror.gcr.io/library/alpine:3.18
50
54
51
55
52
56
RUN apk --no-cache add libc6-compat device-mapper findutils ndctl zfs && \
0 commit comments