File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
tools /image-builder /rootfs /
2
2
tmp /
3
+
4
+ _submodules /firecracker /
5
+ ! _submodules /firecracker /build /kernel /linux-4.14 /* .bin
Original file line number Diff line number Diff line change 46
46
FIRECRACKER_TARGET? =$(host_arch ) -unknown-linux-musl
47
47
48
48
FIRECRACKER_DIR =$(SUBMODULES ) /firecracker
49
- FIRECRACKER_BIN =$( FIRECRACKER_DIR ) /build/cargo_target/ $( FIRECRACKER_TARGET ) /release /firecracker
49
+ FIRECRACKER_BIN =bin /firecracker
50
50
FIRECRACKER_BUILDER_NAME? =firecracker-builder
51
51
CARGO_CACHE_VOLUME_NAME? =cargocache
52
52
@@ -337,6 +337,7 @@ $(FIRECRACKER_DIR)/Cargo.toml:
337
337
$(FIRECRACKER_BIN ) : $(FIRECRACKER_DIR ) /Cargo.toml
338
338
$(FIRECRACKER_DIR ) /tools/devtool -y build --release && \
339
339
$(FIRECRACKER_DIR ) /tools/devtool strip
340
+ cp $(FIRECRACKER_DIR ) /build/cargo_target/$(FIRECRACKER_TARGET ) /release/firecracker $@
340
341
341
342
.PHONY : firecracker-clean
342
343
firecracker-clean :
Original file line number Diff line number Diff line change @@ -56,11 +56,12 @@ RUN wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$VERSION
56
56
install -D -o root -g root -m755 -t /usr/local/bin /tmp/critest && \
57
57
rm -f critest-$VERSION-linux-amd64.tar.gz /tmp/critest
58
58
59
+ ADD bin/firecracker /usr/local/bin
60
+
59
61
# Install everything we need in this image. Due to the bind-mount, if the host has already
60
62
# up-to-date versions of everything built, this step will be a very quick copy
61
63
RUN --mount=type=bind,target=/src make -C /src \
62
64
install \
63
- install-firecracker \
64
65
install-runc \
65
66
install-kernel \
66
67
install-default-rootfs \
You can’t perform that action at this time.
0 commit comments