make docker-compose-build error

295 views
Skip to first unread message

Yuefeng Yuan

unread,
Feb 21, 2023, 1:02:28 AM2/21/23
to AWX Project
Hi all, 

Happen error during run "make docker-compose-build“ as below:
Traceback (most recent call last):
  File "setup.py", line 9, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
  File "setup.py", line 9, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
ansible-playbook tools/ansible/dockerfile.yml -e build_dev=True -e receptor_image=quay.io/ansible/receptor:devel
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match
'all'

PLAY [Render AWX Dockerfile and sources] *******************************************************************************

TASK [Gathering Facts] *************************************************************************************************
ok: [localhost]

TASK [dockerfile : Create _build directory] ****************************************************************************
ok: [localhost]

TASK [dockerfile : Render supervisor configs] **************************************************************************
ok: [localhost] => (item=supervisor.conf)
ok: [localhost] => (item=supervisor_task.conf)

TASK [dockerfile : Render Dockerfile] **********************************************************************************
ok: [localhost]

PLAY RECAP *************************************************************************************************************
localhost                  : ok=4    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

DOCKER_BUILDKIT=1 docker build -t quay.io/awx/awx_devel:devel \
    --build-arg BUILDKIT_INLINE_CACHE=1 \
    --cache-from=quay.io/awx/awx_devel:devel .
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: unable to parse value provided `` to --cache-from: repository must contain neither a tag nor digest: quay.io/awx/          awx_devel:devel
make: *** [Makefile:492: docker-compose-build] Error 125


Does there anyone can help me ?

AWX Project

unread,
Feb 22, 2023, 3:07:29 PM2/22/23
to AWX Project
maybe run "pip install setuptools" and try again, does that help?

Yuefeng Yuan

unread,
Feb 22, 2023, 7:21:49 PM2/22/23
to AWX Project
thanks. i installed setuptools  and it can remove the first part error that " No module named 'setuptools' ". However the second error still happen :

DOCKER_BUILDKIT=1 docker build -t quay.io/awx/awx_devel:devel \
    --build-arg BUILDKIT_INLINE_CACHE=1 \
    --cache-from=quay.io/awx/awx_devel:devel .
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: unable to parse value provided `` to --cache-from: repository must contain neither a tag nor digest: quay.io/awx/          awx_devel:devel
make: *** [Makefile:492: docker-compose-build] Error 125

Even i copy the command there to run manually ,look like still happen the error. Not sure is it something about the command or my os env ?

AWX Project

unread,
Mar 1, 2023, 2:41:31 PM3/1/23
to AWX Project
I see "Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg."

are you using podman? you'll want to use docker when running make docker-compose-build

AWX Team

AWX Project

unread,
Mar 22, 2023, 11:04:36 AM3/22/23
to AWX Project
Hi,
Did you manage to get this working, anything else we can help with?

Reply all
Reply to author
Forward
0 new messages