forked from eclipse-jkube/jkube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eclipse-jkube#240: No Ports exposed inside Deployment in case of …
…Zero Config Dockerfile Mode Add ports to ImageConfiguration generated in DockerFileUtil.createSimpleDockerfileConfig by parsing contents of Dockerfile
- Loading branch information
1 parent
881c315
commit f654d81
Showing
6 changed files
with
82 additions
and
1 deletion.
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
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
12 changes: 12 additions & 0 deletions
12
jkube-kit/build/api/src/test/resources/docker/Dockerfile_expose_ports
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,12 @@ | ||
ARG VERSION=latest | ||
FROM openjdk:$VERSION | ||
EXPOSE 80 | ||
COPY maven/target/docker-file-simple.jar /deployments/docker-file-simple.jar | ||
# Copying a file inside project root directory | ||
COPY maven/static-dir-in-project-root/my-file.txt /deployments/my-file.txt | ||
EXPOSE 8080 | ||
EXPOSE 80/tcp | ||
EXPOSE 8080/udp | ||
EXPOSE 99/udp | ||
CMD ["java", "-jar", "/deployments/docker-file-simple.jar"] | ||
EXPOSE 8080 |
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