Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jelastic Certified Templates

52 views

Published on

Jelastic Certified Templates. How to pack, modify. Basics.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Jelastic Certified Templates

  1. 1. Jelastic Certified Templates Packing and Customizations
  2. 2. Today we are going to talk about: 1. D. templates. Why do we need this? 2. Template structure 3. CI for creating own templates (demo) 4. How to start? (demo)
  3. 3. Why?
  4. 4. Jelastic
 Certified
 Template
  5. 5. 2. Template structure • Labels • Service Files • Stack Files • JEM • Environment Variables CONFIGURATION FILESYSTEM -> Docker image goes to J. database inside container
  6. 6. • JEM Container Operating system Stack JEM JELASTIC UI
  7. 7. • JEM JEM BUILT-IN LIBRARIES CUSTOM
 OVERRIDES BUILT-IN MODULES
  8. 8. • Service files /etc/jelastic/jelastic.conf /etc/jelastic/metainf.conf /etc/jelastic/export.conf /etc/jelastic/extendperm.conf /etc/jelastic/favourites.conf /etc/jelastic/jinfo.ini /etc/jelastic/redeploy.conf /etc/sudoers.d/jelastic /etc/security/limits.conf
  9. 9. • Service files /etc/jelastic/jelastic.conf PLATFORM_VERSION=5.0.5 PLATFORM_PROTOCOL_VERSION=1.0 PLATFORM_PROTOCOL_PORT=56985 YOU CAN JUST SKIP THIS
  10. 10. • Service files /etc/jelastic/metainf.conf COMPUTE_TYPE=tomcat COMPUTE_TYPE_VERSION=7 COMPUTE_TYPE_FULL_VERSION=7.0.28 FIREWALL_ENABLED=0 PLATFORM_TECHMAIL_RECEPIENT=admin@example.com CAN BE SKIPPED IF YOU MAKE
 CHANGES TO EXISTING TEMPLATES
  11. 11. • Service files /etc/jelastic/export.conf tomee /opt/tomcat/apps;/opt/tomcat/conf/context.xml; /opt/tomcat/ conf/catalina.policy; /opt/tomcat/conf/tomcat-users.xml; /var/lib/ jelastic/keys; /var/spool/cron/tomcat; <COMPUTE_TYPE> <RESOURCES TO EXPORT>
  12. 12. • Service files /etc/jelastic/extendperm.conf nginx-php /etc/php.ini;/etc/php-fpm.conf;/etc/nginx/nginx.conf <COMPUTE_TYPE> <RESOURCES LIST>
  13. 13. • Service files /etc/jelastic/favourites.conf [directories] /opt/tomcat/conf /opt/tomcat/lib /opt/tomcat/temp /opt/tomcat/webapps /usr/java/latest /var/lib/jelastic/keys /var/spool/cron [files] /etc/jelastic/redeploy.conf
  14. 14. • Service files /etc/jelastic/jinfo.ini centos7-template-common 2017-03-16 12:36:52 appserver-base-image-centos7 2017-03-16 12:38:31 java_base 2017-04-10 11:43:27 jdk8 2017-04-10 11:50:17 tomcat8 2017-04-10 12:37:13 AUTOGENERATED, SKIP THIS
  15. 15. • Service files /etc/jelastic/redeploy.conf /etc/sysconfig/iptables /etc/sysconfig/iptables-custom /opt/tomcat/conf/jelastic-ha.xml /opt/tomcat/conf/jelastic-ssl.xml /opt/tomcat/conf/tomcat-env.sh /opt/tomcat/temp/ /var/lib/jelastic/keys /var/spool/cron/tomcat /opt/tomcat/conf/jelastic-ssl.xml ===> /opt/tomcat/conf/jelastic-ssl.xml.bak
  16. 16. • Service files /etc/sudoers.d/jelastic %ssh-access ALL = NOPASSWD: TOMCAT, TOMCAT_SERVICE
 Cmnd_Alias TOMCAT = /etc/init.d/tomcat start, /etc/init.d/tomcat stop, /etc/init.d/tomcat restart Cmnd_Alias TOMCAT_SERVICE = /sbin/service tomcat start, /sbin/service tomcat stop, /sbin/service tomcat restart
  17. 17. • Service files /etc/security/limits.conf @tomcat hard nofile 524290 @tomcat soft nofile 524290
  18. 18. • Labels Dockerfile METADATA Binary image Jelastic 
 database
  19. 19. • Labels clusterEnabled customSSL
  20. 20. • Labels isVcsSupport resetPassword
  21. 21. • Labels webAccess canBeExported
  22. 22. • Labels cloudletsMinCount cloudletsCount engineType (default) (not less than)
  23. 23. • Labels nodeMission / nodeGroup engineType nosql build sql vps cache storage bl/lb cp
  24. 24. • Other Labels adminUser compatibleVersions appUser contextRegex distrib jem port singleContext sourceUrl restartOnExtIpChange nodeType name logFolder engineVersion nodeTypeAlias deploySupport
  25. 25. • Stack files NO RULES /opt/tomcat /var/lib/mysql /usr/data/postgress /opt/glassfish /var/lib/mongo
  26. 26. • Environment variables ${COMPUTE_TYPE} => ‘tomcat’ ${WEBROOT} => ‘/opt/tomcat/webroot' ${SERVICE} => ‘tomcat’ ${DATA_OWNER} => ‘tomcat:tomcat’ ${DB_DATA_DIR} => ‘/var/lib/mongo’ ${MOUNT_DIR} => ‘/var/lib/mongo’
  27. 27. 3. CI for creating own templates DEMO
  28. 28. 4. How to start? DEMO

×