Skip to content

Commit

Permalink
Allow editing in codespaces and gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
alblue committed Jun 20, 2020
1 parent 6226a7d commit de8781e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
File renamed without changes.
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "JBang",
"dockerFile": "Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"java.home": "/home/gitpod/.sdkman/candidates/java/current"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"vscjava.vscode-java-pack",
"ms-azuretools.vscode-docker"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [5900, 6080],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "java -version",

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "gitpod"
}
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
image:
file: .gitpod.Dockerfile
file: .devcontainer/Dockerfile
context: .devcontainer

File renamed without changes.

0 comments on commit de8781e

Please sign in to comment.