Skip to content

Instantly share code, notes, and snippets.

View Steve973's full-sized avatar

Steve Storck Steve973

View GitHub Profile
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/path/to/dumps
-XX:+ExitOnOutOfMemoryError
-Xlog:gc*:file=/path/to/gc.log
-XX:NativeMemoryTracking=detail
@Steve973
Steve973 / Dockerfile
Created April 16, 2025 23:34
Devcontainer setup with minimal configuration
FROM myproj/base-java-gradle-dev:1.0.0-SNAPSHOT
# Copy certificate URLs file and script
COPY scripts/ca-cert-urls.properties scripts/configure-ca-cert.sh /tmp/
# Run certificate setup as root during build
RUN /bin/bash /tmp/configure-ca-cert.sh && \
rm -f /tmp/configure-ca-cert.sh /tmp/ca-cert-urls.properties && \
if getent passwd ubuntu > /dev/null; then userdel -r ubuntu; fi && \
if getent group ubuntu > /dev/null; then groupdel ubuntu; fi && \