Add Tomcat 8.5 layer

This commit is contained in:
Disassembler 2019-03-01 12:21:18 +01:00
parent aaf2611b82
commit 6977e1e7bd
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
CATALINA_OPTS=-Xms32M

View File

@ -0,0 +1,25 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
handlers = java.util.logging.ConsoleHandler
.handlers = java.util.logging.ConsoleHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter

View File

@ -0,0 +1,26 @@
IMAGE build
LAYER shared/alpine3.9
LAYER shared/alpine3.9-java8
LAYER shared/alpine3.9-tomcat8.5
RUN EOF
# Install Tomcat 8.5
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.38/bin/apache-tomcat-8.5.38.tar.gz -O - | tar xzf - -C /srv
mv /srv/apache-tomcat-8.5.38 /srv/tomcat
# Make catalina.sh available globally
ln -s /srv/tomcat/bin/catalina.sh /usr/bin/catalina.sh
# Cleanup
rm -f /srv/tomcat/bin/tomcat-native.tar.gz
rm -f /srv/tomcat/temp/safeToDelete.tmp
rm -rf /srv/tomcat/webapps
mkdir /srv/tomcat/webapps
# Change permission
find /srv/tomcat -type d -exec chmod 755 {} +
find /srv/tomcat -type f -not -path '/srv/tomcat/conf/*' -exec chmod 644 {} +
chmod 755 /srv/tomcat/bin/*.sh
EOF
COPY lxc

9
alpine3.9-tomcat8.5/meta Normal file
View File

@ -0,0 +1,9 @@
{
"desc-cs": "Základní LXC vrstva s JSP a servlet kontejnerem Tomcat 8.5",
"desc-en": "Basic LXC layer with Tomcat 8.5 JSP and servlet container",
"lxcpath": "shared/alpine3.9-tomcat8.5",
"version": "0.0.1",
"release": "0",
"license": "GPL",
"depends": ["alpine3.9-java8"]
}