Skip to content

Commit d5e4f97

Browse files
dalehamelleodido
authored andcommitted
Fix init container build context
1 parent b5fcbb1 commit d5e4f97

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

Makefile

+22-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ ${trace_runner}:
3939
clean:
4040
rm -Rf _output
4141

42+
<<<<<<< HEAD
43+
=======
44+
.PHONY: image/build-alpine
45+
image/build-alpine:
46+
$(DOCKER) build \
47+
--build-arg bpftracesha=$(BPFTRACESHA) \
48+
--build-arg imagenamebase="$(IMAGE_NAME_BASE_ALPINE)" \
49+
$(IMAGE_BUILD_FLAGS) \
50+
-t "$(IMAGE_TRACERUNNER_BRANCH_ALPINE)" \
51+
-f build/Dockerfile.tracerunner-alpine .
52+
$(DOCKER) tag "$(IMAGE_TRACERUNNER_BRANCH_ALPINE)" $(IMAGE_TRACERUNNER_COMMIT_ALPINE)
53+
54+
.PHONY: image/build-ubuntu
55+
image/build-ubuntu:
56+
$(DOCKER) build \
57+
--build-arg bpftracesha=$(BPFTRACESHA) \
58+
--build-arg imagenamebase="$(IMAGE_NAME_BASE_UBUNTU)" \
59+
$(IMAGE_BUILD_FLAGS) \
60+
-t "$(IMAGE_TRACERUNNER_BRANCH_UBUNTU)" \
61+
-f build/Dockerfile.tracerunner-ubuntu .
62+
$(DOCKER) tag $(IMAGE_TRACERUNNER_BRANCH_UBUNTU) $(IMAGE_TRACERUNNER_COMMIT_UBUNTU)
63+
4264
.PHONY: image/build-init
4365
image/build-init:
4466
$(DOCKER) build \
@@ -56,7 +78,6 @@ image/build:
5678
$(DOCKER) tag $(IMAGE_TRACERUNNER_BRANCH) $(IMAGE_TRACERUNNER_COMMIT)
5779
$(DOCKER) tag "$(IMAGE_TRACERUNNER_BRANCH)" $(IMAGE_TRACERUNNER_BRANCH)
5880

59-
6081
.PHONY: image/push
6182
image/push:
6283
$(DOCKER) push $(IMAGE_TRACERUNNER_BRANCH)

init/Dockerfile.initcontainer renamed to build/Dockerfile.initcontainer

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ RUN apk add --update \
1010

1111
WORKDIR /
1212

13-
COPY /fetch-linux-headers.sh /
13+
COPY /init/fetch-linux-headers.sh /
1414

1515
ENTRYPOINT [ "/fetch-linux-headers.sh" ]
File renamed without changes.

hack/ci-build-image.sh

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ if [[ ! -z "$TRAVIS_PULL_REQUEST_BRANCH" ]]; then
88
makeopts="-e GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH"
99
fi
1010

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

0 commit comments

Comments
 (0)