Skip to content

Commit

Permalink
Fix init container build context
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehamel authored and leodido committed Aug 31, 2019
1 parent b5fcbb1 commit d5e4f97
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
23 changes: 22 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,28 @@ ${trace_runner}:
clean:
rm -Rf _output

<<<<<<< HEAD
=======
.PHONY: image/build-alpine
image/build-alpine:
$(DOCKER) build \
--build-arg bpftracesha=$(BPFTRACESHA) \
--build-arg imagenamebase="$(IMAGE_NAME_BASE_ALPINE)" \
$(IMAGE_BUILD_FLAGS) \
-t "$(IMAGE_TRACERUNNER_BRANCH_ALPINE)" \
-f build/Dockerfile.tracerunner-alpine .
$(DOCKER) tag "$(IMAGE_TRACERUNNER_BRANCH_ALPINE)" $(IMAGE_TRACERUNNER_COMMIT_ALPINE)

.PHONY: image/build-ubuntu
image/build-ubuntu:
$(DOCKER) build \
--build-arg bpftracesha=$(BPFTRACESHA) \
--build-arg imagenamebase="$(IMAGE_NAME_BASE_UBUNTU)" \
$(IMAGE_BUILD_FLAGS) \
-t "$(IMAGE_TRACERUNNER_BRANCH_UBUNTU)" \
-f build/Dockerfile.tracerunner-ubuntu .
$(DOCKER) tag $(IMAGE_TRACERUNNER_BRANCH_UBUNTU) $(IMAGE_TRACERUNNER_COMMIT_UBUNTU)

.PHONY: image/build-init
image/build-init:
$(DOCKER) build \
Expand All @@ -56,7 +78,6 @@ image/build:
$(DOCKER) tag $(IMAGE_TRACERUNNER_BRANCH) $(IMAGE_TRACERUNNER_COMMIT)
$(DOCKER) tag "$(IMAGE_TRACERUNNER_BRANCH)" $(IMAGE_TRACERUNNER_BRANCH)


.PHONY: image/push
image/push:
$(DOCKER) push $(IMAGE_TRACERUNNER_BRANCH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RUN apk add --update \

WORKDIR /

COPY /fetch-linux-headers.sh /
COPY /init/fetch-linux-headers.sh /

ENTRYPOINT [ "/fetch-linux-headers.sh" ]
File renamed without changes.
1 change: 1 addition & 0 deletions hack/ci-build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ if [[ ! -z "$TRAVIS_PULL_REQUEST_BRANCH" ]]; then
makeopts="-e GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH"
fi

$make $makeopts bpftraceimage/build # HACK since the ubuntu image isn't pushed yet
$make $makeopts image/build
$make $makeopts image/build-init

0 comments on commit d5e4f97

Please sign in to comment.