Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Rename the template to Java 11
Browse files Browse the repository at this point in the history
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
  • Loading branch information
testforstephen committed Apr 25, 2019
1 parent 5b27162 commit d87c8c6
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 29 deletions.
15 changes: 0 additions & 15 deletions containers/java-11-maven/.devcontainer/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions containers/java-11-maven/.devcontainer/devcontainer.json

This file was deleted.

25 changes: 25 additions & 0 deletions containers/java-11/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#-----------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
#-----------------------------------------------------------------------------------------

FROM maven:3-jdk-11

# Install git, process tools
RUN apt-get update && apt-get -y install git procps curl

# Install Gradle
ENV GRADLE_HOME /opt/gradle
ENV GRADLE_VERSION 5.4
ARG GRADLE_DOWNLOAD_SHA256=c8c17574245ecee9ed7fe4f6b593b696d1692d1adbfef425bef9b333e3a0e8de
RUN curl -SL --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \
&& unzip gradle.zip \
&& rm gradle.zip \
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
&& ln -s "${GRADLE_HOME}/bin/gradlec" /usr/bin/gradle

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
7 changes: 7 additions & 0 deletions containers/java-11/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Java 11",
"dockerFile": "Dockerfile",
"extensions": [
"vscjava.vscode-java-pack"
]
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Java 11 & Maven
# Java 11

## Summary

*Develop Java applications. Includes the JDK 11, XML tools, along with any dependencies Maven requires.*
*Develop Java applications. Includes the JDK 11, Maven and Gradle build tools.*

| Metadata | Value |
|----------|-------|
| *Contributors* | The VS Code Java Team |
| *Definition type* | Dockerfile |
| *Languages, platforms* | Java, Maven |
| *Languages, platforms* | Java, Maven, Gradle |

## Using this definition with an existing folder

Expand All @@ -25,11 +25,11 @@ Beyond that, just follow these steps to use the definition:
2. To use VS Code's copy of this definition:
1. Start VS Code and open your project folder.
2. Press <kbd>F1</kbd> select and **Remote-Containers: Create Container Configuration File...** from the command palette.
3. Select the Java 11 & Maven definition.
3. Select the Java 11 definition.

3. To use latest-and-greatest copy of this definition from the repository:
1. Clone this repository.
2. Copy the contents of `containers/java-11-maven/.devcontainer` to the root of your project folder.
2. Copy the contents of `containers/java-11/.devcontainer` to the root of your project folder.
3. Start VS Code and open your project folder.

4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs.
Expand All @@ -43,7 +43,7 @@ This definition includes some test code that will help you verify it is working
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine.
2. Clone this repository.
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
4. Select the `containers/java-11-maven` folder.
4. Select the `containers/java-11` folder.
5. After the folder has opened in the container, press <kbd>F5</kbd> to start the project.
6. You should see "Hello Remote World!" in the a Debug Console after the program executes.
7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.
Expand Down

0 comments on commit d87c8c6

Please sign in to comment.