Skip to content

Commit

Permalink
Added: Development Container configuration (OFBIZ-13151)
Browse files Browse the repository at this point in the history
Introduced a Development Container (devcontainer) which provides container-based development where tools needed by a developer are already installed, hopefully improving the developer onboarding experience.
  • Loading branch information
danwatford authored Oct 23, 2024
1 parent 8d83774 commit bb13554
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

{
"name": "OFBiz Trunk Dev Container",
"image": "mcr.microsoft.com/devcontainers/java:17",

"forwardPorts": [8080, 8443],

"features": {
// Tool to test GitHub Action Workflows locally.
"ghcr.io/dhoeric/features/act:1": {},
// Install the GitHub CLI
"ghcr.io/devcontainers/features/github-cli:1": {},
// Provide a nested docker instance inside the dev container
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},

"customizations": {
"vscode": {
"extensions": [
"vscjava.vscode-gradle",
"ritwickdey.LiveServer",
"vscjava.vscode-java-pack"
],
"settings": {
"java.jdt.ls.java.home": "/usr/lib/jvm/msopenjdk-current",
"java.import.gradle.java.home": "/usr/lib/jvm/msopenjdk-current",
"java.compile.nullAnalysis.mode": "automatic",
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable"
}
},
"jetbrains": {
"backend": "IntelliJ"
}
},

"containerUser": "vscode"
}

0 comments on commit bb13554

Please sign in to comment.