Skip to content

Instantly share code, notes, and snippets.

@aspyker
Last active August 29, 2015 14:06
Show Gist options
  • Save aspyker/7691d1b66710152575e2 to your computer and use it in GitHub Desktop.
Save aspyker/7691d1b66710152575e2 to your computer and use it in GitHub Desktop.
problems with debs and fpm gradle plugin
I used the fpm and gradle plugin to generate both deb files. In one case,
the ROOT.xml is there after install. In the other case not. The only difference
I see is the ordering of the files in the package. I'm not sure if I can control
order in fpm to see if that is the issue. I also can't see an obvious reason why
one would choose one order and the other a different order given the same build
process is used.
Failing server:
root@i-df1d:/var/lib/dpkg/info# dpkg -L acmeair-webapp
/.
/var
/var/lib
/var/lib/tomcat7
/var/lib/tomcat7/conf
/var/lib/tomcat7/conf/Catalina
/var/lib/tomcat7/conf/Catalina/localhost
/var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml
/var/lib/tomcat7/acmeair-webapp-0.1.0-SNAPSHOT.war
root@i-df1d:/var/lib/dpkg/info# ls -la /var/lib/tomcat7/acmeair-webapp-0.1.0-SNAPSHOT.war /var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml
ls: cannot access /var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml: No such file or directory
-rwxrwx--- 1 tomcat7 tomcat7 29525883 Sep 9 18:32 /var/lib/tomcat7/acmeair-webapp-0.1.0-SNAPSHOT.war
Working server:
root@i-31d3:/var/lib/dpkg/info# dpkg -L acmeair-auth-service
/.
/var
/var/lib
/var/lib/tomcat7
/var/lib/tomcat7/acmeair-auth-service-0.1.0-SNAPSHOT.war
/var/lib/tomcat7/conf
/var/lib/tomcat7/conf/Catalina
/var/lib/tomcat7/conf/Catalina/localhost
/var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml
root@i-31d3:/var/lib/dpkg/info# ls -la /var/lib/tomcat7/acmeair-auth-service-0.1.0-SNAPSHOT.war /var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml
-rwxrwx--- 1 tomcat7 tomcat7 28674252 Sep 9 18:30 /var/lib/tomcat7/acmeair-auth-service-0.1.0-SNAPSHOT.war
-rwxrwx--- 1 tomcat7 tomcat7 111 Sep 9 18:30 /var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment