docs: Make separate docker README
This commit is contained in:
parent
645c9b4098
commit
5cc7b21eb2
15
INSTALL.md
15
INSTALL.md
@ -22,23 +22,14 @@ Previous command can be also used to upgrade to the latest version.
|
||||
|
||||
## Docker
|
||||
|
||||
```
|
||||
$ 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.
|
||||
See docker hub [page](https://hub.docker.com/r/guziks/warp4j).
|
||||
|
||||
## 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.
|
||||
|
18
docker/README.md
Normal file
18
docker/README.md
Normal 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.
|
Loading…
Reference in New Issue
Block a user