H i Team,
I have installed the AWX tower and am able to access it. I created the dockerfile with all the prerequisites and created the custom image and pushed to the artifact register.
and setup the execution environment project template and inventory but when I am launching the template getting the error like creating the pod: container failed to start, ImagePullBack off and used to below docker file to create the docker image.
#############
Start with a lightweight base image
FROM rockylinux:8
Set environment variables to avoid interactive prompts during installation
ENV PYTHON_VERSION=3.8.17
Update and install dependencies
RUN dnf install -y epel-release &&
dnf install -y
gcc
gcc-c++
make
openssl-devel
bzip2-devel
ibffi-devel
python3-pip
python3-devel &&
dnf clean all
RUN curl -O https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz &&
tar xzf Python-$PYTHON_VERSION.tgz &&
cd Python-$PYTHON_VERSION &&
./configure --enable-optimizations &&
make altinstall &&
cd … &&
rm -rf Python-$PYTHON_VERSION.tgz Python-$PYTHON_VERSION && \alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.8 1
RUN alternatives --set python3 /usr/local/bin/python3.8
RUN /usr/local/bin/python3.8 -m pip install --upgrade pip && /usr/local/bin/python3.8 -m pip install ansible
#RUN /usr/local/bin/python3.8 -m pip install google==4.0.0
RUN /usr/local/bin/python3.8 -m pip install google-cloud-core
RUN /usr/local/bin/python3.8 -m pip install google-cloud-cli
RUN /usr/local/bin/python3.8 -m pip install --upgrade google-cloud-storage
RUN /usr/local/bin/python3.8 -m pip install google-cloud
#RUN /usr/local/bin/python3.8 -m pip install google-cloud-automation
RUN /usr/local/bin/python3.8 -m pip install google-auth
RUN /usr/local/bin/python3.8 -m pip install msgraph-sdk
RUN /usr/local/bin/python3.8 -m pip install pywinrm netaddr ipaddress dnspython openpyxl
RUN ansible-galaxy collection install google.cloud ansible.netcommon community.general
RUN dnf clean all
CMD [“/bin/bash”]
##################3
Could you please suggest and help me on this.
If any document is available to set up the AWX on GCP please share with me if possible.
Thank you,
Kuldeep