Packaging for Ubuntu - Web Application

A web application does not have a make file, unlike C ++ or something similar. However, it must be placed in certain directories ... for example, / var / www.

I am new to linux packaging, so my question is: how do I package an application in a .deb file so that when I install it it gets into something like / etc / myprogram / bundles / myprogram -3.4? Mine, in particular, is a java application running on Tomcat Apache.

I managed to create a .deb file by carefully reading every word at http://www.debian.org/doc/manuals/maint-guide . However, when I follow the instructions, I get

1) the .deb file, which is 1.7kb instead of ~ 240mb, should be, because, apparently, it lacks all my source code. 2) got confused because I don't know if I should write some kind of makefile. I don’t even know where to find the answer to this question, and then I will have to deal with how to write a make file.

I sent a similar question to ubuntuforums, but I feel that I am more likely to get the answer here.

+4
source share
2 answers

The build tool for Java programs is ANT. Using ANT, you create a WAR file and deploy it to Tomcat.

Here is a quick overview of how it looks: http://javabeanz.wordpress.com/2009/02/12/how-to-create-a-war-file-using-ant/
and here is a tutorial on creating a war file with ANT: http://techtracer.com/2007/04/16/the-great-ant-tutorial-a-great-jump-start/

+1
source

I created .deb packages from a Java project on Ubuntu 10.04LTS with the following commands:

  • cd $PROJECT_DIR
  • sudo checkinstall -D javac *.java
+2
source

Source: https://habr.com/ru/post/1312146/


All Articles