Skip to content
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

BuildStrategy jib produces exception "Service hub created without a docker access to a docker daemon" #334

Closed
britzke opened this issue Aug 3, 2020 · 3 comments · Fixed by #335
Assignees
Labels
bug Something isn't working
Milestone

Comments

@britzke
Copy link

britzke commented Aug 3, 2020

It seems not to be possible for me to do a jib build by using the <buildBtrategy>jib</buildStrategy> element. An exception is raised "Service hub created without a docker access to a docker daemon".

Info

  • Eclipse JKube version : 1.0.0-rc-1
  • Maven version (mvn -v) : 3.6.3

  • How to reproduce : create a simple empty war packed project with
   <plugin>
      <groupId>org.eclipse.jkube</groupId>
      <artifactId>kubernetes-maven-plugin</artifactId>
      <version>1.0.0-rc-1</version>
      <configuration>
         <buildStrategy>jib</buildStrategy>
      </configuration>
   </plugin>

The Documentation available could help. The only the valid values for element is described.

@manusa
Copy link
Member

manusa commented Aug 3, 2020

hmmm :( could you try using the property instead? seems configuration is note getting picked up

<properties>
  <jkube.build.strategy>jib</jkube.build.strategy>
</properties>

@manusa
Copy link
Member

manusa commented Aug 3, 2020

I can reproduce, with property it works, without it, it doesn't.

#73 > #257 did not completely consider JKube specific built-in configuration regarding build strategies (3/2 vs. 2/1)

@manusa manusa added the bug Something isn't working label Aug 3, 2020
@manusa manusa added this to the 1.0.0 milestone Aug 3, 2020
@manusa manusa self-assigned this Aug 3, 2020
@britzke
Copy link
Author

britzke commented Aug 3, 2020

OK using the proposed property it tried to do a JIB build (telling: k8s: JIB image build started).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants