generated from ExamProCo/aws-bootcamp-cruddur-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
91 lines (89 loc) · 2.82 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
tasks:
- name: aws-sam
init: |
cd /workspace
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
unzip -qo aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install
cd $THEIA_WORKSPACE_ROOT
- name: cfn
before:
bundle update --bundler
pip install cfn-lint
cargo install cfn-guard
gem install cfn-toml
- name: aws-cli
env:
AWS_CLI_AUTO_PROMPT: on-partial
before: |
cd /workspace
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -qo awscliv2.zip
sudo ./aws/install
cd $THEIA_WORKSPACE_ROOT
command: |
export GITPOD_IP=$(curl ifconfig.me)
source "$THEIA_WORKSPACE_ROOT/bin/rds/update-sg-rule"
source "$THEIA_WORKSPACE_ROOT/bin/ecr/login"
source "$THEIA_WORKSPACE_ROOT/bin/ddb/update-sg-rule"
- name: flask
command: |
ruby "$THEIA_WORKSPACE_ROOT/bin/backend/generate-env"
cd backend-flask
pip install -r requirements.txt
# - name: fargate
# before: |
# cd /workspace
# curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
# sudo dpkg -i session-manager-plugin.deb
# cd $THEIA_WORKSPACE_ROOT
# sudo ./aws/install
# cd backend-flask
- name: react-js
command: |
ruby "$THEIA_WORKSPACE_ROOT/bin/frontend/generate-env"
cd frontend-react-js
npm i
- name: postgres
before: |
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update
sudo apt install -y postgresql-client-12 libpq-dev
source "$THEIA_WORKSPACE_ROOT/bin/postGresSetup.sh"
- name: sharp
command: |
cd $THEIA_WORKSPACE_ROOT/aws/lambdas/process-images
npm i
rm -rf node_modules/sharp
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install --arch=x64 --platform=linux --libc=glibc sharp
- name: net-tools
before: |
sudo apt update
sudo apt install net-tools
- name: momento
before: |
brew tap momentohq/tap
brew install momento-cli
- name: cdk
before: |
npm install aws-cdk -g
npm install aws-cdk-lib -g
cd thumbing-serverless-cdk
npm i
cp .env.example .env
vscode:
extensions:
- 42Crunch.vscode-openapi
- cweijan.vscode-postgresql-client2
ports:
- name: frontend
port: 3000
# onOpen: open-browser
visibility: public
- name: backend
port: 4567
visibility: public
- name: xray-daemon
port: 2000
visibility: public