GithubHelp home page GithubHelp logo

paketo-buildpacks / jattach Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 0.0 219 KB

A Cloud Native Buildpack that provides the JAttach binary to send commands to a remote JVM via Dynamic Attach mechanism.

License: Apache License 2.0

Go 95.35% Shell 4.65%

jattach's Introduction

gcr.io/paketo-buildpacks/jattach

The Paketo Buildpack for JAttach is a Cloud Native Buildpack that provides the JAttach binary to send commands to a remote JVM via Dynamic Attach mechanism.

Behavior

This buildpack will participate all the following conditions are met

  • $BP_JATTACH_ENABLED is set

The buildpack will do the following:

  • Contributes JAttach to a layer marked launch with command on $PATH

License

This buildpack is released under version 2.0 of the Apache License.

jattach's People

Contributors

anthonydahanne avatar dependabot[bot] avatar dmikusa avatar paketo-bot avatar pivotal-david-osullivan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jattach's Issues

Commad not added to the `$PATH`

When building with the base image paketobuildpacks/builder-jammy-base:latest and BP_JATTACH_ENABLED=true, the jattach layer is added, but executable is not added to to path, nor included in any folders included in the path.

cnb@plainly-backend-86787d8f85-hbhzk:/$ ./layers/paketo-buildpacks_jattach/jattach/bin/jattach             
jattach 2.2 built on Jan 10 2024

Usage: jattach <pid> <cmd> [args ...]

Commands:
    load  threaddump   dumpheap  setflag    properties
    jcmd  inspectheap  datadump  printflag  agentProperties

cnb@plainly-backend-86787d8f85-hbhzk:/$ jattach
bash: jattach: command not found

cnb@plainly-backend-86787d8f85-hbhzk:/$ echo $PATH
/cnb/process:/cnb/lifecycle:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Expected Behavior

Command should be in the path.

Steps to Reproduce

  1. I managed to hit it by using the spring boot gradle-based docker image build, setup as:
tasks.named("bootBuildImage") {
    builder = 'paketobuildpacks/builder-jammy-base:latest'
    environment["BP_JATTACH_ENABLED"] = "true"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.