@@ -112,51 +112,52 @@ $(1)-debug: UNSTRIPPED=-unstripped
112
112
$(1)-debug: $(1)
113
113
endef
114
114
115
- # bpflock-builder-img image
116
- $(eval $(call DOCKER_IMAGE_TEMPLATE,bpflock-builder-img,$(ROOT_DIR)/images/builder/,bpflock-builder,$(DOCKER_IMAGE_TAG)))
115
+ $(eval $(call DOCKER_IMAGE_TEMPLATE,image/bpflock-builder,$(ROOT_DIR)/images/builder/,bpflock-builder,$(DOCKER_IMAGE_TAG)))
117
116
118
- .PHONY: bpflock-builder-tag
119
- bpflock-builder-tag: bpflock-builder ## Tag bpflock-builder images.
120
- $(CONTAINER_ENGINE) tag $(IMAGE_REPOSITORY)/bpflock-builder:$(DOCKER_IMAGE_TAG) $(IMAGE_REPOSITORY)/bpflock-builder:$(GIT_TAG)
117
+ # Build bpflock image
118
+ $(eval $(call DOCKER_IMAGE_TEMPLATE,image/bpflock,$(ROOT_DIR)/images/docker/,bpflock,$(GIT_TAG)))
121
119
122
- # bpflock-img
123
- $(eval $(call DOCKER_IMAGE_TEMPLATE,bpflock-img,$(ROOT_DIR)/images/docker/,bpflock,$(GIT_TAG)))
120
+ ## Tag built images
121
+ .PHONY: image/bpflock-builder-tag
122
+ image/bpflock-builder-tag: ## Tag bpflock-builder images.
123
+ $(CONTAINER_ENGINE) tag $(IMAGE_REPOSITORY)/bpflock-builder:$(DOCKER_IMAGE_TAG) $(IMAGE_REPOSITORY)/bpflock-builder:$(GIT_TAG)
124
124
125
- .PHONY: bpflock-tag
126
- bpflock-tag: bpflock ## Tag docker bpflock image.
125
+ .PHONY: image/ bpflock-tag
126
+ image/ bpflock-tag: ## Tag docker bpflock image.
127
127
$(CONTAINER_ENGINE) tag $(IMAGE_REPOSITORY)/bpflock:$(GIT_TAG) $(IMAGE_REPOSITORY)/bpflock:$(DOCKER_IMAGE_TAG)
128
128
129
- .PHONY: bpflock-builder-tag
130
- bpflock-builder-push: bpflock-builder-tag ## Push bpflock builder images.
129
+ ## Push built images
130
+ .PHONY: image/bpflock-builder-push
131
+ image/bpflock-builder-push: image/bpflock-builder-tag ## Push bpflock builder images.
131
132
$(CONTAINER_ENGINE) push $(IMAGE_REPOSITORY)/bpflock-builder:$(GIT_TAG)
132
133
@echo 'Build: $(IMAGE_REPOSITORY)/bpflock-builder:$(GIT_TAG) image pushed'
133
134
$(CONTAINER_ENGINE) push $(IMAGE_REPOSITORY)/bpflock-builder:$(DOCKER_IMAGE_TAG)
134
135
@echo 'Build: $(IMAGE_REPOSITORY)/bpflock-builder:$(DOCKER_IMAGE_TAG) image pushed'
135
136
136
- .PHONY: bpflock-builder -push
137
- bpflock-push: bpflock-tag ## Push bpflock images.
137
+ .PHONY: image/ bpflock-push
138
+ image/ bpflock-push: image/ bpflock-tag ## Push bpflock images.
138
139
$(CONTAINER_ENGINE) push $(IMAGE_REPOSITORY)/bpflock:$(GIT_TAG)
139
140
@echo 'Build: $(IMAGE_REPOSITORY)/bpflock:$(GIT_TAG) image pushed'
140
141
$(CONTAINER_ENGINE) push $(IMAGE_REPOSITORY)/bpflock:$(DOCKER_IMAGE_TAG)
141
142
@echo 'Build: $(IMAGE_REPOSITORY)/bpflock:$(GIT_TAG) image pushed'
142
143
143
- # bpflock-integration-img
144
- $(eval $(call DOCKER_IMAGE_TEMPLATE,bpflock-integration-img ,$(ROOT_DIR)/images/docker/,bpflock-integration,$(DOCKER_IMAGE_TAG)))
144
+ # image/ bpflock-integration
145
+ $(eval $(call DOCKER_IMAGE_TEMPLATE,image/ bpflock-integration,$(ROOT_DIR)/images/docker/,bpflock-integration,$(DOCKER_IMAGE_TAG)))
145
146
146
147
#
147
148
# docker-*-all targets are mainly used from the CI
148
149
#
149
150
.PHONY: images
150
- images: bpflock-builder-img bpflock-img ## Build all bpflock related docker images.
151
+ images: image/ bpflock-builder image/ bpflock ## Build all bpflock related docker images.
151
152
152
- .PHONY: tag
153
- tag: bpflock-builder-tag bpflock-tag ## Tag and push all bpflock related docker images.
153
+ .PHONY: images/ tag
154
+ images/ tag: image/ bpflock-builder-tag image/ bpflock-tag ## Tag all bpflock related docker images.
154
155
155
- .PHONY: push
156
- push: bpflock-builder-push bpflock-push ## Push all bpflock related docker images.
156
+ .PHONY: images/ push
157
+ images/ push: image/ bpflock-builder-push image/ bpflock-push ## Push all bpflock related docker images.
157
158
158
- .PHONY: clean- images
159
- clean- images: ## Remove bpflock docker images including builder.
159
+ .PHONY: images/clean
160
+ images/clean : ## Remove bpflock docker images including builder.
160
161
@$(DOCKER) container rm -f $(shell $(DOCKER) container ls -aq | grep "bpflock" -) 2>/dev/null || true
161
162
@$(DOCKER) rmi -f $(shell $(DOCKER) images --format '{{.Repository}}:{{.Tag}}' | grep "bpflock" -) 2>/dev/null || true
162
163
0 commit comments