# Installing AWX using RedHat as base image

**URL:** <https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 22, 2020, 8:30am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231 "2020-06-22T08:30:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [June 22, 2020, 8:30am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/1 "2020-06-22T08:30:49Z")

</div>

Is it possible to install AWX using RedHat as base image to build images ? Will all centos packages be compatible with RedHat? Please help

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [June 22, 2020, 8:33am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/2 "2020-06-22T08:33:30Z")

</div>

I have awx running on a centos host. It’s in a container so you can the container on any type of os.

---

<div class="post-metadata">

**Author:** ![braier\_alves](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@braier\_alves](https://forum.ansible.com/u/braier_alves)\
**Post date:** [June 22, 2020, 9:12am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/3 "2020-06-22T09:12:58Z")

</div>

Hello =)

Try install with docker.

Use this: [https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk](https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk)

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [June 23, 2020, 5:59am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/4 "2020-06-23T05:59:31Z")

</div>

I want to build the image from RedHat base image. Will all centos packages be compatible with RedHat?

Example Docker file:

FROM centos:8 \>\>\>\>\>\>\>\> RedHat

ARG UID=0

# Add ansible-devel so that we get collections!

ADD tools/docker-compose/ansible\_nightly.repo /etc/yum.repos.d/ansible\_nightly.repo

# sync with installer/roles/image\_build/templates/Dockerfile.j2

RUN dnf -y update &&   
dnf -y install epel-release ‘dnf-command(config-manager)’ &&   
dnf module -y enable ‘postgresql:10’ &&   
dnf config-manager --set-enabled PowerTools &&   
dnf -y install acl   
…  
…

---

<div class="post-metadata">

**Author:** ![braier\_alves](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@braier\_alves](https://forum.ansible.com/u/braier_alves)\
**Post date:** [June 23, 2020, 10:29am UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/5 "2020-06-23T10:29:20Z")

</div>

Hello.

This a guide to install AWX with docker in RHEL8:

Use this doc [https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk](https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk)

Some diferent steps:

1 - Install docker community version with this link: [https://linuxconfig.org/how-to-install-docker-in-rhel-8](https://linuxconfig.org/how-to-install-docker-in-rhel-8)  
2 - Install Python: [https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/](https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/)  
3 - Install Python-pip: [https://linuxconfig.org/how-to-install-pip-in-redhat-8](https://linuxconfig.org/how-to-install-pip-in-redhat-8)  
4 - Install Git: [https://linuxconfig.org/install-git-in-linux-redhat-8](https://linuxconfig.org/install-git-in-linux-redhat-8)  
5 - Install Development Tools: [https://linuxconfig.org/install-development-tools-on-redhat-8](https://linuxconfig.org/install-development-tools-on-redhat-8)  
6 - Install Ansible: [https://linuxconfig.org/install-ansible-on-redhat-8](https://linuxconfig.org/install-ansible-on-redhat-8)

Hope this helps =)

A terça, 23 de jun de 2020, 06:59, [rajtheco…@gmail.com](mailto:rajtheco...@gmail.com) \<[rajthecomputerguy@gmail.com](mailto:rajthecomputerguy@gmail.com)\> escreveu:

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [June 23, 2020, 12:08pm UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/6 "2020-06-23T12:08:45Z")

</div>

Hi Braier,

Thanks for your help,

I do not have centos image in our environment, So the question is , Is it possible to build AWX containers using Redhat as base image

FROM centos:8 — FROM RedHat:7

I see AWX docker file is using centos as base image. We want to use RedHat image as base image.

---

<div class="post-metadata">

**Author:** ![braier\_alves](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@braier\_alves](https://forum.ansible.com/u/braier_alves)\
**Post date:** [June 23, 2020, 12:33pm UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/7 "2020-06-23T12:33:57Z")

</div>

Hello Raj (sorry if i write your name wrong).

Use this: [https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk](https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk)

=)

A terça, 23 de jun de 2020, 13:08, [rajtheco…@gmail.com](mailto:rajtheco...@gmail.com) \<[rajthecomputerguy@gmail.com](mailto:rajthecomputerguy@gmail.com)\> escreveu:

---

<div class="post-metadata">

**Author:** ![braier\_alves](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@braier\_alves](https://forum.ansible.com/u/braier_alves)\
**Post date:** [June 23, 2020, 12:34pm UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/8 "2020-06-23T12:34:57Z")

</div>

This a guide to install AWX with docker in RHEL8. You can just modify to RHEL7.

Use this doc [https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk](https://drive.google.com/file/d/1oPBDTIwGFSZ5i9OfGCqDCxTaVqzTLOvG/view?usp=drivesdk)

Some diferent steps:

1 - Install docker community version with this link: [https://linuxconfig.org/how-to-install-docker-in-rhel-8](https://linuxconfig.org/how-to-install-docker-in-rhel-8)  
2 - Install Python: [https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/](https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/)  
3 - Install Python-pip: [https://linuxconfig.org/how-to-install-pip-in-redhat-8](https://linuxconfig.org/how-to-install-pip-in-redhat-8)  
4 - Install Git: [https://linuxconfig.org/install-git-in-linux-redhat-8](https://linuxconfig.org/install-git-in-linux-redhat-8)  
5 - Install Development Tools: [https://linuxconfig.org/install-development-tools-on-redhat-8](https://linuxconfig.org/install-development-tools-on-redhat-8)  
6 - Install Ansible: [https://linuxconfig.org/install-ansible-on-redhat-8](https://linuxconfig.org/install-ansible-on-redhat-8)

Hope this helps =)

---

<div class="post-metadata">

**Author:** ![Chuck\_Payne](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@Chuck\_Payne](https://forum.ansible.com/u/Chuck_Payne)\
**Post date:** [June 23, 2020, 12:38pm UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/9 "2020-06-23T12:38:09Z")

</div>

Is there any way not to use docker? Just a straight virt or hardware.

---

<div class="post-metadata">

**Author:** ![braier\_alves](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@braier\_alves](https://forum.ansible.com/u/braier_alves)\
**Post date:** [June 23, 2020, 12:41pm UTC](https://forum.ansible.com/t/installing-awx-using-redhat-as-base-image/33231/10 "2020-06-23T12:41:04Z")

</div>

Try ythis: [https://yallalabs.com/linux/how-to-install-ansible-awx-without-docker-centos-7-rhel-7/](https://yallalabs.com/linux/how-to-install-ansible-awx-without-docker-centos-7-rhel-7/)
