Skip to content

Docker Jenkins slave using JNLP to establish connection and providing PHP build tools

License

Notifications You must be signed in to change notification settings

gomoob/docker-jenkins-jnlp-slave-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported tags and respective Dockerfile links

What is jenkins-jnlp-slave-php ?

gomoob/jenkins-jnlp-slave-php is a Docker Jenkins slave image using JNLP to establish connection and providing PHP build tools.

The container is based on the official Jenkins jenkinsci/jnlp-slave Docker slave container and adds several additional tools to build PHP projects.

Available executables

The following tools can be called under the Jenkins slave.

  • php-7.1.7 or php-7.1 or php to execute PHP 7.1.x with Xdebug enabled ;
  • php-without-xdebug-7.1.7 or php-without-xdebug-7.1 or php-without-xdebug to execute PHP 7.1.x without Xdebug enabled ;
  • php-7.0.21 or php-7.0 to execute PHP 7.0.x with Xdebug enabled ;
  • php-without-xdebug-7.0.21 or php-without-xdebug-7.0 to execute PHP 7.0.x without Xdebug enabled ;
  • phpunit ;
  • composer (based on prestissimo ;
  • phpmd ;
  • sami ;
  • phpcov ;
  • phpcpd ;
  • phploc ;
  • box ;
  • mediainfo.

Extensions included at PHP compilation

Each version of PHP available is compiled with the following extensions.

dba, ipv6, dom, calendar, wddx, static, inifile, inline, cli, ftp, filter, zts, json, hash, exif, mbstring, mbregex, libgcc, pdo, posix, embed, sockets, zip, bcmath, fileinfo, ctype, cgi, soap, pcntl, phar, session, tokenizer, opcache, imap, tidy, kerberos, xmlrpc, fpm, pcre, mhash, mcrypt, zlib, curl, readline, editline, gd, intl, icu, openssl, mysql, sqlite, pgsql, xml, xml_all, gettext, iconv, bz2, ipc.

Additional extensions

In addition the following extensions are also installed with each PHP executable.

apcu, apcu_bc, mongodb, xdebug

Specific settings

  • memory_limit = -1

How to use this image.

Run with command line

$ docker run --name jenkins-jnlp-slave-php gomoob/jenkins-jnlp-slave-php-url http://jenkins-server:port <secret> <agent name>

Optional environment variables

  • JENKINS_URL : url for the Jenkins server, can be used as a replacement to -url option, or to set alternate jenkins URL ;
  • JENKINS_TUNNEL: (HOST:PORT) connect to this agent host and port instead of Jenkins server, assuming this one do route TCP traffic to Jenkins master. Useful when when Jenkins runs behind a load balancer, reverse proxy, etc ;
  • JENKINS_SECRET : agent secret, if not set as an argument ;
  • JENKINS_AGENT_NAME : agent name, if not set as an argument.

Configuration specifics

Enabled JNLP protocols

By default, the JNLP3-connect is disabled due to the known stability and scalability issues.

You can enable this protocol on your own risk using the JNLP_PROTOCOL_OPTS=-Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=false property (the protocol should be enabled on the master side as well).

In Jenkins versions starting from 2.27 there is a JNLP4-connect protocol.

If you use Jenkins 2.32.x LTS, it is recommended to enable the protocol on your instance.

Amazon ECS

Make sure your ECS container agent is updated before running. Older versions do not properly handle the entryPoint parameter. See the entryPoint definition for more information.

About Gomoob

At Gomoob we build high quality software with awesome Open Source frameworks everyday. Would you like to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible !

You can contact us by email at [email protected] or by phone number (+33) 6 85 12 81 26 or (+33) 6 28 35 04 49.

Visit also http://gomoob.github.io to discover more Open Source softwares we develop.

About

Docker Jenkins slave using JNLP to establish connection and providing PHP build tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages