Skip to content

Commit

Permalink
Add docs for fixing read only file system deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoliver authored Nov 7, 2019
1 parent a721e37 commit 7db8dea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/src/main/asciidoc/vertx.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,16 @@ Then, create the native executable with:
./mvnw package -Pnative
----

== Read only deployment environments

In environments with read only file systems you may receive errors of the form:

```
java.lang.IllegalStateException: Failed to create cache dir
```

Assuming `/tmp/` is writeable this can be fixed by setting the `vertx.cacheDirBase` property to point to a directory in `/tmp/` for instance in OpenShift by creating an environment variable `JAVA_OPTS` with the value `-Dvertx.cacheDirBase=/tmp/vertx`.

== Going further

There are many other facets of Quarkus using Vert.x underneath:
Expand Down

0 comments on commit 7db8dea

Please sign in to comment.