amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
501 stars 38 forks source link

[Package Request] - tomcat_native #568

Open mtallenca opened 7 months ago

mtallenca commented 7 months ago

What package is missing from Amazon Linux 2023? Please describe and include package name. ELB with Tomcat 10 and Amazon Linux 2023 has tomcat, but is missing package tomcat-native.

Is this an update to existing package or new package request? New package request

Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify. This package is available in Amazon Linux 2

Any additional information you'd like to include. (use-cases, etc) Attempting to update my environment from Tomcat 8.5 / Amazon Linux 2 to Tomcat 10 / Amazon Linux 2023 - tomcat_native package is missing

jianatteradata commented 6 months ago

We are facing the similiar issue. Our production is currently running on AWS Linux 2 and it requires tomcat native. Tomcat native is available on AWS Linux 2. Now we are moving to AWS Linux 2023, Tomcat native is not available. We are stuck to move forward.

mtallenca commented 6 months ago

I'm now building tomcat native as part of my server config in .ebextensions. I've included the file we're using. It's been used in production for almost a month now.

packages:
  yum:
    apr-devel.x86_64: []
    openssl-devel: []
    gcc: []

files:
  "/tmp/build_tomcat_native.sh":
    owner: root
    group: root
    mode: "000755"
    content: |
      #! /bin/bash
      CONFIGURED=`ls /usr/lib/libtcnative* | wc -l`
      if [ $CONFIGURED = 0 ]
        then
          cd /tmp
          SRC=tomcat-native-2.0.6-src
          TAR=$SRC.tar.gz
          curl https://dlcdn.apache.org/tomcat/tomcat-connectors/native/2.0.6/source/$TAR > $TAR
          tar zxvf $TAR
          cd $SRC/native
          ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/usr/lib/jvm/java --with-ssl=/usr/include/openssl --prefix=/usr
          make && make install
      fi

container_commands:
    native:
        command: "sh /tmp/build_tomcat_native.sh"