forked from tosdr/edit.tosdr.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
98 lines (84 loc) · 2.76 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
ports:
- name: Frontend
description: Phoenix Frontend
port: 3000
onOpen: notify
- name: Mailhog SMTP
description: Dev SMTP server
port: 1025
onOpen: ignore
- name: Mailhog Web
description: Dev Mailhog Web server
port: 8025
onOpen: notify
- name: pgAdmin
description: Database Manager
port: 5050
onOpen: notify
- name: Crawler
description: ToS;DR Crawler
port: 5000
onOpen: notify
tasks:
- name: Postgres
init: docker pull postgres
command: 'docker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=postgres --net="host" --rm postgres'
- name: Mailhog
init: docker pull mailhog/mailhog
command: 'docker run -p 1025:1025 -p 8025:8025 --name mailhog --net="host" --rm mailhog/mailhog'
- name: Crawler
init: docker pull registry.jrbit.de/tosdr/crawler.tosdr.org:latest && docker pull selenium/standalone-chrome:4.6.0-20221104
command: cd .gitpod && docker-compose up -f crawler.docker-compose.yml
- name: Phoenix
env:
RAILS_ENV: development
CRAWLER_API_KEY: not_needed
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
LANG: en_US.UTF-8
RACK_ENV: development
VIS_ENV: development
RAILS_LOG_TO_STDOUT: enabled
RAILS_SERVE_STATIC_FILES: enabled
S3_ACCESS_KEY: jback
S3_BUCKET: logos
S3_CDN: https://s3.tosdr.org/logos
S3_ENDPOINT: https://s3.tosdr.org
S3_SECRET_KEY: 12345
S3_HOST: s3.tosdr.org
SENDGRID_PASSWORD: 12345
SENDGRID_USERNAME: apikey
RAILS_MAX_THREADS: 500
PORT: 3000
SECRET_KEY_BASE: 12345
SENTRY_DSN: https://c0d549cf9ae645cdb525e308c04d44b4@sentry.internal.jrbit.de/23
command: rvm install 2.7.2 &&
rvm use 2.7.2 --default &&
gem install bundler &&
gem install rails &&
bundle install &&
gp ports await 5432 &&
rails db:migrate &&
rails db:seed &&
rails server
- name: pgAdmin
init: docker pull dpage/pgadmin4
command: docker run --name pgadmin --rm --net="host" -p 5050:80 -e PGADMIN_DEFAULT_EMAIL=pgadmin@tosdr.org -e PGADMIN_DEFAULT_PASSWORD=password -e PGADMIN_CONFIG_SERVER_MODE=False dpage/pgadmin4
vscode:
extensions:
- ms-azuretools.vscode-docker
- eamodio.gitlens
- TeamHub.teamhub
- felixfbecker.php-debug
- neilbrayfield.php-docblocker
- bmewburn.vscode-intelephense-client
- mtxr.sqltools
- mtxr.sqltools-driver-pg
- mblode.twig-language-2
- GitLab.gitlab-workflow
- DEVSENSE.composer-php-vscode
- caponetto.vscode-diff-viewer
- 42Crunch.vscode-openapi
- mjmlio.vscode-mjml