Skip to content

Commit

Permalink
Added --purge of base docker image packages before installing new one…
Browse files Browse the repository at this point in the history
…s. (sonic-net#819)

Why I did:
Swss debian package used in VS docker is not the same artifact as generated by Azure pipeline
Compared md5sum of binaries of Azure artifact swss debian package and the one running in VS docker and they are not matching.

How I did:
To fix this doing explicit purge all packages before re-installing.
  • Loading branch information
abdosi authored Apr 8, 2021
1 parent 1942d73 commit 70fff78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .azure-pipelines/docker-sonic-vs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ ARG docker_container_name

ADD ["debs", "/debs"]

RUN dpkg --purge python-swsscommon
RUN dpkg --purge python3-swsscommon
RUN dpkg --purge swss
RUN dpkg --purge libsairedis
RUN dpkg --purge libswsscommon
RUN dpkg --purge libsaimetadata
RUN dpkg --purge libsaivs
RUN dpkg --purge syncd-vs

RUN dpkg -i /debs/libswsscommon_1.0.0_amd64.deb
RUN dpkg -i /debs/python-swsscommon_1.0.0_amd64.deb
RUN dpkg -i /debs/python3-swsscommon_1.0.0_amd64.deb
Expand Down

0 comments on commit 70fff78

Please sign in to comment.