forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
72 lines (70 loc) · 2.28 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
# FOSSology gitpod.io configuration
# Copyright (C) 2021 Siemens AG
# Author: Gaurav Mishra <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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"