See https://github.com/gocd-contrib/docker-elastic-agents-plugin/releases
- Updated plugin libraries
- Fixed the issue with plugin settings validation
- Allow loading credentials from config file when using a custom Docker registry
- Show warnings in server health messages
- Terminate container once job is finished.
- Fixed validation issue with
enable_private_registry_authentication
andpull_on_container_create
.
Note: Requires GoCD version 18.10.0 and above. Plugin will not work with the older version of GoCD.
- Removed additional margin from status report pages
- Fixed broken plugin settings UI.
- Option to pull docker image on container create.
- Show message on agent status report page when container in not running for the specified job id.
- Support for agent status report and plugin status report.
- Containers are labelled with a JobIdentifier, which is used to assign work to the right container.
- Better message when a container is not created for the job or docker container is killed(#48).
Note: Requires GoCD version 18.2.0 and above. Plugin will not work with the older version of GoCD.
- User can now provide mapping for host entries in IP-ADDRESS HOSTNAME-1 HOSTNAME-2... format, which is the standard format for
/etc/hosts
file.
10.0.0.1 host-x
10.0.0.2 host-y host-z
- Updated spotify
docker-client
library tov8.9.0
- Allow usage of a private registry for elastic agent images
- Changed the
go.cd.elastic-agent.get-icon
call to use underscore instead of hyphens.
- Added support for a few additional calls required by the GoCD server.
go.cd.elastic-agent.get-profile-metadata
go.cd.elastic-agent.get-profile-view
go.cd.elastic-agent.validate-profile
go.cd.elastic-agent.get-icon
- Fix some synchronization issues that allowed more number of containers than the settings permitted
- The
AUTO_REGISTER_CONTENTS
contents environment variable has now been split up into 4 separate variables (details here) —GO_EA_AUTO_REGISTER_KEY
- the auto-register keyGO_EA_AUTO_REGISTER_ENVIRONMENT
- the auto-register environmentGO_EA_AUTO_REGISTER_ELASTIC_AGENT_ID
- the elastic agent idGO_EA_AUTO_REGISTER_ELASTIC_PLUGIN_ID
— the elastic plugin id
-
The command to execute in the docker container can now be specified using the
Command
property —<profile pluginId="cd.go.contrib.elastic-agent.docker" id="foo"> <property> <key>Command</key> <value> JAVA_HOME=/opt/java MAKE_OPTS=-j8 </value> </property> </profile>
- Do not attempt to load docker certificates if they are not specified in the configuration
- When terminating instances that did not register after a timeout, gracefully handle a
ContainerNotFoundException
, in case the container was cleaned up by other means
-
Environment variables can be specified using the
Environment
property —<profile pluginId="cd.go.contrib.elastic-agent.docker" id="foo"> <property> <key>Environment</key> <value> JAVA_HOME=/opt/java MAKE_OPTS=-j8 </value> </property> </profile>
-
If you'd like to specify environment variables globally for all containers, the plugin settings will let you do just that.
-
Added support for a plugin setting to limit the maximum number of containers that should be started up.
Initial release of plugin