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

Commit

Permalink
Revert "Removing plantuml due to #1448"
Browse files Browse the repository at this point in the history
This reverts commit fac9bdc.
  • Loading branch information
mjbvz committed Apr 25, 2019
1 parent 0d1e256 commit 1faa0fc
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 0 deletions.
18 changes: 18 additions & 0 deletions containers/plantuml/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#-----------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
#-----------------------------------------------------------------------------------------

FROM openjdk:8

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

# Install GraphViz
RUN apt-get install -y graphviz

# Clean up
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

7 changes: 7 additions & 0 deletions containers/plantuml/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "PlantUML",
"dockerFile": "Dockerfile",
"extensions": [
"jebbs.plantuml"
]
}
4 changes: 4 additions & 0 deletions containers/plantuml/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
README.md
test-project
.vscode
.npmignore
27 changes: 27 additions & 0 deletions containers/plantuml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# PlantUML

## Summary

*Demonstrates using PlantUML local rendering without installing dependencies. Includes Java, GraphViz, and the PlantUML extension.*

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

## Usage

[See here for information on using this and other definitions in your project](../../README.md#using-a-definition). There are no addtional steps required.

### Try it

1. Run **Remote-Container: Open Folder in Container...** in VS Code and select a cloned copy of this entire folder.
2. The container will build and VS Code will connect.
3. Open `sample.plantuml` in the `test-project` folder and hit Alt-D.

## License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License. See [LICENSE](../../LICENSE).
32 changes: 32 additions & 0 deletions containers/plantuml/test-project/markdownsample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Markdown Sample

Open the markdown preview to check it out!

## Code
```
@startuml
legend
VS Code can do that?
end legend
VisualStudioCode -> Agent: openFolder(path)
Agent -> ExtensionHost: installExtensions
ExtensionHost -> ExtensionHost: download
ExtensionHost -> ExtensionHost: install
ExtensionHost -> Agent: return true
Agent -> VisualStudioCode: return true@enduml
```

## Diagram
```plantuml
@startuml
legend
VS Code can do that?
end legend
VisualStudioCode -> Agent: openFolder(path)
Agent -> ExtensionHost: installExtensions
ExtensionHost -> ExtensionHost: download
ExtensionHost -> ExtensionHost: install
ExtensionHost -> Agent: return true
Agent -> VisualStudioCode: return true
@enduml
```
26 changes: 26 additions & 0 deletions containers/plantuml/test-project/sample.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Hit Alt-D preview me!
@startuml
title First Diagram
legend
VS Code can do that?
end legend
VisualStudioCode -> Agent: openFolder(path)
Agent -> ExtensionHost: installExtensions
ExtensionHost -> ExtensionHost: download
ExtensionHost -> ExtensionHost: install
ExtensionHost -> Agent: return true
Agent -> VisualStudioCode: return true
@enduml

@startuml
title Second Diagram
legend
VS Code can do that?
end legend
VisualStudioCode -> Agent: installWorkspaceExtension(id)
Agent -> ExtensionHost: installExtension(id)
ExtensionHost -> ExtensionHost: download
ExtensionHost -> ExtensionHost: install
ExtensionHost -> Agent: return true
Agent -> VisualStudioCode: return true
@enduml

0 comments on commit 1faa0fc

Please sign in to comment.