ensure-podman: Use official podman repos for ubuntu

Reading the installation guide for podman, they reference opensuse.org
as the official package repos for ubuntu:

  https://podman.io/getting-started/installation

Using this repo allows us to pull in much newer version of podman on
ubuntu.  The current PPA package repo hasn't been updated since late
2019.

Change-Id: Ie34419184925a4bcf30422a782e6a238c11f2319
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2020-12-02 12:16:18 -05:00
parent 3bbf04476c
commit d2718417e2
2 changed files with 14 additions and 2 deletions

View File

@ -2,8 +2,11 @@
include_role:
name: ensure-package-repositories
vars:
repositories_keys:
- url: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_{{ ansible_distribution_version }}/Release.key"
repositories_list:
- repo: ppa:projectatomic/ppa
- repo: "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_{{ ansible_distribution_version }}/ /"
- name: Install podman
package:
@ -13,3 +16,11 @@
- slirp4netns
state: present
become: yes
# NOTE(pabelanger): Remove default registries.conf file, so we can manage it
# ourself. It could have v1 syntax, which doesn't work with v2.
- name: Remove /etc/containers/registries.conf
become: true
file:
state: absent
path: /etc/containers/registries.conf

View File

@ -2,8 +2,9 @@ FROM docker.io/upstream/image as first
ARG ZUUL_SIBLINGS=""
RUN echo "Zuul siblings: ${ZUUL_SIBLINGS}"
RUN cp /test-nonce /test-nonce-is-there
COPY .zuul-siblings/opendev.org/project/fake-sibling/file /target
COPY .zuul-siblings/openstack.org/project/fake-sibling/file /target
COPY . /tmp/src
RUN cp -a /tmp/src/.zuul-siblings/opendev.org/project/fake-sibling/file /target
RUN cp -a /tmp/src/.zuul-siblings/openstack.org/project/fake-sibling/file /target
CMD echo "Zuul container test"; sleep infinity
FROM first as second