Skip to content

Commit 9b3e4aa

Browse files
Add gitpod.yml examples for ddev and lando
1 parent c3396fa commit 9b3e4aa

File tree

3 files changed

+180
-0
lines changed

3 files changed

+180
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode/
2+
.ddev
3+
.lando.*
4+
composer.*
5+
/vendor/
6+
/web/
7+
.editorconfig
8+
.gitattributes

examples/ddev/.gitpod.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Docker image
2+
image: tplcom/gitpod-drupal-workspace
3+
4+
# ddev and composer are running as part of the prebuild
5+
# when starting a workspace all docker images are ready
6+
tasks:
7+
- name: ddev
8+
before:
9+
bash gitpod-setup-ddev.sh
10+
init:
11+
export DDEV_NONINTERACTIVE=true
12+
ddev composer install
13+
command:
14+
gp await-port 8080 && gp preview $(gp url 8080)
15+
16+
# VScode xdebug extension
17+
vscode:
18+
extensions:
19+
- felixfbecker.php-debug
20+
- bmewburn.vscode-intelephense-client
21+
- ziyasal.vscode-open-in-github
22+
- dbaeumer.vscode-eslint
23+
- eamodio.gitlens
24+
- EditorConfig.EditorConfig
25+
- esbenp.prettier-vscode
26+
- stylelint.vscode-stylelint
27+
- tombonnike.vscode-status-bar-format-toggle
28+
- mhutchie.git-graph
29+
30+
ports:
31+
# Used by projector
32+
- port: 6942
33+
onOpen: ignore
34+
visibility: private
35+
- port: 8080
36+
onOpen: ignore
37+
visibility: public
38+
# Currently un-notified and unsupported mailhog http port
39+
- port: 8025
40+
onOpen: ignore
41+
visibility: private
42+
# Currently un-notified and unsupported mailhog https port
43+
- port: 8026
44+
onOpen: ignore
45+
visibility: private
46+
# Currently un-notified and unsupported phpmyadmin http port
47+
- port: 8036
48+
onOpen: ignore
49+
visibility: private
50+
# Currently un-notified and unsupported phpmyadmin https port
51+
- port: 8037
52+
onOpen: ignore
53+
visibility: private
54+
# router http port that we're ignoring.
55+
- port: 8888
56+
onOpen: ignore
57+
visibility: private
58+
# router https port that we're ignoring.
59+
- port: 8889
60+
onOpen: ignore
61+
visibility: private
62+
# xdebug port
63+
- port: 9000
64+
onOpen: ignore
65+
visibility: private
66+
# projector port
67+
- port: 9999
68+
visibility: private
69+
70+
github:
71+
prebuilds:
72+
# enable for the master/default branch (defaults to true)
73+
master: true
74+
# enable for all branches in this repo (defaults to false)
75+
branches: true
76+
# enable for pull requests coming from this repo (defaults to true)
77+
pullRequests: true
78+
# enable for pull requests coming from forks (defaults to false)
79+
pullRequestsFromForks: true
80+
# add a check to pull requests (defaults to true)
81+
addCheck: true
82+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
83+
addComment: true
84+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
85+
addBadge: true
86+
# add a label once the prebuild is ready to pull requests (defaults to false)
87+
addLabel: true

examples/lando/.gitpod.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Docker image
2+
image: tplcom/gitpod-drupal-workspace
3+
4+
# ddev and composer are running as part of the prebuild
5+
# when starting a workspace all docker images are ready
6+
tasks:
7+
- name: lando
8+
init: |
9+
lando start
10+
lando composer install
11+
command:
12+
gp preview $(gp url $(lando info --format=json | jq -r ".[0].urls[1]" | sed -e 's#http://localhost:\(\)#\1#'))
13+
14+
# VScode xdebug extension
15+
vscode:
16+
extensions:
17+
- felixfbecker.php-debug
18+
- bmewburn.vscode-intelephense-client
19+
- ziyasal.vscode-open-in-github
20+
- dbaeumer.vscode-eslint
21+
- eamodio.gitlens
22+
- EditorConfig.EditorConfig
23+
- esbenp.prettier-vscode
24+
- stylelint.vscode-stylelint
25+
- tombonnike.vscode-status-bar-format-toggle
26+
- mhutchie.git-graph
27+
28+
ports:
29+
# Used by projector
30+
- port: 6942
31+
onOpen: ignore
32+
visibility: private
33+
- port: 8080
34+
onOpen: ignore
35+
visibility: public
36+
# Currently un-notified and unsupported mailhog http port
37+
- port: 8025
38+
onOpen: ignore
39+
visibility: private
40+
# Currently un-notified and unsupported mailhog https port
41+
- port: 8026
42+
onOpen: ignore
43+
visibility: private
44+
# Currently un-notified and unsupported phpmyadmin http port
45+
- port: 8036
46+
onOpen: ignore
47+
visibility: private
48+
# Currently un-notified and unsupported phpmyadmin https port
49+
- port: 8037
50+
onOpen: ignore
51+
visibility: private
52+
# router http port that we're ignoring.
53+
- port: 8888
54+
onOpen: ignore
55+
visibility: private
56+
# router https port that we're ignoring.
57+
- port: 8889
58+
onOpen: ignore
59+
visibility: private
60+
# xdebug port
61+
- port: 9000
62+
onOpen: ignore
63+
visibility: private
64+
# projector port
65+
- port: 9999
66+
visibility: private
67+
68+
github:
69+
prebuilds:
70+
# enable for the master/default branch (defaults to true)
71+
master: true
72+
# enable for all branches in this repo (defaults to false)
73+
branches: true
74+
# enable for pull requests coming from this repo (defaults to true)
75+
pullRequests: true
76+
# enable for pull requests coming from forks (defaults to false)
77+
pullRequestsFromForks: true
78+
# add a check to pull requests (defaults to true)
79+
addCheck: true
80+
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
81+
addComment: true
82+
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
83+
addBadge: true
84+
# add a label once the prebuild is ready to pull requests (defaults to false)
85+
addLabel: true

0 commit comments

Comments
 (0)