Skip to content

Commit

Permalink
fix: default port and Dockerfile path in devfile
Browse files Browse the repository at this point in the history
  • Loading branch information
psturc committed Feb 8, 2023
1 parent 8f94670 commit 6ea3653
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ metadata:
parent:
id: java-maven
registryUrl: "https://registry.devfile.io"
components:
- name: image-build
image:
imageName: hacbs-jvm-build-test-project:latest
dockerfile:
uri: Dockerfile
buildContext: .
rootRequired: false
4 changes: 2 additions & 2 deletions src/main/java/io/github/stuartwdouglas/hacbstest/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Main {
public static final String HELLO = "Hello World";

public static void main(String... args) throws IOException {
HttpServer server = HttpServer.create(new InetSocketAddress("0.0.0.0", 8080), 100);
HttpServer server = HttpServer.create(new InetSocketAddress("0.0.0.0", 8081), 100);
server.createContext("/").setHandler(new HttpHandler() {
@Override
public void handle(HttpExchange exchange) throws IOException {
Expand All @@ -24,7 +24,7 @@ public void handle(HttpExchange exchange) throws IOException {
}
}
});
System.out.println("Starting HTTP server on port 8080");
System.out.println("Starting HTTP server on port 8081");
server.start();
}

Expand Down

0 comments on commit 6ea3653

Please sign in to comment.