OctopusDeploy / OctopusTentacle

| Public | The secure, lightweight, cross-platform agent for Octopus Server which turns any computer into a worker or deployment target for automated deployments and operations runbooks.
https://octopus.com
Apache License 2.0
11 stars 16 forks source link
agent deploy devops octopus public

Tentacle

Tentacle is the secure, lightweight, cross-platform agent for Octopus Server which turns any computer into a worker or deployment target for automated deployments and operations runbooks.

Tentacles Everywhere

Code of Conduct

This project and everyone participating in it is governed by the Octopus Deploy Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior using the instructions in the code of conduct.

Did you find a bug?

If the bug is a security vulnerability in Octopus Deploy, please refer to our security policy.

Search our public Issues repository to ensure the bug was not already reported.

If you're unable to find an open issue addressing the problem, please follow our support guidelines.

Contributing

Issues, Pull Requests, and Release Notes

:+1::tada: First off, thanks for your contribution to Tentacle! :tada::+1:

Please create a new issue for each bug fix or enhancement. Issues in this repository are automatically used to create release notes for releases.

Please ensure every commit that hits main links either to an issue directly, or to a PR that in turn links to an issue. Please use the appropriate keywords to close issues.

Build, Test, and delivery

We use the Octopus Tentacle project in our private TeamCity server for automated build and test reporting status changes to pull requests.

We use the Octopus Tentacle project in our private Octopus server to deploy releases of Tentacle.

Deployments happen automatically - a merge to main will trigger a build and a deployment - continuous delivery for the win!

For internal developers, on closing an issue, ReleaseBot will ask you for release notes. For external developers, or if ReleaseBot fails for some reason, please add a comment to the issue Release note: XXXX to ensure release notes are generated correctly.

Bundling Tentacle with Octopus Server

We bundle Tentacle inside Octopus Server to make it super duper easy to keep Tentacle updated across entire fleets of customer installations. Choosing the version of Tentacle to bundle inside Octopus Server is currently a manual process.

To include a new version into the next Octopus Server release, update the reference in Octopus.Server.csproj. This is how we guarantee the version of Tentacle we bundle is also the version we use for all the end to end tests.

Debugging

In most scenarios, Tentacle is simple to debug:

  1. Just like a customer, set up an instance of Tentacle and connect it to an Octopus Server
  2. Start Tentacle using the debugger in your development environment of choice, using the Tentacle.exe run --instance=YOUR_INSTANCE_NAME command

Debugging in WSL (Windows Subsystem for Linux )

Currently we can only debug netcore apps running in WSL from VSCode, Visual Studio and Rider dont seem to have good working solutions

The Kubernetes Agent Tentacle is a bit more complex to debug, as it normally runs inside a Kubernetes Pod. To debug it locally, you can run the setup-k8s-agent-for-local-debug.sh script in the root of this repo which will guide you through the process of installing a specially configured kind cluster, deploying the agent to it and then scaling back the installed agent so you can run a local copy to take it's place.

NOTE: This script has only been tested on MacOS so far and requires Docker Desktop, Kubectl, Go CLI and Kind to be installed. It is also only for the Kubernetes Agent Tentacle running as a Deployment Target, not as a Worker.

Additional Resources