Ansible-builder / awx-ee change dnf repository sources

,

I’m unable to build because of connection to outside repositories (we use artifactory). I can’t find where to change this as I usually can do so in the Dockerfile or Makefile.

The awx-ee in the latest build is reporting errors with kerberos authentication due to encryption method, so I need a custom image to deal with this

Hi,

You should be able to set the image URL in the “execution-environment.yml” file like so:

build_arg_defaults:

EE_BASE_IMAGE: ‘quay.io/ansible/ansible-runner:stable-2.12-devel

Example here: https://github.com/antuelle78/ansible-builder-awxee

Hope that helps.

Regards,

Antuelle78

Seems like ran assemble adds back in base internet repos and then I get issues with a bunch of the packages that get upgraded:

2/3] STEP 6/6: RUN assemble
++ source /etc/os-release
+++ NAME=‘CentOS Stream’
+++ VERSION=8
+++ ID=centos
+++ ID_LIKE=‘rhel fedora’
+++ VERSION_ID=8
+++ PLATFORM_ID=platform:el8
+++ PRETTY_NAME=‘CentOS Stream 8’
+++ ANSI_COLOR=‘0;31’
+++ CPE_NAME=cpe:/o:centos:centos:8
+++ HOME_URL=https://centos.org/
+++ BUG_REPORT_URL=https://bugzilla.redhat.com/
+++ REDHAT_SUPPORT_PRODUCT=‘Red Hat Enterprise Linux 8’
+++ REDHAT_SUPPORT_PRODUCT_VERSION=‘CentOS Stream’
++ echo centos

  • RELEASE=centos
  • PKGMGR=
  • PKGMGR_OPTS=
  • ‘[’ -z ‘]’
  • PKGMGR=/usr/bin/dnf
  • ‘[’ -f /usr/bin/microdnf ‘]’
  • mkdir -p /output/bindep
  • mkdir -p /output/wheels
  • mkdir -p /tmp/src
  • cd /tmp/src
  • /usr/bin/dnf update -y
    CentOS Stream 8 - AppStream 1.6 MB/s | 25 MB 00:15
    CentOS Stream 8 - BaseOS 18 MB/s | 25 MB 00:01
    CentOS Stream 8 - Extras 47 kB/s | 18 kB 00:00
    CentOS Stream 8 - PowerTools 2.3 MB/s | 5.0 MB 00:02
    Extra Packages for Enterprise Linux Modular 8 - 1.1 MB/s | 733 kB 00:00

I replaced the base image with one I built internally and removed all repos then added our repos in the build. Those CentOS ones should not be there - can’t be there - won’t work if there are.