Coder Social home page Coder Social logo

docker-centos-tomcat's Introduction

tomcat

Description

Apache Tomcat Container

Usage

To build this container you need to run:

make build

If you want TLS configured then you need to put your ca.crt, crt.pem and key.pem into the ssl directory for these to be mounted into the image (with those specific names). If you would like to enable Basic Auth as well then you need to rename and edit ssl/tomcat-users.xml.template to ssl/tomcat-user.xml adding any users as required. The SSL directory should then be mounted into the container to /opt/tomcat/ssl. To run the Tomcat container run which will dynamically start with SSL/Basic Auth if it finds the correct files:

make run

This will startup a Tomcat container running Catalina

Tests

As part of the build process the docker file will run the OpenSSL and Tomcat test exiting and failing the build if these fail.

Credits

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

Cookiecutter audreyr/cookiecutter-pypackage

docker-centos-tomcat's People

Contributors

pixie79 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-centos-tomcat's Issues

Returned a non zero error 1

Step 27/35 : RUN mkdir -p /opt/tomcat-native && tar -zxf bin/tomcat-native.tar.gz -C /opt/tomcat-native --strip-components=1 && rm /opt/tomcat/bin/*tar.gz && cd /opt/tomcat-native/native && ./configure --libdir=/usr/lib/ --prefix="$CATALINA_HOME" --with-apr=/usr/bin/apr-1-config --with-java-home="$JAVA_HOME" --with-ssl=yes && make -j$(nproc) && make install && rm -rf /opt/tomcat-native /tmp/openssl
---> Running in 3d7346067798
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.2.30
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.4.8 detected.
setting CC to "gcc"
setting CPP to "gcc -E"
checking JAVA_HOME... failed

configure: error: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64 is not a directory

The command '/bin/sh -c mkdir -p /opt/tomcat-native && tar -zxf bin/tomcat-native.tar.gz -C /opt/tomcat-native --strip-components=1 && rm /opt/tomcat/bin/*tar.gz && cd /opt/tomcat-native/native && ./configure --libdir=/usr/lib/ --prefix="$CATALINA_HOME" --with-apr=/usr/bin/apr-1-config --with-java-home="$JAVA_HOME" --with-ssl=yes && make -j$(nproc) && make install && rm -rf /opt/tomcat-native /tmp/openssl' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.