diff --git a/images/calicoctl-utility/Dockerfile.ubuntu_focal b/images/calicoctl-utility/Dockerfile.ubuntu_focal index c18cfdb5..c319eab1 100644 --- a/images/calicoctl-utility/Dockerfile.ubuntu_focal +++ b/images/calicoctl-utility/Dockerfile.ubuntu_focal @@ -23,16 +23,16 @@ RUN set -xe \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ && apt-get install -y --no-install-recommends \ - bash \ - locales \ - moreutils \ - sudo \ - socat \ - python3.8 \ - python3-pip \ - && pip3 install --upgrade pip \ - && pip3 install \ - oslo.rootwrap==6.3.1 \ + bash \ + locales \ + moreutils \ + sudo \ + socat \ + python3.8 \ + python3-pip \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ + oslo.rootwrap==6.3.1 \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* diff --git a/images/ceph-utility/Dockerfile.ubuntu_bionic b/images/ceph-utility/Dockerfile.ubuntu_bionic old mode 100755 new mode 100644 diff --git a/images/ceph-utility/Dockerfile.ubuntu_focal b/images/ceph-utility/Dockerfile.ubuntu_focal old mode 100755 new mode 100644 index 0511136a..8d74830f --- a/images/ceph-utility/Dockerfile.ubuntu_focal +++ b/images/ceph-utility/Dockerfile.ubuntu_focal @@ -8,10 +8,10 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc org.opencontainers.image.vendor='The Airship Authors' \ org.opencontainers.image.licenses='Apache-2.0' -# Quincy 12.2.5 +# Quincy 17.2.6 ARG CEPH_RELEASE=quincy ARG CEPH_RELEASE_TAG=17.2.6-1focal -ARG KUBE_VERSION=1.28.4 +ARG KUBE_VERSION=1.28.5 ARG CEPH_REPO=https://mirror.mirantis.com/acicd/ceph-quincy/ ARG CEPH_KEY=https://mirror.mirantis.com/acicd/ceph-quincy/release.asc @@ -22,38 +22,37 @@ RUN set -xe \ && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ - && apt-get install -y wget curl apt-transport-https ca-certificates gnupg \ + && apt-get install -y --no-install-recommends curl apt-transport-https ca-certificates gnupg \ && apt-key add /etc/apt/ceph-${CEPH_RELEASE}.key \ && rm -f /etc/apt/ceph-${CEPH_RELEASE}.key \ && echo "deb ${CEPH_REPO} focal main" | tee /etc/apt/sources.list.d/ceph.list \ && apt-get update \ - && apt-get install -y \ - bash \ - moreutils \ - vim \ - sudo \ - screen \ - ceph=${CEPH_RELEASE_TAG} \ - ceph-common=${CEPH_RELEASE_TAG} \ - python3-rbd \ - radosgw=${CEPH_RELEASE_TAG} \ - hexedit \ - jq \ - s3cmd \ - rsyslog \ - rsync \ - xz-utils \ - iperf \ - python3.8 \ - python3-pip \ - && pip3 install --upgrade pip \ - && pip3 install \ - oslo.rootwrap==6.3.1 \ - && apt-get remove --purge -y wget apt-transport-https \ - && apt-get autoremove -y \ - && apt-get clean \ + && apt-get install -y --no-install-recommends \ + bash \ + moreutils \ + vim \ + sudo \ + screen \ + ceph=${CEPH_RELEASE_TAG} \ + ceph-common=${CEPH_RELEASE_TAG} \ + python3-rbd \ + radosgw=${CEPH_RELEASE_TAG} \ + hexedit \ + jq \ + s3cmd \ + rsyslog \ + rsync \ + xz-utils \ + iperf \ + python3.8 \ + python3-pip \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ + oslo.rootwrap==6.3.1 \ && curl --silent -L https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz \ - | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + && apt-get purge --autoremove -y apt-transport-https \ + && apt-get clean \ && rm -rf \ /var/lib/apt/lists/* diff --git a/images/compute-utility/Dockerfile.ubuntu_bionic b/images/compute-utility/Dockerfile.ubuntu_bionic old mode 100755 new mode 100644 diff --git a/images/compute-utility/Dockerfile.ubuntu_focal b/images/compute-utility/Dockerfile.ubuntu_focal old mode 100755 new mode 100644 index 2e77b875..0ff32e8d --- a/images/compute-utility/Dockerfile.ubuntu_focal +++ b/images/compute-utility/Dockerfile.ubuntu_focal @@ -8,7 +8,7 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc org.opencontainers.image.vendor='The Airship Authors' \ org.opencontainers.image.licenses='Apache-2.0' -ARG KUBE_VERSION=1.28.4 +ARG KUBE_VERSION=1.28.5 ARG DEBIAN_FRONTEND=noninteractive @@ -16,36 +16,32 @@ RUN set -xe \ && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ - && apt-get install -y apt-transport-https \ - bash \ - ca-certificates \ - openvswitch-switch \ - curl \ - gnupg \ - hexedit \ - iperf \ - iproute2 \ - jq \ - moreutils \ - radosgw \ - rsyslog \ - s3cmd \ - rsync \ - sudo \ - wget \ - xz-utils \ - python3.8 \ - python3-pip \ - && pip3 install --upgrade pip \ - && pip3 install \ + && apt-get install -y --no-install-recommends \ + bash \ + ca-certificates \ + openvswitch-switch \ + curl \ + gnupg \ + hexedit \ + iperf \ + iproute2 \ + jq \ + moreutils \ + radosgw \ + rsyslog \ + s3cmd \ + rsync \ + sudo \ + xz-utils \ + python3.8 \ + python3-pip \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ oslo.rootwrap==6.3.1 \ - && apt-get remove --purge -y wget apt-transport-https \ - && apt-get autoremove -y \ - && apt-get clean \ && curl --silent -L https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz \ - | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ - && rm -rf \ - /var/lib/apt/lists/* + | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* RUN PYTHON_LOCATION=$(pip3 show oslo.rootwrap|grep Location|awk '{print $2}') \ && sed -i "/rootwrap_logger.setLevel/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \ diff --git a/images/etcdctl-utility/Dockerfile.ubuntu_focal b/images/etcdctl-utility/Dockerfile.ubuntu_focal index f67f3e29..2a978ab0 100644 --- a/images/etcdctl-utility/Dockerfile.ubuntu_focal +++ b/images/etcdctl-utility/Dockerfile.ubuntu_focal @@ -9,40 +9,39 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc org.opencontainers.image.licenses='Apache-2.0' ARG ETCDCTL_VERSION=v3.5.11 -ARG KUBE_VERSION=1.28.4 +ARG KUBE_VERSION=1.28.5 ENV GOOGLE_URL=https://storage.googleapis.com/etcd ENV GITHUB_URL=https://github.com/etcd-io/etcd/releases/download ENV DOWNLOAD_URL=${GITHUB_URL} RUN set -xe \ - && export DEBIAN_FRONTEND=noninteractive \ - && sed -i '/nobody/d' /etc/passwd \ + && export DEBIAN_FRONTEND=noninteractive \ + && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ - && apt-get install -y \ - wget curl \ - locales \ - apt-transport-https \ - ca-certificates \ - gnupg \ - bash \ - moreutils \ - sudo \ - rsyslog \ - python3.8 \ - python3-pip \ - jq \ - && pip3 install --upgrade pip \ - && pip3 install \ - munch \ - oslo.rootwrap==6.3.1 \ - python-openstackclient==5.8.0 \ - python-swiftclient==3.13.1 \ + && apt-get install -y --no-install-recommends \ + curl \ + locales \ + ca-certificates \ + gnupg \ + bash \ + moreutils \ + sudo \ + rsyslog \ + python3.8 \ + python3-pip \ + jq \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ + munch \ + oslo.rootwrap==6.3.1 \ + python-openstackclient==5.8.0 \ + python-swiftclient==3.13.1 \ && curl --silent -L "${DOWNLOAD_URL}/${ETCDCTL_VERSION}/etcd-${ETCDCTL_VERSION}-linux-amd64.tar.gz" \ - | tar -zC /usr/local/bin --strip-components=1 --wildcards -x "*/etcdctl" \ + | tar -zC /usr/local/bin --strip-components=1 --wildcards -x "*/etcdctl" \ && curl --silent -L https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz \ - | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ && curl -o /tmp/rclone.deb https://downloads.rclone.org/rclone-current-linux-amd64.deb \ && apt-get install -y --no-install-recommends /tmp/rclone.deb \ && apt-get clean -y \ diff --git a/images/mysqlclient-utility/Dockerfile.ubuntu_focal b/images/mysqlclient-utility/Dockerfile.ubuntu_focal index d92021c0..77f81b56 100644 --- a/images/mysqlclient-utility/Dockerfile.ubuntu_focal +++ b/images/mysqlclient-utility/Dockerfile.ubuntu_focal @@ -8,53 +8,53 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc org.opencontainers.image.vendor='The Airship Authors' \ org.opencontainers.image.licenses='Apache-2.0' -ARG KUBE_VERSION=1.28.4 +ARG KUBE_VERSION=1.28.5 +ARG MARIADB_VERSION=10.6 +ARG PERCONA_TOOLKIT_VERSION=3.5.5 RUN set -xe \ && export DEBIAN_FRONTEND=noninteractive \ && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update \ - && apt-get install -y \ - wget curl \ - apt-transport-https ca-certificates gnupg \ + && apt-get install -y --no-install-recommends curl apt-transport-https ca-certificates gnupg \ && curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup \ - && bash mariadb_repo_setup --mariadb-server-version=10.6 \ - && apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y \ - bash \ - sudo \ - rsyslog \ - pwgen \ - curl \ - libdbi-perl \ - libdbd-mysql-perl \ - moreutils \ - mariadb-client \ - mariadb-server \ - python3.8 \ - python3-pip \ - jq \ - && pip3 install --upgrade pip \ - && pip3 install \ + && bash mariadb_repo_setup --mariadb-server-version=${MARIADB_VERSION} \ + && apt-get update && apt-get upgrade -y \ + && apt-get install -y --no-install-recommends \ + bash \ + sudo \ + rsyslog \ + pwgen \ + curl \ + libdbi-perl \ + libdbd-mysql-perl \ + moreutils \ + mariadb-client \ + mariadb-server \ + python3.8 \ + python3-pip \ + jq \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ munch \ oslo.rootwrap==6.3.1 \ python-openstackclient==5.8.0 \ python-swiftclient==3.13.1 \ && sed -i 's/$PrivDropToUser syslog/$PrivDropToUser nobody/' /etc/rsyslog.conf \ - && apt-get clean -y \ && curl --silent -L https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz \ - | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ - && curl --silent -L https://downloads.percona.com/downloads/percona-toolkit/3.5.1/binary/tarball/percona-toolkit-3.5.1_x86_64.tar.gz \ + | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + && curl --silent -L https://downloads.percona.com/downloads/percona-toolkit/${PERCONA_TOOLKIT_VERSION}/binary/tarball/percona-toolkit-${PERCONA_TOOLKIT_VERSION}_$(arch).tar.gz \ | tar -zC /usr/local/bin/ --strip-components=2 --wildcards -x "*/*/pt-show-grants" \ - && curl -o /tmp/rclone.deb https://downloads.rclone.org/rclone-current-linux-amd64.deb \ + && curl -o /tmp/rclone.deb https://downloads.rclone.org/rclone-current-linux-amd64.deb \ && apt-get install -y --no-install-recommends /tmp/rclone.deb \ + && apt-get purge --autoremove -y apt-transport-https \ + && apt-get clean -y \ && rm -rf \ - /tmp/* \ - /var/cache/debconf/* \ - /var/lib/apt/lists/* \ - /var/tmp/* + /tmp/* \ + /var/cache/debconf/* \ + /var/lib/apt/lists/* \ + /var/tmp/* RUN PYTHON_LOCATION=$(pip3 show oslo.rootwrap|grep Location|awk '{print $2}') \ && sed -i "/rootwrap_logger.setLevel/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \ diff --git a/images/openstack-utility/Dockerfile.ubuntu_bionic b/images/openstack-utility/Dockerfile.ubuntu_bionic old mode 100755 new mode 100644 diff --git a/images/openstack-utility/Dockerfile.ubuntu_focal b/images/openstack-utility/Dockerfile.ubuntu_focal old mode 100755 new mode 100644 index 32e38e2b..fd268f8c --- a/images/openstack-utility/Dockerfile.ubuntu_focal +++ b/images/openstack-utility/Dockerfile.ubuntu_focal @@ -14,22 +14,22 @@ RUN set -xe \ && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ - && apt-get install -y \ - bash \ - sudo \ - rsyslog \ - python3.8 \ - python3-pip \ - && pip3 install --upgrade pip \ - && pip3 install \ - munch \ - oslo.rootwrap==6.3.1 \ - python-openstackclient==5.8.0 \ - python-glanceclient==3.6.0 \ - python-novaclient==17.7.0 \ - python-neutronclient==7.8.0 \ - python-cinderclient==8.3.0 \ - python-heatclient==2.5.1 \ + && apt-get install --no-install-recommends -y \ + bash \ + sudo \ + rsyslog \ + python3.8 \ + python3-pip \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ + munch \ + oslo.rootwrap==6.3.1 \ + python-openstackclient==5.8.0 \ + python-glanceclient==3.6.0 \ + python-novaclient==17.7.0 \ + python-neutronclient==7.8.0 \ + python-cinderclient==8.3.0 \ + python-heatclient==2.5.1 \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* diff --git a/images/postgresql-utility/Dockerfile.ubuntu_focal b/images/postgresql-utility/Dockerfile.ubuntu_focal index e6e69a10..3e7e7576 100644 --- a/images/postgresql-utility/Dockerfile.ubuntu_focal +++ b/images/postgresql-utility/Dockerfile.ubuntu_focal @@ -8,44 +8,43 @@ LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc org.opencontainers.image.vendor='The Airship Authors' \ org.opencontainers.image.licenses='Apache-2.0' -ARG KUBE_VERSION=1.28.4 +ARG KUBE_VERSION=1.28.5 -RUN set -xe \ +RUN set -xe \ && export DEBIAN_FRONTEND=noninteractive \ - && sed -i '/nobody/d' /etc/passwd \ + && sed -i '/nobody/d' /etc/passwd \ && echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \ && apt-get update && apt-get upgrade -y \ - && apt-get install -y wget curl \ - apt-transport-https ca-certificates gnupg \ - && echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ + && apt-get install --no-install-recommends -y curl ca-certificates gnupg \ + && echo "deb https://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \ && curl -o /etc/apt/trusted.gpg.d/postgresql_release_signing_key.asc 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' \ && apt-get update \ - && apt-get install -y \ - bash \ - moreutils \ - rsyslog \ - screen \ - sudo \ - postgresql-client \ - postgresql-common \ - python3.8 \ - python3-pip \ - jq \ - && pip3 install --upgrade pip \ - && pip3 install \ - munch \ - oslo.rootwrap==6.3.1 \ - python-openstackclient==5.8.0 \ - python-swiftclient==3.13.1 \ - && apt-get clean -y \ + && apt-get install --no-install-recommends -y \ + bash \ + moreutils \ + rsyslog \ + screen \ + sudo \ + postgresql-client \ + postgresql-common \ + python3.8 \ + python3-pip \ + jq \ + && pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir \ + munch \ + oslo.rootwrap==6.3.1 \ + python-openstackclient==5.8.0 \ + python-swiftclient==3.13.1 \ && curl --silent -L https://dl.k8s.io/v${KUBE_VERSION}/kubernetes-client-linux-amd64.tar.gz \ - | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ + | tar -zC /usr/bin --strip-components=3 --wildcards -x "*/*/*/kubectl" \ && curl -o /tmp/rclone.deb https://downloads.rclone.org/rclone-current-linux-amd64.deb \ && apt-get install -y --no-install-recommends /tmp/rclone.deb \ + && apt-get clean -y \ && rm -rf \ - /tmp/* \ - /var/cache/debconf/* \ - /var/lib/apt/lists/* + /tmp/* \ + /var/cache/debconf/* \ + /var/lib/apt/lists/* RUN PYTHON_LOCATION=$(pip3 show oslo.rootwrap|grep Location|awk '{print $2}') \ && sed -i "/rootwrap_logger.setLevel/s/.*/#&/" $PYTHON_LOCATION/oslo_rootwrap/wrapper.py \