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 optional 'additionalRepositories' key is an array of repositories
22
+ # # which contains two properties which define the source control `url` to
23
+ # # clone and the `checkoutLocation` of where the repository is cloned
24
+ # # under `/workspaces`
25
+ # #
26
+ # # Learn more at 'https://www.gitpod.io/docs/multi-repo-workspaces'
27
+
28
+ # workspaceLocation: /workspace
29
+ # workspaceLocation: "."
30
+ jetbrains :
31
+ phpstorm :
32
+ prebuilds :
33
+ version : stable
34
+ # additionalRepositories:
35
+ # - url: https://github.com/NVGallery/Frontoffice.git
36
+ # # checkoutLocation is optional and relative to /workspaces.
37
+ # # by default the location defaults to the repository name.
38
+ # checkoutLocation: "front"
39
+ # - url: https://github.com/NVGallery/Backoffice.git
40
+ # # checkoutLocation is optional and relative to /workspaces.
41
+ # # by default the location defaults to the repository name.
42
+ # checkoutLocation: "back"
43
+
44
+ # # The 'tasks' section defines how Gitpod prepares and builds this project
45
+ # # or how Gitpod can start development servers. With Gitpod, there are three
46
+ # # types of tasks:
47
+ # #
48
+ # # - before: Use this for tasks that need to run before init and before command.
49
+ # # - init: Use this to configure prebuilds of heavy-lifting tasks such as
50
+ # # downloading dependencies or compiling source code.
51
+ # # - command: Use this to start your database or application when the workspace starts.
52
+ # #
53
+ # # Learn more about these tasks at 'https://www.gitpod.io/docs/config-start-tasks'
54
+
55
+ tasks :
56
+ - name : build api
57
+ # change working directory as per configured in `checkoutLocation`
58
+ # which is configured above as `/workspaces/backend`
59
+ init : |
60
+ git clone https://github.com/NVGallery/Frontoffice.git front
61
+ git clone https://github.com/NVGallery/Core-API.git api
62
+ git clone https://github.com/NVGallery/Backoffice.git back
63
+
64
+ docker network create nv-monitoring-network
65
+
66
+ cd /api
67
+ docker-compose -f docker-compose.yml -f docker-compose.local.yml build --build-arg APP_ENV=dev
68
+
69
+ cd /back/app
70
+ composer install --prefer-dist --no-scripts --ignore-platform-reqs
71
+ cd ..
72
+ yarn install
73
+ yarn build
74
+ docker-compose -f docker-compose.yml -f docker-compose.local.yml build --build-arg APP_ENV=dev
75
+
76
+ cd ../front/app
77
+ composer install --prefer-dist --no-scripts --ignore-platform-reqs
78
+ cd ..
79
+ yarn install
80
+ yarn build
81
+ docker-compose -f docker-compose.yml -f docker-compose.local.yml build --build-arg APP_ENV=dev
82
+
83
+
84
+ command : |
85
+ cd /api
86
+ make docker-up
87
+
88
+ cd /back
89
+ make docker-up
90
+ make trad-download
91
+
92
+ cd /front
93
+ make docker-up
94
+
95
+ # workspaceLocation: /workspace
0 commit comments