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 11tools /image-builder /rootfs /
22tmp /
3+
4+ _submodules /firecracker /
5+ ! _submodules /firecracker /build /kernel /linux-4.14 /* .bin
Original file line number Diff line number Diff line change 4646FIRECRACKER_TARGET? =$(host_arch ) -unknown-linux-musl
4747
4848FIRECRACKER_DIR =$(SUBMODULES ) /firecracker
49- FIRECRACKER_BIN =$( FIRECRACKER_DIR ) /build/cargo_target/ $( FIRECRACKER_TARGET ) /release /firecracker
49+ FIRECRACKER_BIN =bin /firecracker
5050FIRECRACKER_BUILDER_NAME? =firecracker-builder
5151CARGO_CACHE_VOLUME_NAME? =cargocache
5252
@@ -337,6 +337,7 @@ $(FIRECRACKER_DIR)/Cargo.toml:
337337$(FIRECRACKER_BIN ) : $(FIRECRACKER_DIR ) /Cargo.toml
338338 $(FIRECRACKER_DIR ) /tools/devtool -y build --release && \
339339 $(FIRECRACKER_DIR ) /tools/devtool strip
340+ cp $(FIRECRACKER_DIR ) /build/cargo_target/$(FIRECRACKER_TARGET ) /release/firecracker $@
340341
341342.PHONY : firecracker-clean
342343firecracker-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
5656 install -D -o root -g root -m755 -t /usr/local/bin /tmp/critest && \
5757 rm -f critest-$VERSION-linux-amd64.tar.gz /tmp/critest
5858
59+ ADD bin/firecracker /usr/local/bin
60+
5961# Install everything we need in this image. Due to the bind-mount, if the host has already
6062# up-to-date versions of everything built, this step will be a very quick copy
6163RUN --mount=type=bind,target=/src make -C /src \
6264 install \
63- install-firecracker \
6465 install-runc \
6566 install-kernel \
6667 install-default-rootfs \
You can’t perform that action at this time.
0 commit comments