local pugin in ansible EE

33 views
Skip to first unread message

OM Nachiketa

unread,
Feb 15, 2023, 12:54:41 AM2/15/23
to ansible...@googlegroups.com
Hi,

I am trying to build an ansible execution environment image with ansible-builder and want to add a local inventory plugin that I have developed. But getting these errors. 

B / 2.87kB done
#7 CANCELED
------
 > [stage-2 12/16] COPY mysql_plugin.py /usr/share/ansible/plugins/inventory/:
------
Dockerfile:38
--------------------
  36 |     COPY --from=quay.io/ansible/receptor:devel /usr/bin/receptor /usr/bin/receptor
  37 |     RUN mkdir -p /usr/share/ansible/plugins/inventory/
  38 | >>> COPY mysql_plugin.py /usr/share/ansible/plugins/inventory/
  39 |     RUN chmod 755 /usr/share/ansible/plugins/inventory/*
  40 |     RUN mkdir -p /var/run/receptor
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::ja46basj3fy7cp7k648zc3mvr: "/mysql_plugin.py": not found

An error occured (rc=1), see output line(s) above for details.


Any help would be greatly appreciated.

-Om
Reply all
Reply to author
Forward
0 new messages