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.
The following tools can be called under the Jenkins slave.
php-7.1.7
orphp-7.1
orphp
to execute PHP 7.1.x with Xdebug enabled ;php-without-xdebug-7.1.7
orphp-without-xdebug-7.1
orphp-without-xdebug
to execute PHP 7.1.x without Xdebug enabled ;php-7.0.21
orphp-7.0
to execute PHP 7.0.x with Xdebug enabled ;php-without-xdebug-7.0.21
orphp-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
.
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
.
In addition the following extensions are also installed with each PHP executable.
apcu
, apcu_bc
, mongodb
, xdebug
memory_limit = -1
$ docker run --name jenkins-jnlp-slave-php gomoob/jenkins-jnlp-slave-php-url http://jenkins-server:port <secret> <agent name>
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.
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.
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.
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.