I’m a newbie in the group. First, Sorry if it’s not the right place to post this content. Please guide me to the right place.
We are trying to build some customization in Ansible AWX. Hence, trying to setup Ansible AWX in an AWS EC2 Ubuntu 16.04 environment. I’m following the page (https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#build-the-environment) and had installed pre-requisites as mentioned. My goal here is to provide a team of devs a sandbox environment where they can make some customizations to the code and try the changes out. In that regard, while executing the step “Build Base Image” (using cmd: make docker-compose-build) works fine and produces an image as mentioned in the documentation. But the step “Build the user interface” (make ui-devel) fails with below error message:
npm WARN prepare removing existing node_modules/ before installation
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/ansible/timezone-js.git /root/.npm/_cacache/tmp/git-clone-ae588562/.git
npm ERR! fatal: could not create leading directories of ‘/root/.npm/_cacache/tmp/git-clone-ae588562/.git’
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-11-06T06_23_03_341Z-debug.log
Makefile:526: recipe for target ‘awx/ui/.deps_built’ failed
make: *** [awx/ui/.deps_built] Error 1
My request here is where can I get a list of make commands that I can run to get A to Z of Ansible AWX with a development base running containers. Any help is much appreciated.
Forgot to mention additional details above. Hence adding some additional details here.
After following the UI contribution guide, I ran the command . I’m getting the following error:
npm WARN prepare removing existing node_modules/ before installation
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/ansible/timezone-js.git /root/.npm/_cacache/tmp/git-clone-d443f7ba/.git
npm ERR! fatal: could not create leading directories of ‘/root/.npm/_cacache/tmp/git-clone-d443f7ba/.git’
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-11-06T06_37_40_801Z-debug.log
Makefile:526: recipe for target ‘awx/ui/.deps_built’ failed
make: *** [awx/ui/.deps_built] Error 1
Additionally I’d tried with other targets in the Makefile like (requirements_dev, requirements_ansible, requirements_ansible_dev, requirements_awx_dev, develop), but the above error still persists.
Let me give an insight into the updated environment now.
AWS EC2 - Centos 7.7
Python 2.7.5 – Also Installed 3.6.8
ansible 2.9.14
Docker version 19.03.13
docker-compose version 1.27.4
node v6.17.1 – Removed & Installed to v12.19.0
npm v3.10.10 – Removed & Installed to 6.14.8
bzip2, gcc-c++, git, make
In addition to the above, I’d also installed the following softwares (git gcc gcc-c++ nodejs gettext device-mapper-persistent-data lvm2 bzip2 python-pip).
I’m able to run the “make docker-compose-build” for building the base image, I’m also able to see the docker images mentioned in the CONTRIBUTING.md. While I’m trying to build the AWX UI using “make ui-devel”. I’m gone past the following errors:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed. — Solved by using “yum install deltarpm”
No Presto metadata available for nodesource — Solved by using “yum --enablerepo=base clean metadata”
[webpack-cli] Error: Cannot find module ‘clean-webpack-plugin’, ‘copy-webpack-plugin’, ‘webpack’, ‘html-webpack-plugin’ — Solved it by running the command “npm install” from the folder where the package.json was available.
But ran into below issue, after trying a “make ui-devel” post the above changes:
[root@ip-172-20-8-107 awx]# make ui-devel
npm WARN prepare removing existing node_modules/ before installation
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/ansible/timezone-js.git /root/.npm/_cacache/tmp/git-clone-ba0f82a1/.git
npm ERR! fatal: could not create leading directories of ‘/root/.npm/_cacache/tmp/git-clone-ba0f82a1/.git’
The git clone command fails everytime & it creates a new folder everytime. My intention is to create a development environment for Ansible AWX to help with customization and to enable developers to build customized code.