aboutsummaryrefslogtreecommitdiff
path: root/docker/base/Dockerfile.j2
AgeCommit message (Collapse)AuthorFilesLines
2019-03-12replace 'distro_python3' variable with 'distro_python_version'Marcin Juszkiewicz1-1/+2
RHEL7 derived distros use Python 2.7 RHEL8 uses Python 3.6 Ubuntu 18.04 uses Python 3.6, but we haven't enabled it yet. Debian:buster uses Python 3.7, but we haven't enabled it yet. We have several places in code where "/lib/pythonX.Y/site-packages" is used so we need to know value of X.Y rather than py2/py3 switch. How to check for Python 2: {% if distro_python_version == '2.7' %} Breaks: Iad6b70b433a0dd1b0f8ae6790fd280594517661a Change-Id: Ie24f109af19ae0438c21e0d43cb3cc947812b4ce
2019-02-25base: update to dumb-init 1.2.2Marcin Juszkiewicz1-6/+9
This version allows us to use Debian binaries for non-x86 architectures instead of building 'dumb-init'. 'base_compiler_packages' are installed as they will be needed anyway to build other Python packages (no binary wheels for !x86). We also need 'binutils' to be installed for 'ar' command. Change-Id: I53ad946ead4f0b485d8c7e8a91ac2ef5d7735c5a
2019-01-30Fix broken xtrabackup and monasca-grafana imagesMartin André1-0/+6
Percona started signing packages with a new public GPG key, without providing it via HTTPS. Ship the PERCONA-PACKAGING-KEY extracted from the percona-release package. https://jira.percona.com/browse/PT-1685 monasca-grafana broken by 'rake' missing when trying to install the 'fpm' gem. Co-Authored-By: Mark Goddard <mark@stackhpc.com> Change-Id: Ica9867448dc20864f2fd4614a295a23a4a625af4 Closes-Bug: #1813906 Closes-Bug: #1813927
2019-01-23Guard adding contentdir RUN in base templateJon Schlueter1-1/+1
As a follow up to I402cff1ac86a2ba108f2f5378cc98db5f6ecc673 only add the echo command if there is a value in centos_contentdir Change-Id: Ie5144ee3b8bdb2535a32cfb43c43dfc1bb556ac8
2019-01-17Use base_package_typeAlex Schultz1-5/+5
This change updates the docker files to use base_package_type instead of doing specific distro checks for the rhel/deb generic cases. The base_distro is still available and is used when a specific distro needs a customization but if the differences are purely rpm vs deb, then the base_package_type can be used. Change-Id: I8d720bb185df65a0178061ccf20b1ab2265da2c5
2019-01-09Fix grafana repoJeffrey Zhang1-5/+4
Grafana repository is moved from packagecloud to packages.grafana.com[0]. Based on new grafana install guide[1], update the grafana.repo [0] https://grafana.com/blog/2019/01/05/moving-to-packages.grafana.com/ [1] http://docs.grafana.org/installation/rpm/#install-via-yum-repository Closes-Bug: #1810867 Change-Id: Ib065fdc561b72fc013b952b3df41ee83b083194e
2018-12-18Merge "base/debian: add Percona repo key"Zuul1-0/+1
2018-12-05Fix Oraclelinux build, disable collectd in gateEduardo Gonzalez1-4/+14
Oraclelinux repositories has been upgraded and previous file removed, this change update repos to new URLs. Disable collectd in gate as is currently broken and blocks mergingin voting jobs. Change-Id: I402cff1ac86a2ba108f2f5378cc98db5f6ecc673
2018-12-01Merge "base: tell gnupg to not use TTY when we import APT keys"Zuul1-1/+1
2018-11-27Merge "Use dumb-init with --single-child"Zuul1-4/+5
2018-11-21base/debian: add Percona repo keyMarcin Juszkiewicz1-0/+1
Change-Id: I8a70690d081e2ce1284cae60179ce0598a28a393
2018-11-21base: tell gnupg to not use TTY when we import APT keysMarcin Juszkiewicz1-1/+1
Debian builds fail with gnupg error: INFO:kolla.common.utils.base:Executing: /tmp/apt-key-gpghome.utZMwIQ8EO/gpg.1.sh --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB INFO:kolla.common.utils.base:gpg: cannot open '/dev/tty': No such device or address This change stops GnuPG from using tty. Change-Id: I4a9f2fb2c9fdd21430ce3a9bd02999ae21e1847a
2018-11-20Use dumb-init with --single-childRabi Mishra1-4/+5
We would probably like to forward signals only to the direct child which in turn takes care its children and not to all worker child processes. Change-Id: Id91ebb8b0ecc43946845de386350af0536dd661f Related-Bug: #1799642
2018-11-08base debian/ubuntu: drop not needed APT keysMarcin Juszkiewicz1-8/+1
Ubuntu: we dropped external MySQL repo months ago. Debian: we dropped most of external repos when we moved to 'stretch'. Also replaced Elasticsearch repo key with full id. Change-Id: I679bd814b143d128f334c76d5ec7cc2dbe06543d
2018-11-06Introduce Percona XtraBackup imageNick Jones1-3/+5
blueprint database-backup-recovery Implements an image suitable for taking MariaDB backups via Percona's XtraBackup tool. Install XtraBackup from Percona's repos, ensuring that packages from this source aren't used for any other purpose. Include a script which invokes XtraBackup with the appropriate options for either a full or incremental backup. Change-Id: Ifebe2045e5815c573c0a2ae05951c428c3f06a92
2018-10-28Disable init lastlog and faillog database for created userJeffrey Zhang1-1/+1
These two files are useless in container, and disable them will save about 18MB size for image. More info please check[1]. [1] https://github.com/sagemathinc/cocalc/issues/2287#issue-249824529 Change-Id: I1bba59260043782fd7c9306b194d144d027a29e0
2018-10-11Merge "Add crane docker image"Zuul1-0/+1
2018-09-27grafana: on aarch64 use 5.2.4 version from upstreamMarcin Juszkiewicz1-1/+0
Upstream started building Grafana for arm64 a while ago. So let's use it instead of someone's build. Change-Id: Ia5359cd86022f2475301407d62a5ad4e1b275c13
2018-09-21Add crane docker imageDan Prince1-0/+1
Crane is a lightweight 'pull only' container registry implementation. TripleO is aiming to replace our use of docker-distribution with crane for the Undercloud. Co-Authored-By: Martin André <m.andre@redhat.com> Change-Id: I59d9521f99243401d7703a3dedc26b5baed2d595
2018-09-11Move to the latest rabbitmqPaul Bourke1-3/+6
This allows us to use the new simpler style conf format, as well as drop the dependency on the deprecated clusterer plugin. Depends-On: I921459f3e40b9e0d4af9497384e49aabf0abe79b Change-Id: I75e00312b36e1678b90a42cf58d24652323eff27
2018-08-14Merge "base: do not set $contentdir for CentOS"Zuul1-11/+0
2018-08-10base/centos: stop treating AArch64 in special wayMarcin Juszkiewicz1-18/+5
All repositories we depend on got synced to mirrors. So we no longer need to fetch ceph-luminous or opstools from buildlogs.centos.org server. Change-Id: Ie7b54d20f98d26d3e086bbbfcda289c2677a008a
2018-08-10base: do not set $contentdir for CentOSMarcin Juszkiewicz1-11/+0
We no longer have to set $contentdir for CentOS as it is set in centos:7 images now. This code was required when Docker hub had 7.4 images while 7.5 packages were already in repositories. Change-Id: I69d1b87ffb3af1dea2f8cf93a2264df93356e9ed
2018-08-07Merge "centos: clean altarch repositories situation a bit"Zuul1-4/+4
2018-07-26add additional Remove yum cacheJon Schlueter1-3/+6
as a followup to https://review.openstack.org/#/c/505143/ "Remove yum cache" Change-Id: Ifaaead6f6efe35808ebf79ea0d4474fbb60c8994
2018-07-10centos: clean altarch repositories situation a bitMarcin Juszkiewicz1-4/+4
CentOS team synced virt/kvm-common repository for alternate archs. We can just install 'centos-release-qemu-ev' package like it is done on x86-64. Change-Id: Ie45a0b83fc4460d5dfce82efca061272db974ead
2018-07-09Update elasticsearch and kibana version to 5.xKevin Tibi1-2/+1
Change-Id: I8ed60eab2c15ae966960bcbeadb7aa25fece83a5 Implements: bp-elasticsearch-upgrade
2018-06-15dind: get image buildable for DebianMarcin Juszkiewicz1-0/+1
With use of Docker-CE from upstream. Change-Id: If1a6fe3f1654a2c06c3c3882dc56cdfc6945a17e
2018-06-06Merge "Install sensu from centos-opstools"Zuul1-1/+0
2018-06-04do not set contentdir to 'centos' on 'rhel'Thierry Vignaud1-4/+7
commit ec5daaaa634351d24706e605c2c6726be402d35b wrongly did this for rhel too Change-Id: I202ea5341f8db315b90367cbdef5c7b26567738b
2018-05-31Install sensu from centos-opstoolsMartin André1-1/+0
This should help improve stability overall, in exchange for slightly older package version. Cap all the sensu plugins to their known major version that works with the ruby interpreter shipped with the current version of rhel/centos/oraclelinux -- currently ruby 2.0. All sensu plugins use semantic versioning so we're assured they don't introduce breaking changes in the capped major version. Change-Id: Ic5ca679c40da3e466433b0e04f762d2bbffbf156 Closes-Bug: #1774123
2018-05-25base: import Linaro ERP 18.06 repo keyMarcin Juszkiewicz1-0/+1
Change-Id: I7d85c3bfd21f6f2bed631a7817507595d4bbe521
2018-05-17base: drop not needed APT keyMarcin Juszkiewicz1-1/+0
Change-Id: I94dba206614ee353cdbb6cf1d44716d4c94e55ab
2018-05-13base: set $contentdir for CentOSMarcin Juszkiewicz1-0/+9
CentOS recently started syncing alternate arch repos to mirrors. And to make it easier to play with centos-* packages idea of 'contentdir' appeared. https://lists.centos.org/pipermail/centos-devel/2018-March/016542.html Change-Id: Ieb26c0aa65ba3ec1a45a33f87f670e5ecb782f82
2018-05-10Merge "base/nova-compute: install udev/systemd to satisfy dependencies"Zuul1-0/+5
2018-05-10base: bump centos-release-qemu-ev for oraclelinuxMarcin Juszkiewicz1-1/+1
Change-Id: I0456040255bb9aa9091f1fb35e7d6960b8a36f9a
2018-05-08base/nova-compute: install udev/systemd to satisfy dependenciesMarcin Juszkiewicz1-0/+5
For Debian we use 'stretch-backports' image due to requirements of some images. That means that we also have systemd from backports. This breaks 'open-iscsi' (base) and 'python-guestfs' (nova-compute) installation. Solution is to install 'udev' and 'systemd' in proper versions. INFO:kolla.common.utils.base:Some packages could not be installed. This may mean that you have INFO:kolla.common.utils.base:requested an impossible situation or if you are using the unstable INFO:kolla.common.utils.base:distribution that some required packages have not yet been created INFO:kolla.common.utils.base:or been moved out of Incoming. INFO:kolla.common.utils.base:The following information may help to resolve the situation: INFO:kolla.common.utils.base:The following packages have unmet dependencies: INFO:kolla.common.utils.base: open-iscsi : Depends: udev but it is not going to be installed INFO:kolla.common.utils.base:E: Unable to correct problems, you have held broken packages. INFO:kolla.common.utils.nova-compute: python-guestfs : Depends: libguestfs0 (= 1:1.34.6-2) but it is not going to be installed INFO:kolla.common.utils.nova-compute:E: Unable to correct problems, you have held broken packages. Closes-bug: #1769850 Change-Id: I4865c279d665cf34fc150794c01368a1602319f0
2018-05-03Add Grafana repository for arm64Jorge Niedbalski1-0/+1
Official ARM support as part of the release process of grafana is on development [0]. For now, the closest official repositories are the ones from fg2it repository, which is also part of the developers working on the support, so we are adding it to the sources for now until the official support is done. [0] https://github.com/grafana/grafana-docker/issues/117 Bug: #1768585 Signed-off-by: Jorge Niedbalski <jorge.niedbalski@linaro.org> Change-Id: Iba004f99c0ac92cb660e405c5ac9c61dc7fa81e2
2018-04-25Remove EPEL for RDO of RHELMinho Ban1-4/+6
Since Ocata, it has been recommended to disable EPEL when using RDO because of breaking backward compatibility. https://docs.openstack.org/ocata/install-guide-rdo/environment-packages.html There seems to be no special reason to use EPEL in case of RHEL. Change-Id: Iadc351dac518c03163811aab4dfeee7ad0457687 Signed-off-by: Minho Ban <mhban@samsung.com>
2018-04-03Update base image with latest security fixesMartin André1-3/+6
This ensures freshly built kolla images include the latest security fixes for severity Important and above. This was suggested by Jon Schlueter and based on the code available at https://github.com/brianwcook/happywebserver/blob/master/Dockerfile#L27 Change-Id: Ib14f326a335d9519fb888f5486950275985a788c
2018-03-12Update ZooKeeper from 3.4.9 to 3.4.10Doug Szumski1-2/+1
3.4.10 is the current stable release of Zookeeper. sha1sum is from: http://www-eu.apache.org/dist/zookeeper/stable/ zookeeper-3.4.10.tar.gz.sha1 Change-Id: I745f3d5949be66f8463e1e1a3d02b25d2606d256 Partially-Implements: blueprint monasca-containers
2018-02-14Add socat to base imageMartin Mágr1-0/+3
We would need socat tool to perform healthchecks on the various containers. Closes-Bug: #1749227 Change-Id: Ibda77a8d041d894f5efac6578e52b11651bca97f
2018-01-21Consume RDO packaged mariadb versionSteven Dake1-7/+0
RDO packaged mariadb recieves far more testing and qualification than any other mariadb package on CentOS. Lets use that instead of a hard-pinned old version of mariadb from mariadb.org. This patch also upgrade MariaDB from 10.0 to 10.1.20 for RHEL/CentOS/Oracle Linux. Depends-On: I8374ac2219ad7880970cd789727d01af7cac1077 Depends-On: Ia2acb09e877a586243fc1acb49d8d140cf27d7b5 Co-Authored-By: Xinliang Liu <xinliang.liu@linaro.org> Change-Id: I071362fc1b8d60199a77e2fe0475d2b4c3b5341b
2018-01-19Add ceph-nfs containercaowei1-0/+1
Change-Id: I06325d4601128a0b5a2235370fa44012427c29e3 Implements: blueprint ceph-nfs-container
2017-12-14Revert "debian: import key for download.ceph.com repository"Marcin Juszkiewicz1-1/+0
We no longer use ceph from upstream as it does not support Debian 'stretch'.` This reverts commit d4017985a574b6e4eab90213e6f383ef7912b0a3. Change-Id: Ia363bf93429ea917f242c4a24d78853cf43c95ff
2017-12-14Add sensu imagesMathias Ewald1-0/+1
Add sensu yum repository to base image Create images for sensu-server, sensu-api and sensu-client processes Install a basic set of handler plugins into server image Install a basic set of sensu plugins into client image Change-Id: I0b88133080c58070c24ed90059315366b64034c6
2017-12-10Merge "Bump to ceph luminous"Zuul1-2/+2
2017-12-06Merge "base: use install_packages macro instead of calling APT"Zuul1-4/+8
2017-12-05Bump to ceph luminousJeffrey Zhang1-2/+2
Add ceph-mgr images Change-Id: I875f84012a92d4f8b9dcb212d917cf61167270b8 Implements: blueprint ceph-luminous
2017-11-27Remove yum-axelget from base imageAlfredo Moralejo1-4/+2
This patch partially reverts https://review.openstack.org/#/c/521716/. Package yum-axelget is not in CentOS or RDO repositories. Note that installing packages from EPEL repos is not recommended when deploying RDO. Closes-Bug: #1734690 Change-Id: Id34e667673d0b4e20fe3fdd2a880a1769ec2a6c3