File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ FROM public.ecr.aws/lts/ubuntu:22.04
6
6
7
7
ARG RUST_TOOLCHAIN="1.79.0"
8
8
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"
13
9
ARG DEBIAN_FRONTEND=noninteractive
14
10
ARG ARCH
15
11
@@ -132,9 +128,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain "$RUST_TOOL
132
128
&& cd && rm -r /tmp/crosvm \
133
129
\
134
130
&& 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"
138
132
139
133
# help musl-gcc find linux headers
140
134
RUN cd /usr/include/$ARCH-linux-musl \
@@ -162,5 +156,4 @@ RUN cd /usr/local/bin \
162
156
163
157
ADD tools/devctr/ctr_gitconfig /root/.gitconfig
164
158
165
- WORKDIR "$FIRECRACKER_SRC_DIR"
166
159
ENTRYPOINT ["/usr/bin/tini" , "--" ]
Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ cmd_fix_perms() {
228
228
# Yes, running Docker to get elevated privileges, just to chown some files
229
229
# is a dirty hack.
230
230
run_devctr \
231
+ --workdir " $CTR_FC_ROOT_DIR " \
231
232
-- \
232
233
chown -R " $( id -u) :$( id -g) " " $CTR_FC_BUILD_DIR "
233
234
}
@@ -305,6 +306,8 @@ run_devctr() {
305
306
--rm \
306
307
--volume /dev:/dev \
307
308
--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" \
308
311
--tmpfs /srv:exec,dev,size=32G \
309
312
-v /boot:/boot \
310
313
--env PYTHONDONTWRITEBYTECODE=1 \
You can’t perform that action at this time.
0 commit comments