Skip to content

Commit

Permalink
Fix eclipse-jkube#138: OpenShift build requires connection to dockerd
Browse files Browse the repository at this point in the history
Remove check related to checking docker access in case of OpenShift builds
  • Loading branch information
rohanKanojia committed Apr 1, 2020
1 parent 7ecaea4 commit af8a867
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Usage:
```
### 1.0.0-SNAPSHOT
* Fix #130: Updated HelmMojo documentation
* Fix #138: dockerAccessRequired should be false in case of docker build strategy

### 1.0.0-alpha-1 (2020-03-27)
* Ported PR fabric8io/fabric8-maven-plugin#1792, NullCheck in FileDataSecretEnricher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ protected File ensureThatArtifactFileIsSet(JKubeProject project) throws IOExcept

private void setArtifactFile(JKubeProject project, File artifactFile) throws IOException {
if (artifactFile != null) {
File artifact = new File(project.getBuildDirectory() + artifactFile.getName());
File artifact = new File(project.getBuildDirectory(), artifactFile.getName());
Files.copy(Paths.get(artifactFile.getAbsolutePath()), Paths.get(artifact.getAbsolutePath()), StandardCopyOption.REPLACE_EXISTING);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ protected boolean isDockerAccessRequired() {
if (runtimeMode == kubernetes) {
ret = true;
}
if (buildStrategy == docker) {
ret = true;
}
return ret;
}

Expand Down
10 changes: 10 additions & 0 deletions quickstarts/maven/webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
<artifactId>kubernetes-maven-plugin</artifactId>
<version>${project.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>openshift-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<mode>openshift</mode>
<buildStrategy>docker</buildStrategy>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>
<properties>
Expand Down

0 comments on commit af8a867

Please sign in to comment.