All Projects → gocd-contrib → docker-swarm-elastic-agent-plugin

gocd-contrib / docker-swarm-elastic-agent-plugin

Licence: Apache-2.0 license
Docker swarm based elastic agents for GoCD

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to docker-swarm-elastic-agent-plugin

docker-gocd-agent
GoCD Agent Docker image
Stars: ✭ 46 (+170.59%)
Mutual labels:  gocd, gocd-agent
docker-volume-rclone
Use Rclone as a backend for docker volume (also as a plugin). This permit to easely mount a lot of cloud provider (https://rclone.org/overview).
Stars: ✭ 97 (+470.59%)
Mutual labels:  docker-plugin
mlflow-gocd
GoCD plugins to work with MLFlow as model repository in a CD flow
Stars: ✭ 26 (+52.94%)
Mutual labels:  gocd
docker-volume-git
Docker Volume GIT plugin allows to mount git repository in container
Stars: ✭ 23 (+35.29%)
Mutual labels:  docker-plugin
dovesnap
Docker OVS Network Plugin
Stars: ✭ 18 (+5.88%)
Mutual labels:  docker-plugin
xfsvol
Local Docker Volumes with XFS Project Quota
Stars: ✭ 24 (+41.18%)
Mutual labels:  docker-plugin
miniovol
Minio Docker volume plugin. Create docker volumes that mount Minio buckets. Minio is S3 compatible.
Stars: ✭ 14 (-17.65%)
Mutual labels:  docker-plugin
docker-volume-linode
Docker Volume driver for Linode Block Storage
Stars: ✭ 39 (+129.41%)
Mutual labels:  docker-plugin
Gocd
Main repository for GoCD - Continuous Delivery server
Stars: ✭ 6,314 (+37041.18%)
Mutual labels:  gocd
gocd-filebased-authentication-plugin
This plugin is a password file based authentication plugin for GoCD
Stars: ✭ 18 (+5.88%)
Mutual labels:  gocd
kubernetes-elastic-agents
Kubernetes Elastic agent plugin for GoCD
Stars: ✭ 35 (+105.88%)
Mutual labels:  gocd
www.go.cd
Github pages repo
Stars: ✭ 39 (+129.41%)
Mutual labels:  gocd
gocd-trial
See GoCD in action quickly, using docker-compose.
Stars: ✭ 25 (+47.06%)
Mutual labels:  gocd
up
UP - Ultimate Provisioner CLI
Stars: ✭ 43 (+152.94%)
Mutual labels:  gocd
docker-registry-artifact-plugin
The docker registry artifact plugin provides a way to push and pull docker images on GoCD
Stars: ✭ 21 (+23.53%)
Mutual labels:  gocd

GoCD Elastic agent plugin for Docker Swarm

Table of Contents

Installation

Documentation for installation is available here.

Building the code base

To build the jar, run ./gradlew clean test assemble

Using your own docker image with elastic agents

More information to build custom GoCD agent docker image is available here

Troubleshooting

If you already have it running it on a mac, make sure to restart it (see docker/for-mac#17 (comment)). Time drift is known to cause the plugin to not work, because the timestamps returned by the docker API has drifted from the host.

A good way to know if there's a time drift is to run docker ps

```
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
e0754c9f4cdb        alpine:latest       "/bin/sh"           32 minutes ago      Up 17 seconds                           test
809f310ba1e4        ubuntu:trusty       "/bin/bash"         33 minutes ago      Up About a minute                       reverent_raman
```

Notice how the CREATED and STATUS are several minutes apart for a recently created container.

Enabling debug level logging

If you are on GoCD version 19.6 and above:

Edit the file wrapper-properties.conf on your GoCD server and add the following options. The location of the wrapper-properties.conf can be found in the installation documentation of the GoCD server.

# We recommend that you begin with the index `100` and increment the index for each system property
wrapper.java.additional.100=-Dplugin.cd.go.contrib.elastic-agent.docker-swarm.log.level=debug

If you're running with GoCD server 19.6 and above on docker using one of the supported GoCD server images, set the environment variable GOCD_SERVER_JVM_OPTIONS:

docker run -e "GOCD_SERVER_JVM_OPTIONS=-Dplugin.cd.go.contrib.elastic-agent.docker-swarm.log.level=debug" ...

If you are on GoCD version 19.5 and lower:

Enabling debug level logging can help you troubleshoot an issue with the elastic agent plugin. To enable debug level logs, edit the /etc/default/go-server (for Linux) to add:

export GO_SERVER_SYSTEM_PROPERTIES="$GO_SERVER_SYSTEM_PROPERTIES -Dplugin.cd.go.contrib.elastic-agent.docker-swarm.log.level=debug"

If you're running the server via ./server.sh script —

$ GO_SERVER_SYSTEM_PROPERTIES="-Dplugin.cd.go.contrib.elastic-agent.docker-swarm.log.level=debug" ./server.sh

License

Copyright 2019, ThoughtWorks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].