docs: Make separate docker README

This commit is contained in:
Serge Guzik 2019-02-17 13:34:46 +02:00
parent 645c9b4098
commit 5cc7b21eb2
3 changed files with 21 additions and 12 deletions

View File

@ -22,23 +22,14 @@ Previous command can be also used to upgrade to the latest version.
## Docker ## Docker
``` See docker hub [page](https://hub.docker.com/r/guziks/warp4j).
$ docker run --rm -it \
-e "WARP4J_CACHE=/cache" \
--volume <cache on host>:/cache \
--volume <jars on host>:/workdir \
--user $(id -u):$(id -g) \
guziks/warp4j <app.jar>
```
Change according to your requirements, but volume with working directory is mandatory.
## Moor ## Moor
To simplify the command above make a launcher with [moor](https://github.com/guziks/moor): Instead of direct `docker run` command you can make a launcher with [moor](https://github.com/guziks/moor):
``` ```
$ moor guziks/warp4j warp4j $ moor guziks/warp4j:stable warp4j
``` ```
Then use as an ordinary command. Then use as an ordinary command.

18
docker/README.md Normal file
View File

@ -0,0 +1,18 @@
# Warp4j
Turn JAR (java archive) into self-contained executable in a single command.
See project [page](https://github.com/guziks/warp4j) for more information.
## Usage
```
$ docker run --rm -it \
-e "WARP4J_CACHE=/cache" \
--volume <cache on host>:/cache \
--volume <jars on host>:/workdir \
--user $(id -u):$(id -g) \
guziks/warp4j:stable <app.jar>
```
Change according to your requirements, but volume with working directory is mandatory.