Skip to content

Commit dd4a441

Browse files
authored
Merge branch 'main' into fdt_guest_memory
2 parents e7f2851 + f7bee6b commit dd4a441

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.buildkite/pipeline_perf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
# to a new kernel version tagged "linux_6.1-pinned"
122122
pins = {
123123
"linux_5.10-pinned": {"instance": "m6i.metal", "kv": "linux_5.10"},
124-
"linux_6.1-pinned": {"instance": "m6i.metal", "kv": "linux_6.1"},
125124
}
126125

127126

tools/devctr/Dockerfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ FROM public.ecr.aws/lts/ubuntu:22.04
66

77
ARG RUST_TOOLCHAIN="1.79.0"
88
ARG TMP_BUILD_DIR=/tmp/build
9-
ARG FIRECRACKER_SRC_DIR="/firecracker"
10-
ARG FIRECRACKER_BUILD_DIR="$FIRECRACKER_SRC_DIR/build"
11-
ARG CARGO_REGISTRY_DIR="$FIRECRACKER_BUILD_DIR/cargo_registry"
12-
ARG CARGO_GIT_REGISTRY_DIR="$FIRECRACKER_BUILD_DIR/cargo_git_registry"
139
ARG DEBIAN_FRONTEND=noninteractive
1410
ARG ARCH
1511

@@ -51,7 +47,7 @@ RUN apt-get update \
5147
&& apt-get -y install --no-install-recommends \
5248
# essential build tools
5349
gcc make libc-dev binutils-dev libssl-dev \
54-
# Useful utilifies
50+
# Useful utilities
5551
gdbserver \
5652
# Needed in order to be able to compile `userfaultfd-sys`.
5753
clang \
@@ -110,7 +106,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOL
110106
&& rustup target add x86_64-unknown-linux-musl \
111107
&& rustup target add aarch64-unknown-linux-musl \
112108
&& rustup component add llvm-tools-preview \
113-
&& cargo install --locked cargo-audit cargo-deny grcov cargo-sort \
109+
&& cargo install --locked cargo-audit cargo-deny grcov cargo-sort cargo-afl \
114110
&& (if [ "$ARCH" = "x86_64" ]; then cargo install --locked kani-verifier && cargo kani setup; else true; fi) \
115111
\
116112
&& apt-get update \
@@ -132,9 +128,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOL
132128
&& cd && rm -r /tmp/crosvm \
133129
\
134130
&& rm -rf "$CARGO_HOME/registry" \
135-
&& ln -s "$CARGO_REGISTRY_DIR" "$CARGO_HOME/registry" \
136-
&& rm -rf "$CARGO_HOME/git" \
137-
&& ln -s "$CARGO_GIT_REGISTRY_DIR" "$CARGO_HOME/git"
131+
&& rm -rf "$CARGO_HOME/git"
138132

139133
# help musl-gcc find linux headers
140134
RUN cd /usr/include/$ARCH-linux-musl \
@@ -162,5 +156,4 @@ RUN cd /usr/local/bin \
162156

163157
ADD tools/devctr/ctr_gitconfig /root/.gitconfig
164158

165-
WORKDIR "$FIRECRACKER_SRC_DIR"
166159
ENTRYPOINT ["/usr/bin/tini", "--"]

tools/devtool

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
DEVCTR_IMAGE_NO_TAG="public.ecr.aws/firecracker/fcuvm"
6969

7070
# Development container tag
71-
DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v73}
71+
DEVCTR_IMAGE_TAG=${DEVCTR_IMAGE_TAG:-v74}
7272

7373
# Development container image (name:tag)
7474
# This should be updated whenever we upgrade the development container.
@@ -228,6 +228,7 @@ cmd_fix_perms() {
228228
# Yes, running Docker to get elevated privileges, just to chown some files
229229
# is a dirty hack.
230230
run_devctr \
231+
--workdir "$CTR_FC_ROOT_DIR" \
231232
-- \
232233
chown -R "$(id -u):$(id -g)" "$CTR_FC_BUILD_DIR"
233234
}
@@ -305,6 +306,8 @@ run_devctr() {
305306
--rm \
306307
--volume /dev:/dev \
307308
--volume "$FC_ROOT_DIR:$CTR_FC_ROOT_DIR:z" \
309+
--volume "$FC_ROOT_DIR/build/cargo_registry:/usr/local/rust/registry:z" \
310+
--volume "$FC_ROOT_DIR/build/cargo_git_registry:/usr/local/rust/git:z" \
308311
--tmpfs /srv:exec,dev,size=32G \
309312
-v /boot:/boot \
310313
--env PYTHONDONTWRITEBYTECODE=1 \

0 commit comments

Comments
 (0)