Skip to content

Commit 1ea4aa4

Browse files
committed
chore: add sam to gitpod
1 parent 5b0d678 commit 1ea4aa4

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1111
# ARG EXTRA_NODE_VERSION=10
1212
# RUN su node -c "umask 0002 && ./usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
1313

14+
RUN wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip \
15+
&& unzip aws-sam-cli-linux-x86_64.zip -d sam-installation \
16+
&& sudo ./sam-installation/install \
17+
&& rm -rf sam-installation aws-sam-cli-linux-*
18+
1419
# Global node modules
1520
RUN su node -c "npm install -g npm-check-updates npm@next-8"

.devcontainer/devcontainer.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"build": {
66
"dockerfile": "Dockerfile",
77
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local arm64/Apple Silicon.
10-
"args": { "VARIANT": "14-bullseye" }
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local arm64/Apple Silicon.
10+
"args": {
11+
"VARIANT": "14-bullseye"
12+
}
1113
},
12-
1314
// Set *default* container specific settings.json values on container create.
1415
"settings": {
1516
"git.enableCommitSigning": true
1617
},
17-
1818
// Add the IDs of extensions you want installed when the container is created.
1919
"extensions": [
2020
"dbaeumer.vscode-eslint",
@@ -25,10 +25,8 @@
2525
"ms-vscode.vscode-typescript-tslint-plugin",
2626
"ms-azuretools.vscode-docker"
2727
],
28-
2928
// Use 'postCreateCommand' to run commands after the container is created.
30-
"postCreateCommand": "npm ci; npm run lerna-ci; npm run init-environment",
31-
29+
"postCreateCommand": "npm ci; cd examples/cdk; npm ci; cd ../sam; npm ci; cd ../../; npm run init-environment",
3230
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
33-
"remoteUser": "node"
31+
"remoteUser": "node"
3432
}

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tasks:
2-
- init: nvm install; nvm use; npm i -g npm@next-8; npm ci; npm run lerna-ci; npm run init-environment
2+
- init: nvm install; nvm use; npm i -g npm@next-8; npm ci; cd examples/cdk; npm ci; cd ../sam; npm ci; cd ../../; npm run init-environment
33
vscode:
44
extensions:
55
- dbaeumer.vscode-eslint

0 commit comments

Comments
 (0)