Created a base image and wanna fork for specific purpose, then eth0 (bridge) & eth1 (host-only) have no IP. reason: VMware Player automatically assigned new MAC address, yet CentOS does not aware solutions: – remove /etc/udev/rules.d/70-persistent-net.rules – edit /etc/sysconfig/network-scripts/ifcfg-eth0 (and/or eth1) , remove line UUID=…. and HWADDR=…. – reboot
– download jenkins.war from http://jenkins-ci.org/ – increase upload limit on /var/packages/Tomcat/target/src/webapps/manager/WEB-INF/web.xml
1 2 3 4 5 6 |
<multipart-config> <!-- 100MB max --> <max-file-size>104857600</max-file-size> <max-request-size>104857600</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config> |
– edit username and roles on /var/packages/Tomcat/target/src/conf/tomcat-users.xml e.g. <user username="manager" password="manager" roles="manager-gui,manager-status"/> – config JENKINS_HOME on /var/packages/Tomcat/target/src/conf/context.xml
1 |
<Environment name="JENKINS_HOME" value="/volume2/homes/username/.jenkins" type="java.lang.String"/> |
Anywhere of your choice, remember to modify that directory, allow access by tomcat(http group). #cd /volume2/homes/ #chown username.http username #cd username && mkdir .jenkins && chmod 775 .jenkins – Control panel > Groups > http, edit, allow read/write for Tomcat share folder
1 2 |
cd /var/packages/Tomcat7/target/src/webapps/ chown http.root .synology/ |
– Go to tomcat url, click Manager App deploy jenkins.war, then start jenkins # to view Debian domain path realpath /var/packages/Tomcat/target ==> /volume2/\@appstore/Tomcat7/ reference: https://wiki.jenkins-ci.org/display/JENKINS/Tomcat
Amazon link (affiliated) Google Play Review