Skip to content

Commit

Permalink
Fix issue with docker build context cache
Browse files Browse the repository at this point in the history
  • Loading branch information
npololnskii authored Nov 11, 2024
1 parent 39dc34a commit dbf8595
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ GRAFANA_TAG=dev

build-docker-full-local:
@echo "build docker container"
tar -ch . | \
docker buildx build - \
docker buildx build \
-f Dockerfile.local \
--platform $(PLATFORM) \
--build-arg BINGO=false \
Expand All @@ -246,12 +245,11 @@ build-docker-full-local:
--build-arg BUILD_BRANCH=$$(git rev-parse --abbrev-ref HEAD) \
--tag 406095609952.dkr.ecr.us-east-1.amazonaws.com/grafana-x:dev-$(TAG_SUFFIX) \
--load \
$(DOCKER_BUILD_ARGS)
$(DOCKER_BUILD_ARGS) .

build-docker-full: ## Build Docker image for development.
@echo "build docker container"
tar -ch . | \
docker buildx build - \
docker buildx build \
-f Dockerfile.local \
--platform $(PLATFORM) \
--build-arg BINGO=false \
Expand All @@ -260,12 +258,11 @@ build-docker-full: ## Build Docker image for development.
--build-arg COMMIT_SHA=$$(git rev-parse HEAD) \
--build-arg BUILD_BRANCH=$$(git rev-parse --abbrev-ref HEAD) \
--tag 406095609952.dkr.ecr.us-east-1.amazonaws.com/grafana-x:$(GRAFANA_TAG) \
$(DOCKER_BUILD_ARGS)
$(DOCKER_BUILD_ARGS) .

build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
@echo "build docker container"
tar -ch . | \
docker buildx build - \
docker buildx build \
-f Dockerfile.local \
--platform $(PLATFORM) \
--build-arg BINGO=false \
Expand All @@ -276,7 +273,7 @@ build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
--build-arg BASE_IMAGE=ubuntu:22.04 \
--build-arg GO_IMAGE=golang:1.21.8 \
--tag 406095609952.dkr.ecr.us-east-1.amazonaws.com/grafana-x:$(GRAFANA_TAG)-ubuntu \
$(DOCKER_BUILD_ARGS)
$(DOCKER_BUILD_ARGS) .

##@ Services

Expand Down

0 comments on commit dbf8595

Please sign in to comment.