Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72149e9

Browse filesBrowse files
committed
update readme
1 parent 48e008b commit 72149e9
Copy full SHA for 72149e9

2 files changed

+22-10Lines changed: 22 additions & 10 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docker-java-app/pom.xml‎

Copy file name to clipboardExpand all lines: docker-java-app/pom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<version>1.0</version>
1111

1212
<name>docker-java-app</name>
13-
<url>http://www.mkyong.com</url>
13+
<url>https://mkyong.com/docker/docker-and-java-application-examples/</url>
1414

1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Collapse file

‎docker-java-app/readme.md‎

Copy file name to clipboard
+21-9Lines changed: 21 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
# Docker build steps
1+
## What is it?
2+
This source code is an executable JAR file, using jsoup HTML parser to find all links from a URL.
3+
4+
Tested with
5+
* Docker 19.03
6+
* Ubuntu 19
7+
* Java 8
8+
* Maven
29

3-
## Build image
4-
$ cd $project
5-
$ sudo docker build -t docker-java:1.0 .
10+
For explanation, please visit this article - [Docker and Java Application](https://mkyong.com/docker/docker-and-java-application-examples/)
611

7-
## Build container and run it.
8-
$ sudo docker run -t docker-java:1.0 https://google.com
12+
## How to run this?
13+
```bash
14+
$ git clone https://github.com/mkyong/docker-java
15+
$ cd docker-java-app
16+
$ mvn package
17+
$ java -jar target/find-links.jar https://google.com
918

10-
## Access the docker image file system
11-
# comment ENTRYPOINT to avoid container run the jar file during startup
12-
# $ sudo docker run -it docker-java:1.0 /bin/sh
19+
//dockerize
20+
// create a docker image
21+
$ sudo docker build -t docker-java:1.0 .
22+
// run it
23+
$ sudo docker run -t docker-java:1.0 https://google.com
24+
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.