|
1 |
| -## Learn more about this file at 'https://www.gitpod.io/docs/references/gitpod-yml' |
2 |
| -## |
3 |
| -## This '.gitpod.yml' file when placed at the root of a project instructs |
4 |
| -## Gitpod how to prepare & build the project, start development environments |
5 |
| -## and configure continuous prebuilds. Prebuilds when enabled builds a project |
6 |
| -## like a CI server so you can start coding right away - no more waiting for |
7 |
| -## dependencies to download and builds to finish when reviewing pull-requests |
8 |
| -## or hacking on something new. |
9 |
| -## |
10 |
| -## With Gitpod you can develop software from any device (even iPads) via |
11 |
| -## desktop or browser based versions of VS Code or any JetBrains IDE and |
12 |
| -## customise it to your individual needs - from themes to extensions, you |
13 |
| -## have full control. |
14 |
| -## |
15 |
| -## The easiest way to try out Gitpod is install the browser extenion: |
16 |
| -## 'https://www.gitpod.io/docs/browser-extension' or by prefixing |
17 |
| -## 'https://gitpod.io#' to the source control URL of any project. |
18 |
| -## |
19 |
| -## For example: 'https://gitpod.io#https://github.com/gitpod-io/gitpod' |
20 |
| - |
21 |
| -## The 'image' section defines which Docker image Gitpod should use. |
22 |
| -## By default, Gitpod uses a standard Docker Image called 'workspace-full' |
23 |
| -## which can be found at 'https://github.com/gitpod-io/workspace-images' |
24 |
| -## |
25 |
| -## Workspaces started based on this default image come pre-installed with |
26 |
| -## Docker, Go, Java, Node.js, C/C++, Python, Ruby, Rust, PHP as well as |
27 |
| -## tools such as Homebrew, Tailscale, Nginx and several more. |
28 |
| -## |
29 |
| -## If this image does not include the tools needed for your project then |
30 |
| -## a public Docker image or your own Docker file can be configured. |
31 |
| -## |
32 |
| -## Learn more about images at 'https://www.gitpod.io/docs/config-docker' |
33 |
| - |
34 |
| -#image: node:buster # use 'https://hub.docker.com/_/node' |
35 |
| -# |
36 |
| -#image: # leave image undefined if using a Dockerfile |
37 |
| -# file: .gitpod.Dockerfile # relative path to the Dockerfile from the |
38 |
| -# # root of the project |
39 |
| - |
40 |
| -image: |
41 |
| - file: .gitpod/.gitpod.Dockerfile |
42 |
| - |
43 |
| -## The 'tasks' section defines how Gitpod prepares and builds this project |
44 |
| -## or how Gitpod can start development servers. With Gitpod, there are three |
45 |
| -## types of tasks: |
46 |
| -## |
47 |
| -## - before: Use this for tasks that need to run before init and before command. |
48 |
| -## - init: Use this to configure prebuilds of heavy-lifting tasks such as |
49 |
| -## downloading dependencies or compiling source code. |
50 |
| -## - command: Use this to start your database or application when the workspace starts. |
51 |
| -## |
52 |
| -## Learn more about these tasks at 'https://www.gitpod.io/docs/config-start-tasks' |
53 |
| - |
54 |
| -#tasks: |
55 |
| -# - before: | |
56 |
| -# # commands to execute... |
57 |
| -# |
58 |
| -# - init: | |
59 |
| -# # sudo apt-get install python3 # can be used to install operating system |
60 |
| -# # dependencies but these are not kept after the |
61 |
| -# # prebuild completes thus Gitpod recommends moving |
62 |
| -# # operating system dependency installation steps |
63 |
| -# # to a custom Dockerfile to make prebuilds faster |
64 |
| -# # and to keep your codebase DRY. |
65 |
| -# # 'https://www.gitpod.io/docs/config-docker' |
| 1 | +# Learn more about this file at 'https://www.gitpod.io/docs/references/gitpod-yml' |
66 | 2 | #
|
67 |
| -# # pip install -r requirements.txt # install codebase dependencies |
68 |
| -# # cmake # precompile codebase |
| 3 | +# This '.gitpod.yml' file when placed at the root of a project instructs |
| 4 | +# Gitpod how to prepare & build the project, start development environments |
| 5 | +# and configure continuous prebuilds. Prebuilds when enabled builds a project |
| 6 | +# like a CI server so you can start coding right away - no more waiting for |
| 7 | +# dependencies to download and builds to finish when reviewing pull-requests |
| 8 | +# or hacking on something new. |
69 | 9 | #
|
70 |
| -# - name: Web Server |
71 |
| -# openMode: split-left |
72 |
| -# env: |
73 |
| -# WEBSERVER_PORT: 8080 |
74 |
| -# command: | |
75 |
| -# python3 -m http.server $WEBSERVER_PORT |
76 |
| -# |
77 |
| -# - name: Web Browser |
78 |
| -# openMode: split-right |
79 |
| -# env: |
80 |
| -# WEBSERVER_PORT: 8080 |
81 |
| -# command: | |
82 |
| -# gp await-port $WEBSERVER_PORT |
83 |
| -# lynx `gp url` |
| 10 | +# With Gitpod you can develop software from any device (even iPads) via |
| 11 | +# desktop or browser based versions of VS Code or any JetBrains IDE and |
| 12 | +# customise it to your individual needs - from themes to extensions, you |
| 13 | +# have full control. |
84 | 14 |
|
85 | 15 | tasks:
|
| 16 | + - name: Initialize & Configure AWS |
| 17 | + init: bash $GITPOD_REPO_ROOT/configure_aws_with_gitpod.sh |
86 | 18 | - name: AWS SSO Login
|
87 | 19 | openMode: split-left
|
88 |
| - command: | |
89 |
| - aws sso login |
90 |
| - - name: Bash |
| 20 | + command: aws sso login |
| 21 | + - name: Bash Terminal |
91 | 22 | openMode: split-right
|
92 |
| - command: | |
93 |
| - bash |
94 |
| -
|
95 |
| -## The 'ports' section defines various ports your may listen on are |
96 |
| -## configured in Gitpod on an authenticated URL. By default, all ports |
97 |
| -## are in private visibility state. |
98 |
| -## |
99 |
| -## Learn more about ports at 'https://www.gitpod.io/docs/config-ports' |
100 |
| - |
101 |
| -#ports: |
102 |
| -# - port: 8080 # alternatively configure entire ranges via '8080-8090' |
103 |
| -# visibility: private # either 'public' or 'private' (default) |
104 |
| -# onOpen: open-browser # either 'open-browser', 'open-preview' or 'ignore' |
| 23 | + command: bash |
105 | 24 |
|
106 |
| -## The 'vscode' section defines a list of Visual Studio Code extensions from |
107 |
| -## the OpenVSX.org registry to be installed upon workspace startup. OpenVSX |
108 |
| -## is an open alternative to the proprietary Visual Studio Code Marketplace |
109 |
| -## and extensions can be added by sending a pull-request with the extension |
110 |
| -## identifier to https://github.com/open-vsx/publish-extensions |
111 |
| -## |
112 |
| -## The identifier of an extension is always ${publisher}.${name}. |
113 |
| -## |
114 |
| -## For example: 'vscodevim.vim' |
115 |
| -## |
116 |
| -## Learn more at 'https://www.gitpod.io/docs/ides-and-editors/vscode' |
117 |
| - |
118 |
| -#vscode: |
119 |
| -# extensions: |
120 |
| -# - vscodevim.vim |
121 |
| -# - esbenp.prettier-vscode@9.5.0 |
122 |
| -# - https://example.com/abc/releases/extension-0.26.0.vsix |
123 |
| - |
124 |
| -## The 'github' section defines configuration of continuous prebuilds |
125 |
| -## for GitHub repositories when the GitHub application |
126 |
| -## 'https://github.com/apps/gitpod-io' is installed in GitHub and granted |
127 |
| -## permissions to access the repository. |
128 |
| -## |
129 |
| -## Learn more at 'https://www.gitpod.io/docs/prebuilds' |
| 25 | +# The 'github' section defines configuration of continuous prebuilds |
| 26 | +# for GitHub repositories when the GitHub application |
| 27 | +# 'https://github.com/apps/gitpod-io' is installed in GitHub and granted |
| 28 | +# permissions to access the repository. |
| 29 | +# |
| 30 | +# Learn more at 'https://www.gitpod.io/docs/prebuilds' |
130 | 31 |
|
131 | 32 | github:
|
132 | 33 | prebuilds:
|
|
0 commit comments