Downgrade Tomcat 8.0 to 7.0 which is still supported

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

View File

@ -26,7 +26,8 @@ lxc-build alpine3.9-python2.7
lxc-build alpine3.9-python3.6 lxc-build alpine3.9-python3.6
lxc-build alpine3.9-nodejs10 lxc-build alpine3.9-nodejs10
lxc-build alpine3.9-ruby2.4 lxc-build alpine3.9-ruby2.4
lxc-build alpine3.9-tomcat8 lxc-build alpine3.9-tomcat7
lxc-build alpine3.9-tomcat8.5
# Build services # Build services
lxc-build activemq lxc-build activemq
@ -72,7 +73,8 @@ lxc-pack alpine3.9-python2.7
lxc-pack alpine3.9-python3.6 lxc-pack alpine3.9-python3.6
lxc-pack alpine3.9-nodejs10 lxc-pack alpine3.9-nodejs10
lxc-pack alpine3.9-ruby2.4 lxc-pack alpine3.9-ruby2.4
lxc-pack alpine3.9-tomcat8 lxc-pack alpine3.9-tomcat7
lxc-pack alpine3.9-tomcat8.5
# Pack services # Pack services
lxc-pack activemq lxc-pack activemq

21
alpine3.9-tomcat7/lxcfile Normal file
View File

@ -0,0 +1,21 @@
IMAGE build
LAYER shared/alpine3.9
LAYER shared/alpine3.9-java8
LAYER shared/alpine3.9-tomcat7
RUN EOF
# Install Tomcat 7
wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.93/bin/apache-tomcat-7.0.93.tar.gz -O - | tar xzf - -C /srv
mv /srv/apache-tomcat-7.0.93 /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
EOF
COPY lxc

View File

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

View File

@ -1,18 +0,0 @@
IMAGE build
LAYER shared/alpine3.9
LAYER shared/alpine3.9-java8
LAYER shared/alpine3.9-tomcat8
RUN EOF
# Install Tomcat 8
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.53/bin/apache-tomcat-8.0.53.tar.gz -O - | tar xzf - -C /srv
mv /srv/apache-tomcat-8.0.53 /srv/tomcat
# Make catalina.sh available globally
ln -s /srv/tomcat/bin/catalina.sh /usr/bin/catalina.sh
# Cleanup
rm -rf /srv/tomcat/webapps/ROOT /srv/tomcat/webapps/docs /srv/tomcat/webapps/examples /srv/tomcat/webapps/host-manager /srv/tomcat/webapps/manager
EOF
COPY lxc