https://github.com/craig-rueda/tomcat-native-embedded
Docker image with native Tomcat libs
https://github.com/craig-rueda/tomcat-native-embedded
Last synced: 3 months ago
JSON representation
Docker image with native Tomcat libs
- Host: GitHub
- URL: https://github.com/craig-rueda/tomcat-native-embedded
- Owner: craig-rueda
- License: apache-2.0
- Created: 2018-04-03T13:03:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T13:10:42.000Z (about 7 years ago)
- Last Synced: 2025-01-16T03:53:52.578Z (5 months ago)
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tomcat Native + APR on Alpine Linux
This repo shows how one would go about building Tomcat's [native bindings](http://tomcat.apache.org/native-doc/) inside of Alpine for use either in Tomcat or [Tomcat Embedded](https://tomcat.apache.org/download-80.cgi)
## Usage
* Just pull the prebuilt image
```shell
$ docker pull craigrueda/tcnative:latest
````OR`
* Build the image yourself
```shell
$ docker build -t my-image .
```Once you have your image, you can extend it for your own purposes (i.e. running a Tomcat-based Spring Boot app, or a standard Tomcat server)
## Usage (Java)
In order to take advantage of the provided Tomcat native libs, you'll need to run Java with the appropriate library path set
*Standard Java*
```shell
$ java -Djava.library.path=/usr/local/apr/lib
```*Running Tomcat*
```shell
$ export JAVA_OPTS="... -Djava.library.path=/usr/local/apr/lib ..."$ catalina.sh run
```