Skip to content

Commit

Permalink
Fix Docker build missing required ARG (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Feb 23, 2023
1 parent 6f745cd commit e1ed36b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ upload: package

.PHONY: build-image
build-image:
$(MAKE) -C docker build
$(MAKE) -C docker build AGENT_VERSION=$(VERSION)

.PHONY: push-image
push-image:
$(MAKE) -C docker push
$(MAKE) -C docker push AGENT_VERSION=$(VERSION)

.PHONY: clean
# FIXME change to python based so we can run on windows
Expand Down
6 changes: 2 additions & 4 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ D := docker

P := grpc http kafka

TARGETS := py3.7 py3.8 py3.9 py3.10 python3.11 py3.7-slim py3.8-slim py3.9-slim py3.10-slim python3.11-slim
TARGETS := py3.7 py3.8 py3.9 py3.10 py3.11 py3.7-slim py3.8-slim py3.9-slim py3.10-slim py3.11-slim

py3.7: BASE_PYTHON_IMAGE = python:3.7
py3.8: BASE_PYTHON_IMAGE = python:3.8
Expand All @@ -33,8 +33,6 @@ py3.11-slim: BASE_PYTHON_IMAGE = python:3.11-slim

PUSH_TARGETS := $(TARGETS:%=push-%)

word-dash = $(word $2,$(subst -, ,$1))

build: $(TARGETS)
push: $(PUSH_TARGETS)

Expand All @@ -50,7 +48,7 @@ $(TARGETS):


$(PUSH_TARGETS):
$(eval version := $(call word-dash,$@,2))
$(eval version := $(subst push-,,$@))
for p in $(P); do \
$(D) push apache/skywalking-python:${AGENT_VERSION}-$$p-${version}; \
done

0 comments on commit e1ed36b

Please sign in to comment.