bpkroth commented on code in PR #13034:
URL: https://github.com/apache/iceberg/pull/13034#discussion_r2085322453


##########
.devcontainer/devcontainer.json:
##########
@@ -0,0 +1,54 @@
+// For format details, see https://aka.ms/devcontainer.json. For config 
options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/java
+{
+    "name": "Java",
+    // Or use a Dockerfile or Docker Compose file. More info: 
https://containers.dev/guide/dockerfile
+    "image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
+    "initializeCommand": {
+               // Make sure the .gradle directory exists on the host so we can 
bind to it.
+        // TODO: Make this work on Windows too.
+        "create-gradle-cachedir": "mkdir -pv ${localEnv:HOME}/.gradle"
+    },

Review Comment:
   Could potentially also add a `postAttachCommand` to `gradlew init` to 
configure the projects and fetch dependencies as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to