forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitpod.yml
66 lines (63 loc) · 1.85 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
# FOSSology gitpod.io configuration
# SPDX-FileCopyrightText: © 2021 Siemens AG
# Author: Gaurav Mishra <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only
image:
file: .gitpod.Dockerfile
ports:
- port: 5432
onOpen: ignore
visibility: private
- port: 24693
onOpen: ignore
visibility: private
- port: 8001
visibility: public
onOpen: notify
github:
prebuilds:
master: true
branches: false
pullRequests: true
pullRequestsFromForks: true
addBadge: true
workspaceLocation: fossology
checkoutLocation: fossology
tasks:
- init: |
mkdir -p "/workspace/apache/"
./utils/gitpod-install.sh
name: install
env:
FOSSOLOGY_DB_USER: gitpod
FOSSOLOGY_DB_PASSWORD: gitpod
SYSCONFDIR: /workspace/fossy/etc/fossology/
FO_SYSCONFDIR: /workspace/fossy/etc/fossology/
command: |
mkdir -p public "/workspace/apache" "/workspace/fossy/srv" "/workspace/fossy/var"
if [[ -z $(grep "/workspace/apache" "/etc/apache2/apache2.conf") ]];then printf '\nIncludeOptional /workspace/apache/*.conf\n' >> /etc/apache2/apache2.conf; fi
sudo /usr/sbin/a2enmod rewrite
sudo chown gitpod:gitpod -R /var/log/apache2/
apachectl restart
gp sync-done ui
- command: |
gp sync-await ui
sudo mkdir -p /var/log/fossology/
sudo chown gitpod:gitpod -R /var/log/fossology/
fossrun
name: fossology
env:
FOSSOLOGY_DB_USER: gitpod
FOSSOLOGY_DB_PASSWORD: gitpod
SYSCONFDIR: /workspace/fossy/etc/fossology/
FO_SYSCONFDIR: /workspace/fossy/etc/fossology/
vscode:
extensions:
- "felixfbecker.php-debug"
- "ms-azuretools.vscode-docker"
- "fterrag.vscode-php-cs-fixer"
- "twxs.cmake"
- "ms-vscode.cmake-tools"
- "bmewburn.vscode-intelephense-client"
- "mblode.twig-language-2"
- "42Crunch.vscode-openapi"