Skip to content

Commit b4c2a22

Browse files
Updated SAI version to pre v1.17.0 (#265)
* Updated SAI version to pre v1.17.0 * Install cargo and rustc Signed-off-by: Andriy Kokhan <[email protected]>
1 parent 7c9f869 commit b4c2a22

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

dockerfiles/bookworm/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ RUN apt-get install -y \
4242
RUN apt-get install -y \
4343
libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libnl-nf-3-dev libzmq3-dev
4444

45-
COPY sai.env /
45+
ARG RUST_ROOT=/usr/.cargo
46+
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.86.0 -y'
47+
ENV RUSTUP_HOME $RUST_ROOT
48+
ENV PATH $PATH:$RUST_ROOT/bin
4649

50+
COPY sai.env /
4751
RUN git clone --recursive https://github.com/sonic-net/sonic-swss-common \
4852
&& cd sonic-swss-common \
4953
&& . /sai.env \

dockerfiles/bookworm/Dockerfile.server

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ RUN apt-get install -y \
4242
RUN apt-get install -y \
4343
libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libnl-nf-3-dev libzmq3-dev
4444

45+
ARG RUST_ROOT=/usr/.cargo
46+
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.86.0 -y'
47+
ENV RUSTUP_HOME $RUST_ROOT
48+
ENV PATH $PATH:$RUST_ROOT/bin
49+
4550
COPY sai.env /
4651
RUN git clone --recursive https://github.com/sonic-net/sonic-swss-common \
4752
&& cd sonic-swss-common \

dockerfiles/bullseye/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ RUN apt-get install -y \
4040
RUN apt-get install -y \
4141
libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libnl-nf-3-dev libzmq3-dev
4242

43+
ARG RUST_ROOT=/usr/.cargo
44+
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.86.0 -y'
45+
ENV RUSTUP_HOME $RUST_ROOT
46+
ENV PATH $PATH:$RUST_ROOT/bin
47+
4348
COPY sai.env /
4449
RUN git clone --recursive https://github.com/sonic-net/sonic-swss-common \
4550
&& cd sonic-swss-common \

dockerfiles/bullseye/Dockerfile.server

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ RUN apt-get install -y \
4040
RUN apt-get install -y \
4141
libnl-3-dev libnl-genl-3-dev libnl-route-3-dev libnl-nf-3-dev libzmq3-dev
4242

43+
ARG RUST_ROOT=/usr/.cargo
44+
RUN RUSTUP_HOME=$RUST_ROOT CARGO_HOME=$RUST_ROOT bash -c 'curl --proto "=https" -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.86.0 -y'
45+
ENV RUSTUP_HOME $RUST_ROOT
46+
ENV PATH $PATH:$RUST_ROOT/bin
47+
4348
COPY sai.env /
4449
RUN git clone --recursive https://github.com/sonic-net/sonic-swss-common \
4550
&& cd sonic-swss-common \

sai.env

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# The sonic-swss-common and sonic-sairedis commits were taken from
2-
# sonic-buildimage 202505 as of Sep 4, 2025
2+
# sonic-buildimage master as of Sep 5, 2025
33
#
4-
# https://github.com/sonic-net/sonic-buildimage/tree/1694622
4+
# https://github.com/sonic-net/sonic-buildimage/tree/59a84f5
55

6-
SWSS_COMMON_ID=bcfbb21
7-
SAIREDIS_ID=f32256e
6+
SWSS_COMMON_ID=e7ee75d
7+
SAIREDIS_ID=9abdf0f
88

99
# SAI version:
10-
# Branch v1.16.1
11-
# Apr 15, 2025
10+
# Branch pre v1.17.0
11+
# Jul 22, 2025
1212

13-
SAI_ID=23d8579
13+
SAI_ID=b925fc0

0 commit comments

Comments
 (0)