diff --git a/alpine3.9-tomcat8.5/lxc/srv/tomcat/bin/setenv.sh b/alpine3.9-tomcat8.5/lxc/srv/tomcat/bin/setenv.sh new file mode 100644 index 0000000..d686638 --- /dev/null +++ b/alpine3.9-tomcat8.5/lxc/srv/tomcat/bin/setenv.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +CATALINA_OPTS=-Xms32M diff --git a/alpine3.9-tomcat8.5/lxc/srv/tomcat/conf/logging.properties b/alpine3.9-tomcat8.5/lxc/srv/tomcat/conf/logging.properties new file mode 100644 index 0000000..e702cb7 --- /dev/null +++ b/alpine3.9-tomcat8.5/lxc/srv/tomcat/conf/logging.properties @@ -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 diff --git a/alpine3.9-tomcat8.5/lxcfile b/alpine3.9-tomcat8.5/lxcfile new file mode 100644 index 0000000..804bd9e --- /dev/null +++ b/alpine3.9-tomcat8.5/lxcfile @@ -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 diff --git a/alpine3.9-tomcat8.5/meta b/alpine3.9-tomcat8.5/meta new file mode 100644 index 0000000..c3de862 --- /dev/null +++ b/alpine3.9-tomcat8.5/meta @@ -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"] +}