Code Monkey home page Code Monkey logo

tomcat_rpm's Introduction

Tomcat rpm

This is a maven module that will grab the desired version of tomcat from maven and create a distributable rpm with the following name:

tomact<major_version><minor_version>-<major_version>.<minor_version>.<revision_version>.rpm

This rpm will be signed by the gpg secret key in the secret keyring referenced in the maven conifguration "signing.keyring.file" in the tomcat-parent pom.

Installation will place tomcat in the /opt/tomcat directory. The only change made to the tomcat archive is that the setenv.d will be used instead of the sentenv.sh to store application environment variables. This way each application can have its own file.

How to Build

Update the version number to the desired tomcat version

mvn versions:set --define newVersion=<tomcat_version> \
--define processDependencies=false \
--define processParent=true \
--file tomcat-parent/pom.xml

build the project

mvn clean package

Create gpg secret key and secret keyring

requires gnugpg < 2.1 since GnuPG 2.1 secret keys are no longer stored in a secret keyring see release notes

gpg --full-generate-key
gpg --list-secret-keys
gpg --list-secret-keys --secret-keyring=test-secret-keyring.gpg

Below is the output from the above command with '2F3ECCB' being the key_id

/home/vagrant/.gnupg/test-secret-keyring.gpg
--------------------------------------------
sec   4096R/2F3ECCBD 2020-01-24
uid                  Test User (This is for testing purposes only) <[email protected]>

export secret key and generate a secret keyring

gpg --export-secret-keys <key_id> > private.key
gpg --no-default-keyring --secret-keyring=test-secret-keyring.gpg --allow-secret-key-import --import ./private.key

tomcat_rpm's People

Contributors

mluckam avatar

Watchers

 avatar  avatar

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.