Skip to content

Commit f8a506e

Browse files
intisygithub-actions[bot]
authored andcommitted
Auto-update README
1 parent 7b1031c commit f8a506e

1 file changed

Lines changed: 55 additions & 13 deletions

File tree

README.md

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,72 @@
1-
# Docker Java
1+
#
22

33
Archives containing JAR files are available as [releases](https://github.com/intisy/docker-java/releases).
44

5-
## What is intisy/docker-java?
5+
## What is docker-java?
66

77
Docker-java provides a standalone Docker server for Java.
88

9-
## Example
10-
11-
12-
13-
## Usage in private projects
9+
## Usage in private repos (faster)
1410

1511
* Maven (inside the file)
16-
12+
```xml
13+
<repository>
14+
<id>github</id>
15+
<url>https://maven.pkg.github.com/intisy/docker-java</url>
16+
<snapshots><enabled>true</enabled></snapshots>
17+
</repository>
18+
<dependency>
19+
<groupId>io.github.intisy</groupId>
20+
<artifactId>docker-java</artifactId>
21+
<version>1.1.3.2</version>
22+
</dependency>
23+
```
1724

1825
* Maven (inside the file)
19-
26+
```xml
27+
<servers>
28+
<server>
29+
<id>github</id>
30+
<username>your-username</username>
31+
<password>your-access-token</password>
32+
</server>
33+
</servers>
34+
```
2035

2136
* Gradle (inside the or file)
22-
23-
24-
## Usage in public projects
37+
```groovy
38+
repositories {
39+
maven {
40+
url "https://maven.pkg.github.com/intisy/docker-java"
41+
credentials {
42+
username = "<your-username>"
43+
password = "<your-access-token>"
44+
}
45+
}
46+
}
47+
dependencies {
48+
implementation 'io.github.intisy:docker-java:1.1.3.2'
49+
}
50+
```
51+
52+
## Usage in public repos (slower and only works in gradle but safer)
2553

2654
* Gradle (inside the or file)
27-
55+
```groovy
56+
plugins {
57+
id "io.github.intisy.github-gradle" version "1.3.7"
58+
}
59+
dependencies {
60+
githubImplementation "intisy:docker-java:1.1.3.2"
61+
}
62+
```
63+
64+
Once you have it installed you can use it like so:
65+
66+
```DockerProvider dockerProvider = DockerProvider.get();
67+
dockerProvider.ensureInstalled();
68+
dockerProvider.start();
69+
DockerClient dockerClient = dockerProvider.getClient();```
2870
2971
## License
3072

0 commit comments

Comments
 (0)