[baseimage]: Install netifaces package in sonic-slave docker and sonic image (#1353)
This commit is contained in:
parent
b506241b84
commit
1eecdb31bf
@ -337,6 +337,10 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT easy_install pip
|
|||||||
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'
|
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'
|
||||||
## Note: keep pip installed for maintainance purpose
|
## Note: keep pip installed for maintainance purpose
|
||||||
|
|
||||||
|
## Get gcc and python dev pkgs
|
||||||
|
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install gcc libpython2.7-dev
|
||||||
|
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'netifaces==0.10.7'
|
||||||
|
|
||||||
## Create /var/run/redis folder for docker-database to mount
|
## Create /var/run/redis folder for docker-database to mount
|
||||||
sudo mkdir -p $FILESYSTEM_ROOT/var/run/redis
|
sudo mkdir -p $FILESYSTEM_ROOT/var/run/redis
|
||||||
|
|
||||||
@ -379,11 +383,14 @@ if [ "${enable_organization_extensions}" = "y" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Remove gcc and python dev pkgs
|
||||||
|
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y remove gcc libpython2.7-dev
|
||||||
|
|
||||||
## Update initramfs
|
## Update initramfs
|
||||||
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
|
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
|
||||||
|
|
||||||
## Clean up apt
|
## Clean up apt
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoremove
|
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y autoremove
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoclean
|
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoclean
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get clean
|
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get clean
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT bash -c 'rm -rf /usr/share/doc/* /usr/share/locale/* /var/lib/apt/lists/* /tmp/*'
|
sudo LANG=C chroot $FILESYSTEM_ROOT bash -c 'rm -rf /usr/share/doc/* /usr/share/locale/* /var/lib/apt/lists/* /tmp/*'
|
||||||
|
@ -278,7 +278,7 @@ RUN pip install --force-reinstall --upgrade jinja2>=2.10
|
|||||||
RUN pip install j2cli
|
RUN pip install j2cli
|
||||||
|
|
||||||
# For sonic utilities testing
|
# For sonic utilities testing
|
||||||
RUN pip install click-default-group click natsort tabulate
|
RUN pip install click-default-group click natsort tabulate netifaces==0.10.7
|
||||||
|
|
||||||
# For supervisor build
|
# For supervisor build
|
||||||
RUN pip install meld3 mock
|
RUN pip install meld3 mock
|
||||||
|
Loading…
Reference in New Issue
Block a user