Skip to content

chore(maintenance): improve Gitpod config #1782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 2, 2023
13 changes: 13 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See gitpod image here: https://hub.docker.com/layers/gitpod/workspace-base/latest
FROM gitpod/workspace-base@sha256:d69d08a0e1fa62b6d8db9e7ffe63dc21a58f0242946d945d776a819aec652130

USER gitpod

# Install fnm to manage Node.js versions
RUN curl -fsSL https://fnm.vercel.app/install | bash -s

# Install AWS SAM CLI
RUN curl -LO https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip \
&& unzip -q aws-sam-cli-linux-x86_64.zip -d sam-installation \
&& sudo ./sam-installation/install \
&& rm -rf sam-installation aws-sam-cli-linux-*
12 changes: 4 additions & 8 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
image:
file: .gitpod.Dockerfile
tasks:
- init: |
# Install Nodejs version specified in .nvmrc
nvm install
nvm use
# Install AWS SAM CLI
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install
rm -rf sam-installation aws-sam-cli-linux-*
fnm install
fnm use
# Install repo dependencies
npm run setup-local
vscode:
extensions:
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- firsttris.vscode-jest-runner
- amazonwebservices.aws-toolkit-vscode