This PS installs apt-transport-https ca-certificates packages

before adding ceph repo. Without this Jenkins is having
issues building images

Issue:
The method driver /usr/lib/apt/methods/https could not be found

Change-Id: I95061b62045cd8980b10e2d5f4991005b66c5b4c
This commit is contained in:
Krishna Venkata
2019-04-24 18:00:13 -05:00
parent b45f86dd5b
commit d0a13a6a5d
3 changed files with 12 additions and 10 deletions

View File

@@ -7,12 +7,15 @@ ARG CEPH_RELEASE=mimic
ARG ETCDCTL_VERSION=3.2.18
ARG CONFD_VERSION=0.16.0
ARG CEPH_REPO=http://mirror.mirantis.com/testing/ceph-mimic/xenial/
ARG CEPH_KEY=http://mirror.mirantis.com/testing/ceph-mimic/xenial/archive-ceph-mimic.key
ARG CEPH_REPO=https://mirror.mirantis.com/testing/ceph-mimic/xenial/
ARG CEPH_KEY=https://mirror.mirantis.com/testing/ceph-mimic/xenial/archive-ceph-mimic.key
ADD ${CEPH_KEY} /etc/apt/ceph-${CEPH_RELEASE}.key
RUN set -ex ;\
export DEBIAN_FRONTEND=noninteractive ;\
apt-get update ;\
apt-get dist-upgrade -y ;\
apt-get install -y apt-transport-https ca-certificates ;\
apt-key add /etc/apt/ceph-${CEPH_RELEASE}.key ;\
rm -f /etc/apt/ceph-${CEPH_RELEASE}.key ;\
echo "deb ${CEPH_REPO} xenial main" | tee /etc/apt/sources.list.d/ceph.list ;\
@@ -21,8 +24,6 @@ RUN set -ex ;\
apt-get update ;\
apt-get dist-upgrade -y ;\
apt-get install --no-install-recommends -y \
apt-transport-https \
ca-certificates \
ceph \
ceph-common \
radosgw \