Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIBDRUM-915. Updated docker-compose.yml to support VS Code debugging #241

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

dsteelma-umd
Copy link

In DSpace 7.6.2, the back-end was run using the Tomcat “catalina.sh” script, which automatically included the “JPDA_OPTS” environment variable, if present in the shell.

With the switch to using a Spring Boot embedded Tomcat server, the Tomcat server is started by a “java” command, instead of the “catalina.sh” script.

Modified the “docker-compose.yml“ to use the “JPDA_OPTS” environment variable when starting the DRUM back-end, i.e. changed:

    entrypoint:
      ...
      java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace

to

    entrypoint:
      ...
      java $${JPDA_OPTS} -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace

The use of the ${{...} was suggested by https://stackoverflow.com/a/65564161

Updated the “DockerDevelopmentEnvironment.md” document to reference the “JPDA_OPTS” environment variable, instead of the non-existent “JAVA_TOOL_OPTIONS” environment variable.

https://umd-dit.atlassian.net/browse/LIBDRUM-915

In DSpace 7.6.2, the back-end was run using the Tomcat “catalina.sh”
script, which automatically included the “JPDA_OPTS” environment
variable, if present in the shell.

With the switch to using a Spring Boot embedded Tomcat server, the
Tomcat server is started by a “java”  command, instead of the
“catalina.sh” script.

Modified the “docker-compose.yml“ to use the “JPDA_OPTS” environment
variable when starting the DRUM back-end, i.e. changed:

```yaml
    entrypoint:
      ...
      java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
```

to

```yaml
    entrypoint:
      ...
      java $${JPDA_OPTS} -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
```

The use of the ${{...} was suggested by https://stackoverflow.com/a/65564161

Updated the “DockerDevelopmentEnvironment.md” document to reference the
“JPDA_OPTS” environment variable, instead of the non-existent
“JAVA_TOOL_OPTIONS” environment variable.

https://umd-dit.atlassian.net/browse/LIBDRUM-915
@dsteelma-umd dsteelma-umd merged commit 01677dc into umd-lib:drum-main Feb 7, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant