debian: Install missing ca-certificates package

Because CI build is

1.  Slow and in log it is showing because "apt-utils" not installed

2. to avoid CI build to exits with error without having certificate

Fixes: #970

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
This commit is contained in:
Pratik Raj 2020-03-17 12:01:32 +05:30
parent d527c4ff64
commit 9a6bd12e11
9 changed files with 12 additions and 8 deletions

View File

@ -21,7 +21,7 @@ jobs:
- bash: |
sudo apt-get update -y -qq
sudo apt-get --no-install-recommends install -y git
sudo apt-get --no-install-recommends install -y apt-utils ca-certificates git
git config --global user.email "azure-pipeline@kata.io"
git config --global user.name "azure-pipeline"
displayName: 'Setup'

View File

@ -47,7 +47,7 @@ install_go() {
install_docker() {
echo "Installing docker"
sudo -E apt-get --no-install-recommends install -y apt-transport-https ca-certificates software-properties-common
sudo -E apt-get --no-install-recommends install -y apt-transport-https apt-utils ca-certificates software-properties-common
curl -sL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
arch=$(dpkg --print-architecture)
sudo -E add-apt-repository "deb [arch=${arch}] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

View File

@ -34,7 +34,7 @@ runcmd:
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/ /' > /etc/apt/sources.list.d/kata-containers.list"
- {{proxyVars .}} curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
- sudo -E apt-get update
- sudo -E apt-get --no-install-recommends install -y kata-runtime
- sudo -E apt-get --no-install-recommends install -y apt-utils ca-certificates kata-runtime
- {{endTaskCheck .}}
...

View File

@ -17,7 +17,7 @@ Kata Containers can be installed in any Linux distribution that supports
[snapd](https://docs.snapcraft.io/installing-snapd). For this example, we
assume Ubuntu as your base distro.
```sh
$ sudo apt-get --no-install-recommends install -y snapd snapcraft
$ sudo apt-get --no-install-recommends install -y apt-utils ca-certificates snapd snapcraft
```
## Install snap

View File

@ -196,7 +196,7 @@ parts:
# install podman
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt-get update
sudo apt-get --no-install-recommends install -y podman
sudo apt-get --no-install-recommends install -y apt-utils ca-certificates podman
# Build and install cni plugings
echo "Retrieve CNI plugins repository"
@ -382,7 +382,7 @@ parts:
done
# Only x86_64 supports libpmem
[ "$(uname -m)" = "x86_64" ] && sudo apt-get --no-install-recommends install -y libpmem-dev
[ "$(uname -m)" = "x86_64" ] && sudo apt-get --no-install-recommends install -y apt-utils ca-certificates libpmem-dev
chmod +x ${SNAPCRAFT_STAGE}/scripts/configure-hypervisor.sh
# static build

View File

@ -6,7 +6,7 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get --no-install-recommends install -yq build-essential mtools libssl-dev pkg-config curl git
RUN apt-get --no-install-recommends install -yq apt-utils ca-certificates build-essential mtools libssl-dev pkg-config curl git
RUN nohup curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
ENV PATH="/root/.cargo/bin:${PATH}"

View File

@ -9,10 +9,12 @@ ARG PREFIX
WORKDIR /root/qemu-virtiofs
RUN apt-get update && apt-get upgrade -y
RUN apt-get --no-install-recommends install -y \
apt-utils \
autoconf \
automake \
bc \
bison \
ca-certificates \
cpio \
flex \
gawk \

View File

@ -9,10 +9,12 @@ ARG PREFIX
WORKDIR /root/qemu
RUN apt-get update && apt-get upgrade -y
RUN apt-get --no-install-recommends install -y \
apt-utils \
autoconf \
automake \
bc \
bison \
ca-certificates \
cpio \
flex \
gawk \

View File

@ -50,7 +50,7 @@ generate_dockerfile() {
;;
debian|ubuntu)
UPDATE="apt-get -y update"
DEPENDENCIES="apt-get --no-install-recommends install -y curl git gnupg2 lsb-release sudo"
DEPENDENCIES="apt-get --no-install-recommends install -y apt-utils ca-certificates curl git gnupg2 lsb-release sudo"
;;
fedora)
UPDATE="dnf -y update"