This is an automated email from the ASF dual-hosted git repository. danwatford pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new bb13554641 Added: Development Container configuration (OFBIZ-13151) bb13554641 is described below commit bb13554641e7e884b5ea5e677b9bb6468f71acad Author: Daniel Watford <dan...@watfordconsulting.com> AuthorDate: Wed Oct 23 08:59:30 2024 +0100 Added: Development Container configuration (OFBIZ-13151) 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. --- .devcontainer/devcontainer.json | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..e37968f82f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +}