Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 9a6bd12

Browse files
committed
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 <[email protected]>
1 parent d527c4f commit 9a6bd12

File tree

9 files changed

+12
-8
lines changed

9 files changed

+12
-8
lines changed

.ci/azure/pipelines/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- bash: |
2323
sudo apt-get update -y -qq
24-
sudo apt-get --no-install-recommends install -y git
24+
sudo apt-get --no-install-recommends install -y apt-utils ca-certificates git
2525
git config --global user.email "[email protected]"
2626
git config --global user.name "azure-pipeline"
2727
displayName: 'Setup'

Jenkinsfiles/release_pieline/bump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ install_go() {
4747

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

ccloudvm/kata-docker-xenial.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runcmd:
3434
- 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"
3535
- {{proxyVars .}} curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
3636
- sudo -E apt-get update
37-
- sudo -E apt-get --no-install-recommends install -y kata-runtime
37+
- sudo -E apt-get --no-install-recommends install -y apt-utils ca-certificates kata-runtime
3838
- {{endTaskCheck .}}
3939

4040
...

snap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Kata Containers can be installed in any Linux distribution that supports
1717
[snapd](https://docs.snapcraft.io/installing-snapd). For this example, we
1818
assume Ubuntu as your base distro.
1919
```sh
20-
$ sudo apt-get --no-install-recommends install -y snapd snapcraft
20+
$ sudo apt-get --no-install-recommends install -y apt-utils ca-certificates snapd snapcraft
2121
```
2222

2323
## Install snap

snap/snapcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ parts:
196196
# install podman
197197
sudo add-apt-repository -y ppa:projectatomic/ppa
198198
sudo apt-get update
199-
sudo apt-get --no-install-recommends install -y podman
199+
sudo apt-get --no-install-recommends install -y apt-utils ca-certificates podman
200200
201201
# Build and install cni plugings
202202
echo "Retrieve CNI plugins repository"
@@ -382,7 +382,7 @@ parts:
382382
done
383383
384384
# Only x86_64 supports libpmem
385-
[ "$(uname -m)" = "x86_64" ] && sudo apt-get --no-install-recommends install -y libpmem-dev
385+
[ "$(uname -m)" = "x86_64" ] && sudo apt-get --no-install-recommends install -y apt-utils ca-certificates libpmem-dev
386386
387387
chmod +x ${SNAPCRAFT_STAGE}/scripts/configure-hypervisor.sh
388388
# static build

static-build/cloud-hypervisor/docker-build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
FROM ubuntu:18.04
77

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

static-build/qemu-virtiofs/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ ARG PREFIX
99
WORKDIR /root/qemu-virtiofs
1010
RUN apt-get update && apt-get upgrade -y
1111
RUN apt-get --no-install-recommends install -y \
12+
apt-utils \
1213
autoconf \
1314
automake \
1415
bc \
1516
bison \
17+
ca-certificates \
1618
cpio \
1719
flex \
1820
gawk \

static-build/qemu/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ ARG PREFIX
99
WORKDIR /root/qemu
1010
RUN apt-get update && apt-get upgrade -y
1111
RUN apt-get --no-install-recommends install -y \
12+
apt-utils \
1213
autoconf \
1314
automake \
1415
bc \
1516
bison \
17+
ca-certificates \
1618
cpio \
1719
flex \
1820
gawk \

tests/run_obs_testing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ generate_dockerfile() {
5050
;;
5151
debian|ubuntu)
5252
UPDATE="apt-get -y update"
53-
DEPENDENCIES="apt-get --no-install-recommends install -y curl git gnupg2 lsb-release sudo"
53+
DEPENDENCIES="apt-get --no-install-recommends install -y apt-utils ca-certificates curl git gnupg2 lsb-release sudo"
5454
;;
5555
fedora)
5656
UPDATE="dnf -y update"

0 commit comments

Comments
 (0)