-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from cap-js/devcontainer
add devcontainer
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/javascript-node/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Node.js version: 18, 16, 14 | ||
ARG VARIANT="18-buster" | ||
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
|
||
# Install extra tools for CAP development & deployment. | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get -y install --no-install-recommends curl git jq | ||
|
||
# Install SAP CAP SDK globally | ||
RUN su node -c "npm install -g @sap/cds-dk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "CAP Incident Management Reference App Dev Container", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { "VARIANT": "18" } | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mechatroner.rainbow-csv", | ||
"dbaeumer.vscode-eslint", | ||
"sapse.vscode-cds", | ||
"sapse.vsc-extension-odata-csdl-modeler", | ||
"sapse.vscode-wing-cds-editor-vsc", | ||
"saposs.xml-toolkit", | ||
"humao.rest-client" | ||
] | ||
} | ||
}, | ||
"forwardPorts": [ 4004 ], | ||
"remoteUser": "node" | ||
} |