I'm facing an error in building a custom image that I'm unsure about.
Running command:
docker build -f context/Dockerfile -t
repo.somesite.com:5001/ee/awx-ansible28_py3_juniper-ee:latest context
...showing last 20 lines of output...
#16 742.3 File "/tmp/pip-install-00pi_m22/rpm_fc22e8a11390467882170438a89c4272/setup.py", line 8, in <module>
#16 742.3 raise RuntimeError("Install aborted - please install python-rpm from distribution system.")
#16 742.3 RuntimeError: Install aborted - please install python-rpm from distribution system.
#16 742.3 [end of output]
#16 742.3
#16 742.3 note: This error originates from a subprocess, and is likely not a problem with pip.
#16 742.3 error: metadata-generation-failed
#16 742.3
#16 742.3 × Encountered error while generating package metadata.
#16 742.3 ╰─> See above for output.
#16 742.3
#16 742.3 note: This is an issue with the package mentioned above, not pip.
#16 742.3 hint: See above for details.
#16 742.6 WARNING: You are using pip version 22.0.3; however, version 22.1 is available.
#16 742.6 You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
#16 ERROR: executor failed running [/bin/sh -c assemble]: exit code: 1
------
> [builder 5/5] RUN assemble:
------
executor failed running [/bin/sh -c assemble]: exit code: 1
An error occured (rc=1), see output line(s) above for details.
Any ideas what I'm doing wrong or what I can do better to actually get these to build correctly?