-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cekit build fails with AttributeError: 'NoneType' object has no attribute 'keys' #48
Comments
@jmtd, we should work on removing package.repositories from all modules. In addition to that, I've created cekit/cekit#344. |
To workaround the issue, you can create a [repositories]
jboss-os=dummy-url
jboss-rhscl=dummy-url That said, the next hurdle will be locating community artifacts for the following:
It looks like community artifacts can all be downloaded from Maven Central: hawkular-javaagent-1.0.1.Final-shaded.jar, jolokia-jvm-1.5.0-agent.jar, jmx_prometheus_javaagent-0.3.1.jar. As a workaround, adding and using a artifacts:
- name: hawkular-javaagent-1.0.1.Final-redhat-2-shaded.jar
url: https://repo1.maven.org/maven2/org/hawkular/agent/hawkular-javaagent/1.0.1.Final/hawkular-javaagent-1.0.1.Final-shaded.jar
md5: 1f55173d84e4ac52d0ee542e251d8b02
- name: jolokia-jvm-1.5.0.redhat-1-agent.jar
url: https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.5.0/jolokia-jvm-1.5.0-agent.jar
md5: 64cb886a4a1cf5906e0f33afd76243a8
- name: jmx_prometheus_javaagent-0.3.1.redhat-00006.jar
url: https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.3.1/jmx_prometheus_javaagent-0.3.1.jar
md5: 4f08e57afb4088469904956237c0cf8e Then running with: Note, using this method, the files in the image will still be named with -redhat- in them, but they will be the community versions (you can verify by expanding the jars and looking at the META-INF/maven/... files). @jmtd, if we're going to make the default versions of the image.yaml file community oriented, we should probably do the same with the upstream modules (jolokia, hawkular, jmx_exporter). That said, there's probably some work to be done in cekit to help ensure we're using the "proper" file names for these types of resources (e.g. jolokia-jvm-1.5.0-agent.jar instead of jolokia-jvm-1.5.0.redhat-1-agent.jar). @goldmann, @dbecvarik, you're probably interested in this as well, from a cekit perspective. |
Great comment, thanks @rcernich. I was always thinking that the best way to approach is to use the Let's take Jolokia as the example. It's unlikely that we will have two Jolokia JARs to be added to the image, so the This is where the artifacts:
- name: jolokia
target: jolokia-jvm-agent.jar
url: https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.5.0/jolokia-jvm-1.5.0-agent.jar
md5: 64cb886a4a1cf5906e0f33afd76243a8 In such case, the module could use/expect the The only one caveat I can think of is using a filename in the image that is different from the name it was release under. Considering pros and cons of above solution I think this is something we could trade for the ease of maintenance. If the original artifact provides a name (via http, or via metadata in Brew), we could implement adding a symlink to the artifact itself. I would not be used by the module, but it would be there, if someone would like to poke in the image to understand how it is built. |
The build issue has been fixed in cekit 2.2.4 I believe (and I cannot reproduce this problem with cekit 2.2.4 locally), closing accordingly. Please re-open if this does still happen for you with ≥ 2.2.4. There's lots of other relevant TODO bits in mentioned in comments in this issue that I will break out into separate issues soon. Thanks |
|
What is the repository/branch you use? I cannot reporoduce it with the openjdk repository and the develop branch (https://github.com/jboss-container-images/openjdk):
|
One thing that comes to my mind is the difference in the |
@jmtd nope, this is still NOK with today's cekit --version = 2.2.5, for me...
whatever that black magic does, it does indeed get around the original probably.
nope, when applied exactly as documented above that was still NOK, but I figured renames... How about #58 to make it possible for anyone without a Ph.D. in cekit-oloy to "just build" this project? |
From my side, we could close this issue when #58 is merged. |
I managed to reproduce this with cekit 2.2.5 (I suspect I had stuff in |
I think this was fixed in cekit 2.2.6 as per my last comment; I've had no further reports of problems (and we're on cekit 3.4.0 now). Please re-open if still a problem |
On Fedora 28:
The text was updated successfully, but these errors were encountered: