File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ RUN apk add --no-cache \
10
10
11
11
# Download the Firecracker binary from Github
12
12
ARG FIRECRACKER_VERSION
13
- # If amd64 is set, this is "". If arm64, this should be "-aarch64".
14
- ARG ARCH_SUFFIX
15
- RUN wget -q -O /usr/local/bin/firecracker https://github.com/firecracker-microvm/firecracker/releases/download/${FIRECRACKER_VERSION}/firecracker-${FIRECRACKER_VERSION}${ARCH_SUFFIX }
13
+ # If amd64 is set, this is "-x86_64 ". If arm64, this should be "-aarch64".
14
+ ARG FIRECRACKER_ARCH_SUFFIX
15
+ RUN wget -q -O /usr/local/bin/firecracker https://github.com/firecracker-microvm/firecracker/releases/download/${FIRECRACKER_VERSION}/firecracker-${FIRECRACKER_VERSION}${FIRECRACKER_ARCH_SUFFIX }
16
16
17
17
# Add ignite-spawn to the image
18
18
ADD ./ignite-spawn /usr/local/bin/ignite-spawn
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ export DOCKER_CLI_EXPERIMENTAL := enabled
61
61
ifeq ($(GOARCH ) ,amd64)
62
62
QEMUARCH =amd64
63
63
BASEIMAGE =alpine:3.9
64
- ARCH_SUFFIX =
64
+ FIRECRACKER_ARCH_SUFFIX =-x86_64
65
65
endif
66
66
ifeq ($(GOARCH ) ,arm64)
67
67
QEMUARCH =aarch64
68
68
BASEIMAGE =arm64v8/alpine:3.9
69
- ARCH_SUFFIX =-aarch64
69
+ FIRECRACKER_ARCH_SUFFIX =-aarch64
70
70
endif
71
71
72
72
E2E_REGEX := Test
108
108
endif
109
109
$(DOCKER) build -t $(IMAGE):${IMAGE_DEV_TAG}-$(GOARCH) \
110
110
--build-arg FIRECRACKER_VERSION=${FIRECRACKER_VERSION} \
111
- --build-arg ARCH_SUFFIX =${ARCH_SUFFIX } bin/$(GOARCH)
111
+ --build-arg FIRECRACKER_ARCH_SUFFIX =${FIRECRACKER_ARCH_SUFFIX } bin/$(GOARCH)
112
112
# Load the dev image into the host's containerd content store
113
113
$(DOCKER) image save $(IMAGE):${IMAGE_DEV_TAG}-$(GOARCH) \
114
114
| $(CTR) -n firecracker image import -
You can’t perform that action at this time.
0 commit comments