Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Sets RUNTIME_DIR in runtimes, instead of openjdk base image.#94

Merged
joaoandremartins merged 5 commits intomasterfrom
unset-runtime-dir
May 18, 2017
Merged

Sets RUNTIME_DIR in runtimes, instead of openjdk base image.#94
joaoandremartins merged 5 commits intomasterfrom
unset-runtime-dir

Conversation

@joaoandremartins
Copy link
Contributor

Helps fixing #64

Used in conjunction with GoogleCloudPlatform/jetty-runtime#164

Will also require a change in format-env-appengine-vm.sh

@joaoandremartins joaoandremartins requested review from aslo and meltsufin May 9, 2017 15:35

if [ "$DBG_ENABLE" = "true" ]; then
unset CDBG_DISABLE
DBG_AGENT="$( RUNTIME_DIR=$JETTY_BASE /opt/cdbg/format-env-appengine-vm.sh )"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is completely removing the debugger. I don't think we want to do that.

if [ "$DBG_ENABLE" = "true" ]; then
unset CDBG_DISABLE
DBG_AGENT="$( RUNTIME_DIR=$JETTY_BASE /opt/cdbg/format-env-appengine-vm.sh )"
DBG_AGENT="$(/opt/cdbg/format-env-appengine-vm.sh)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it can now just be
DBG_AGENT="/opt/cdbg/format-env-appengine-vm.sh"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you still want /opt/cdbg/format-env-appengine-vm.sh to be evaled, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, never mind.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ export DBG_AGENT="$(/usr/local/google/home/joaomartins/Downloads/cdbg_java_agent/format-env-appengine-vm.sh)"
$ echo $DBG_AGENT
-agentpath:/usr/local/google/home/joaomartins/Downloads/cdbg_java_agent/cdbg_java_agent.so=--log_dir=/var/log/app_engine,--logtostderr=false,--cdbg_extra_class_path=/webapps/root/WEB-INF/classes:/webapps/root/WEB-INF/lib

(without the format-env-appengine-vm.sh fix)

Copy link
Member

@meltsufin meltsufin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but we have to make sure that CDBG_APP_WEB_INF_DIR is set in the runtime (jetty/tomcat) before this file executes.

@joaoandremartins
Copy link
Contributor Author

This change is pending internal change 155509870 from being submitted and published.

emrekultursay pushed a commit to GoogleCloudPlatform/cloud-debug-java that referenced this pull request May 17, 2017
@joaoandremartins joaoandremartins merged commit 85a4d33 into master May 18, 2017
@joaoandremartins joaoandremartins deleted the unset-runtime-dir branch May 18, 2017 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants