@@ -5,18 +5,18 @@ DOCKER_IMAGE_REPO ?= quay.io/thanos/thanos
5
5
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD) ) -$(shell date +% Y-% m-% d) -$(shell git rev-parse --short HEAD)
6
6
DOCKER_CI_TAG ?= test
7
7
8
- SHA =''
8
+ BASE_DOCKER_SHA =''
9
9
arch = $(shell uname -m)
10
10
# Run `DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect quay.io/prometheus/busybox:latest` to get SHA or
11
11
# just visit https://quay.io/repository/prometheus/busybox?tag=latest&tab=tags.
12
- # TODO(bwplotka): Pinning is important but somehow quay kills the old images, so make sure to update regularly (dependabot?)
13
- # Update at 2020.2.01
12
+ # TODO(bwplotka): Pinning is important but somehow quay kills the old images, so make sure to update regularly.
13
+ # Update at 2021.6.07
14
14
ifeq ($(arch ) , x86_64)
15
15
# amd64
16
- SHA ="14d68ca3d69fceaa6224250c83d81d935c053fb13594c811038c461194599973 "
16
+ BASE_DOCKER_SHA ="de4af55df1f648a334e16437c550a2907e0aed4f0b0edf454b0b215a9349bdbb "
17
17
else ifeq ($(arch), armv8)
18
18
# arm64
19
- SHA ="4dd2d3bba195563e6cb2b286f23dc832d0fda6c6662e6de2e86df454094b44d8 "
19
+ BASE_DOCKER_SHA ="5591971699f6cf8abf6776495385e9d62751111a8cba56bf4946cf1d0de425ed "
20
20
else
21
21
echo >&2 "only support amd64 or arm64 arch" && exit 1
22
22
endif
@@ -147,7 +147,7 @@ docker: build
147
147
@echo " >> copying Thanos from $( PREFIX) to ./thanos_tmp_for_docker"
148
148
@cp $(PREFIX ) /thanos ./thanos_tmp_for_docker
149
149
@echo " >> building docker image 'thanos'"
150
- @docker build -t " thanos" --build-arg SHA =$(SHA ) .
150
+ @docker build -t " thanos" --build-arg BASE_DOCKER_SHA =$(BASE_DOCKER_SHA ) .
151
151
@rm ./thanos_tmp_for_docker
152
152
else
153
153
docker : docker-multi-stage
@@ -157,7 +157,7 @@ endif
157
157
docker-multi-stage : # # Builds 'thanos' docker image using multi-stage.
158
158
docker-multi-stage :
159
159
@echo " >> building docker image 'thanos' with Dockerfile.multi-stage"
160
- @docker build -f Dockerfile.multi-stage -t " thanos" --build-arg SHA =$(SHA ) .
160
+ @docker build -f Dockerfile.multi-stage -t " thanos" --build-arg BASE_DOCKER_SHA =$(BASE_DOCKER_SHA ) .
161
161
162
162
.PHONY : docker-push
163
163
docker-push : # # Pushes 'thanos' docker image build to "$(DOCKER_IMAGE_REPO):$(DOCKER_IMAGE_TAG)".
0 commit comments