Skip to content

Commit 184c001

Browse files
authored
[sonic-utilities-build] Complete the transition to build in Buster environment (sonic-net#135)
This is an addendum to PR Azure/sonic-build-tools#132, which didn't fully transition the build environment to Buster.
1 parent 730b8c6 commit 184c001

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • scripts/common/sonic-utilities-build

scripts/common/sonic-utilities-build/build.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ sudo pip install jsondiff==1.2.0
2424
2525
sudo pip3 install buildimage/target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl
2626
27-
sudo dpkg -i buildimage/target/debs/stretch/libyang_1.0.73_amd64.deb
28-
sudo dpkg -i buildimage/target/debs/stretch/libyang-cpp_1.0.73_amd64.deb
29-
sudo dpkg -i buildimage/target/debs/stretch/python2-yang_1.0.73_amd64.deb
27+
sudo dpkg -i buildimage/target/debs/buster/libyang_1.0.73_amd64.deb
28+
sudo dpkg -i buildimage/target/debs/buster/libyang-cpp_1.0.73_amd64.deb
29+
sudo dpkg -i buildimage/target/debs/buster/python2-yang_1.0.73_amd64.deb
3030
3131
cd sonic-utilities
3232
@@ -39,21 +39,21 @@ chmod 755 build_sonic_utilities.sh
3939

4040
# Build sonic-utilities and copy resulting Debian package
4141
docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWD sonicdev-microsoft.azurecr.io:443
42-
docker pull sonicdev-microsoft.azurecr.io:443/sonic-slave-stretch:latest
43-
docker run --rm=true --privileged -v $(pwd):/sonic -w /sonic -i sonicdev-microsoft.azurecr.io:443/sonic-slave-stretch:latest ./build_sonic_utilities.sh
42+
docker pull sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:latest
43+
docker run --rm=true --privileged -v $(pwd):/sonic -w /sonic -i sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:latest ./build_sonic_utilities.sh
4444

4545
cp sonic-utilities/deb_dist/python-sonic-utilities_*.deb buildimage/target/python-debs/
4646

4747
cd sairedis
48-
cp *.deb ../buildimage/target/debs/stretch/
48+
cp *.deb ../buildimage/target/debs/buster/
4949
cd ../
5050

5151
cd swss
52-
cp *.deb ../buildimage/target/debs/stretch/
52+
cp *.deb ../buildimage/target/debs/buster/
5353
cd ../
5454

5555
cd swss-common
56-
cp *.deb ../buildimage/target/debs/stretch/
56+
cp *.deb ../buildimage/target/debs/buster/
5757
cd ../
5858

5959
on_exit()
@@ -70,8 +70,8 @@ mkdir -p docker-sonic-vs/debs
7070
mkdir -p docker-sonic-vs/files
7171
mkdir -p docker-sonic-vs/python-debs
7272
mkdir -p docker-sonic-vs/python-wheels
73-
sudo mount --bind ../../target/debs/stretch docker-sonic-vs/debs
74-
sudo mount --bind ../../target/files/stretch docker-sonic-vs/files
73+
sudo mount --bind ../../target/debs/buster docker-sonic-vs/debs
74+
sudo mount --bind ../../target/files/buster docker-sonic-vs/files
7575
sudo mount --bind ../../target/python-debs docker-sonic-vs/python-debs
7676
sudo mount --bind ../../target/python-wheels docker-sonic-vs/python-wheels
7777
docker load < ../../target/docker-config-engine-buster.gz

0 commit comments

Comments
 (0)