-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitpod.yml
116 lines (103 loc) · 3.26 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
## List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: 1.1. backend
## working directory as `/ecommerce/backend`
before: |
npm install @medusajs/medusa-cli@latest -g
cd backend
init: |
npm install
command: |
npm run dev
# gp sync-done finished
openMode: split-left
- name: 1.2. backend (test)
## working directory as `/ecommerce/backend`
before: |
cd backend
init: |
# echo "curl -X GET localhost:9000/store/products | python -m json.tool"
echo "npm run seed"
command: |
# gp sync-await finished && \
echo "curl -X GET localhost:9000/store/products | python -m json.tool"
openMode: split-right
# - name: 2.1. backend >> docker compose
# ## working directory as `/ecommerce/backend`
# before: |
# npm install @medusajs/medusa-cli@latest -g
# cd backend
# # init: |
# # docker compose pull
# command: |
# docker compose up --build
# # gp sync-done finished
# openMode: split-left
# - name: 2.2. backend >> docker compose (test)
# ## working directory as `/ecommerce/backend`
# before: |
# cd backend
# init: |
# # curl -X GET localhost:9000/store/products | python -m json.tool
# echo "docker image ls"
# echo "docker container ls"
# echo "docker exec ecommerce-backend medusa seed -f ./data/seed.json"
# command: |
# # gp sync-await finished && \
# echo "curl -X GET localhost:9000/store/products | python -m json.tool"
# openMode: split-right
# - name: Start Redis Stack
# ## working directory as `/README/lab1.express-redis`
# before: |
# cd README/lab1.express-redis
# init: |
# docker compose pull
# command: |
# alias redis-cli="docker exec -it redis-stack redis-cli"
# echo "Use redis-cli to interact with Redis here."
# docker compose up -d
# gp sync-done finished
# openMode: split-left
# - name: Start Express Application
# ## working directory as `/README/lab1.express-redis`
# before: |
# cd README/lab1.express-redis/backend
# init: |
# npm install
# command: |
# gp sync-await finished && \
# npm run dev
# openMode: split-right
# - name: Start ELK Elasticsearch Logstash Kibana
# ## working directory as `/README/lab2.elasticsearch-logstash-kibana`
# before: |
# cd README/lab2.elasticsearch-logstash-kibana
# init: |
# docker compose pull
# command: |
# docker compose up -d
# gp sync-done finished
# openMode: split-left
# - name: Test ELK
# ## working directory as `/README/lab2.elasticsearch-logstash-kibana`
# before: |
# cd README/lab2.elasticsearch-logstash-kibana
# init: |
# echo "[Test ELK] init ..."
# command: |
# gp sync-await finished && \
# echo "[Test ELK] command ..."
# echo "PORTS >> 5601 >> Open Preview"
# openMode: split-right
## List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 9000
onOpen: ignore
# - port: 8000
# onOpen: open-browser
# - port: 7000
# onOpen: open-preview
# - port: 9999
# onOpen: open-preview
# - port: 6379
# onOpen: ignore