diff options
Diffstat (limited to 'docker/readme.md')
-rw-r--r-- | docker/readme.md | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/docker/readme.md b/docker/readme.md index f8f03427..c5805162 100644 --- a/docker/readme.md +++ b/docker/readme.md @@ -10,30 +10,22 @@ Each docker image contains a `/workspace` where all relevant files are located. When building the image, a lombok.jar will be downloaded to `/workspace`. By default, this is the latest released version. You
can download a specific version by adding `--build-arg lombokjar=lombok-<major.minor.build>.jar`
+### `ARG jdk=1.9`
-### Use fresh lombok.jar
-If you want to use a lombok.jar from your system, assuming `<lombokhome>` contains the path to the lombok directory (where the .git subdirectory is located)
-you can mount your recently built lombok.jar by providing `-v /<lombokhome>/dist/lombok.jar:/workspace/lombok.jar` to the `docker run` command.
-
+The jdk version to be used. Supported values:
-## Example build commands:
+- `1.9` (default)
+- `1.8`
-```
-docker build -t lombok-gradle-jdk9 -f gradle/Dockerfile .
+The version is also accessible in `JDK_VERSION`.
-docker build -t lombok-gradle-jdk9 --build-arg lombokjar=lombok-1.16.18.jar -f gradle/Dockerfile .
-```
-## Example run commands:
-
-```
-docker run -it lombok-gradle-jdk9
+### Use fresh lombok.jar
+If you want to use a lombok.jar from your system, assuming `<lombokhome>` contains the path to the lombok directory (where the .git subdirectory is located)
+you can mount your recently built lombok.jar by providing `-v /<lombokhome>/dist/lombok.jar:/workspace/lombok.jar` to the `docker run` command.
-docker run --rm -it -v /<lombokhome>/dist/lombok.jar:/workspace/lombok.jar lombok-gradle-jdk9
-```
-## Example container commands:
+## Examples
-```
-gradle assemble
-```
+- [gradle](gradle/readme.md)
+- [maven](maven/readme.md)
|