File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,23 @@ ARG CAB_DNF_PACKAGES_ALT=""
4848ARG CAB_DNF_GROUPS_ALT=""
4949RUN ./tools/dnf.sh "${CAB_DNF_PACKAGES_ALT}" "${CAB_DNF_GROUPS_ALT}"
5050
51+ ENV CARGO_HOME=/cab/cargo
52+ ENV RUSTUP_HOME=/cab/rustup
53+ ENV PATH="$PATH:/cab/cargo/bin"
54+
55+ RUN rustup-init --no-modify-path -y
56+
57+ RUN rustup toolchain install nightly
58+ RUN rustup toolchain install stable
59+ RUN rustup component add --toolchain nightly rust-src
60+ RUN rustup component add --toolchain stable rust-src
61+ RUN rustup target add x86_64-unknown-linux-gnu
62+ RUN rustup target add i686-unknown-linux-gnu
63+
64+
65+ RUN chgrp -R wheel /cab/cargo /cab/rustup
66+ RUN chmod -R g=u /cab/cargo /cab/rustup
67+
5168RUN git config --system --add safe.directory '*'
5269
5370RUN rm -rf /cab/tools
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ target "virtual-ci-c-util" {
169169 " rpm-build" ,
170170 " rpmdevtools" ,
171171 " rust" ,
172+ " rustup" ,
172173 " sed" ,
173174 " strace" ,
174175 " sudo" ,
@@ -289,6 +290,7 @@ target "virtual-dbrk-ci-fedora" {
289290 " rpm-build" ,
290291 " rpmdevtools" ,
291292 " rust" ,
293+ " rustup" ,
292294 " sed" ,
293295 " strace" ,
294296 " sudo" ,
@@ -478,6 +480,7 @@ target "virtual-dbrk-fedora-base" {
478480 " procps-ng" ,
479481 " python3-docutils" ,
480482 " rust" ,
483+ " rustup" ,
481484 " strace" ,
482485 " sudo" ,
483486 " systemd" ,
@@ -561,6 +564,7 @@ target "virtual-fedpkg" {
561564 " rpm-build" ,
562565 " rpmdevtools" ,
563566 " rust" ,
567+ " rustup" ,
564568 " sed" ,
565569 " strace" ,
566570 " sudo" ,
You can’t perform that action at this time.
0 commit comments