Last active
June 9, 2019 17:00
-
-
Save ohmrefresh/12ee866934100db07f778b4357ec0573 to your computer and use it in GitHub Desktop.
Build tomcat native with centos 7 & java-1.8.0-openjdk-1.8.0.212
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM centos | |
| RUN yum install -y wget curl tar unzip bind sudo gcc make tar | |
| # RUN yum install -y apr | |
| RUN cd /tmp && wget https://www-us.apache.org/dist/tomcat/tomcat-connectors/native/1.2.21/source/tomcat-native-1.2.21-src.tar.gz && tar -zxvf tomcat-native-1.2.21-src.tar.gz | |
| # # ======== Install Middleware ========= | |
| RUN yum install -y http://mirror.centos.org/centos/7/updates/x86_64/Packages/java-1.8.0-openjdk-devel-1.8.0.212.b04-0.el7_6.x86_64.rpm | |
| RUN yum install apr-devel openssl-devel -y | |
| RUN cd /tmp/tomcat-native-1.2.21-src/native && mkdir ../output | |
| RUN cd /tmp/tomcat-native-1.2.21-src/native && ./configure --with-apr=/usr/bin/apr-1-config \ | |
| --with-java-home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64 \ | |
| --with-ssl=yes \ | |
| --prefix=/tmp/tomcat-native-1.2.21-src/output && make && make install |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build docker image . (docker build -t buildimage .)
Run docker run -it buildimage /bin/bash .
Out put path /tmp/tomcat-native-1.2.21-src/output/lib
Copy lib from Container to host
docker cp buildimage:/tmp/tomcat-native-1.2.21-src/output .
Copy out/lib to /usr/lib64 (OS).