-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from cescoffier/update-maven-and-gradle
Update Maven and Gradle modules
- Loading branch information
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
jdock/src/test/java/io/quarkus/images/MavenAndGradleTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.images; | ||
|
||
import io.quarkus.images.modules.GradleModule; | ||
import io.quarkus.images.modules.MavenModule; | ||
import io.quarkus.images.modules.QuarkusUserModule; | ||
import io.quarkus.images.modules.UsLangModule; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class MavenAndGradleTest { | ||
|
||
@Test | ||
void verifyMavenAndGradleInstallation() { | ||
Dockerfile cmd = Dockerfile.from("registry.access.redhat.com/ubi8/ubi-minimal:8.10") | ||
.user("root") | ||
.install("tar", "gzip", "gcc", "glibc-devel", "zlib-devel", "shadow-utils", "unzip", "gcc-c++", "tzdata") | ||
.install("glibc-langpack-en") | ||
.module(new UsLangModule()) | ||
.module(new QuarkusUserModule()) | ||
.module(new MavenModule()) | ||
.module(new GradleModule()) | ||
.env("PATH", "$PATH:$JAVA_HOME/bin") | ||
.user("1001") | ||
.workdir("${APP_HOME}") | ||
.expose(8080) | ||
.cmd("/usr/libexec/s2i/run"); | ||
cmd.build(); | ||
} | ||
} |