2022-07-17 02:06:25 +00:00
|
|
|
|
image:
|
|
|
|
|
file: .gitpod/Dockerfile
|
|
|
|
|
|
2022-06-23 17:21:06 +00:00
|
|
|
|
tasks:
|
2022-07-17 02:06:25 +00:00
|
|
|
|
- name: Backend
|
2022-06-23 17:21:06 +00:00
|
|
|
|
env:
|
2022-07-17 02:06:25 +00:00
|
|
|
|
ENV_FILE: /workspace/funkwhale/.gitpod/.env
|
|
|
|
|
COMPOSE_FILE: /workspace/funkwhale/.gitpod/docker-compose.yml
|
|
|
|
|
before: |
|
|
|
|
|
cp .gitpod/gitpod.env .gitpod/.env
|
|
|
|
|
cd api
|
2022-06-23 17:21:06 +00:00
|
|
|
|
init: |
|
2022-07-17 02:06:25 +00:00
|
|
|
|
mkdir -p ../data/media/attachments ../data/music ../data/staticfiles
|
|
|
|
|
docker-compose up -d
|
2022-07-03 08:45:36 +00:00
|
|
|
|
|
2022-07-17 02:06:25 +00:00
|
|
|
|
poetry env use python
|
2023-11-24 13:04:44 +00:00
|
|
|
|
make install
|
2022-07-03 08:45:36 +00:00
|
|
|
|
|
2022-07-17 02:06:25 +00:00
|
|
|
|
gp ports await 5432
|
2022-07-03 08:45:36 +00:00
|
|
|
|
|
2023-01-13 15:33:23 +00:00
|
|
|
|
poetry run funkwhale-manage migrate
|
2023-10-12 15:55:59 +00:00
|
|
|
|
poetry run funkwhale-manage fw users create --superuser --username gitpod --password funkwhale --email test@example.org
|
2023-01-13 15:33:23 +00:00
|
|
|
|
poetry run funkwhale-manage gitpod init
|
2022-07-03 08:45:36 +00:00
|
|
|
|
command: |
|
2022-07-17 02:06:25 +00:00
|
|
|
|
echo "MEDIA_URL=`gp url 8000`/media/" >> ../.gitpod/.env
|
|
|
|
|
echo "STATIC_URL=`gp url 8000`/staticfiles/" >> ../.gitpod/.env
|
|
|
|
|
echo "FUNKWHALE_HOSTNAME=`gp url 8000 | sed 's#https://##'`" >> ../.gitpod/.env
|
|
|
|
|
echo "FUNKWHALE_PROTOCOL=https" >> ../.gitpod/.env
|
2022-07-03 08:45:36 +00:00
|
|
|
|
|
2022-07-17 02:06:25 +00:00
|
|
|
|
docker-compose up -d
|
|
|
|
|
gp ports await 5432
|
2023-01-13 15:33:23 +00:00
|
|
|
|
poetry run funkwhale-manage collectstatic --no-input
|
|
|
|
|
poetry run funkwhale-manage gitpod dev
|
2022-07-17 02:06:25 +00:00
|
|
|
|
|
2022-11-28 14:01:36 +00:00
|
|
|
|
- name: Celery Worker
|
|
|
|
|
env:
|
|
|
|
|
ENV_FILE: /workspace/funkwhale/.gitpod/.env
|
|
|
|
|
before: cd api
|
|
|
|
|
command: |
|
|
|
|
|
gp ports await 5000
|
|
|
|
|
poetry run celery -A funkwhale_api.taskapp worker -l debug -B --concurrency=0
|
|
|
|
|
|
2022-07-17 02:06:25 +00:00
|
|
|
|
- name: Frontend
|
2022-07-25 18:41:03 +00:00
|
|
|
|
env:
|
|
|
|
|
VUE_EDITOR: code
|
2022-07-17 02:06:25 +00:00
|
|
|
|
before: cd front
|
|
|
|
|
init: |
|
2022-11-27 23:57:09 +00:00
|
|
|
|
yarn install
|
2022-12-12 23:35:13 +00:00
|
|
|
|
command: yarn dev --host 0.0.0.0 --base ./
|
2022-06-23 17:21:06 +00:00
|
|
|
|
|
2023-11-01 20:22:48 +00:00
|
|
|
|
- name: Documentation
|
|
|
|
|
before: cd docs
|
|
|
|
|
init: make install
|
|
|
|
|
command: make dev
|
|
|
|
|
|
2022-06-23 17:21:06 +00:00
|
|
|
|
- name: Welcome to Funkwhale development!
|
2022-07-03 08:45:36 +00:00
|
|
|
|
env:
|
2022-07-17 02:06:25 +00:00
|
|
|
|
COMPOSE_FILE: /workspace/funkwhale/.gitpod/docker-compose.yml
|
|
|
|
|
ENV_FILE: /workspace/funkwhale/.gitpod/.env
|
2022-07-25 18:41:03 +00:00
|
|
|
|
VUE_EDITOR: code
|
2022-09-25 13:57:09 +00:00
|
|
|
|
DJANGO_SETTINGS_MODULE: config.settings.local
|
2023-11-02 08:38:37 +00:00
|
|
|
|
init: |
|
|
|
|
|
pre-commit install
|
|
|
|
|
pre-commit run --all
|
2022-06-23 17:21:06 +00:00
|
|
|
|
command: |
|
|
|
|
|
echo ""
|
2022-07-03 08:45:36 +00:00
|
|
|
|
echo -e " ⠀⠀⠸⣿⣷⣦⣄⣠⣶⣾⣿⠇⠀⠀ You can now start developing Funkwhale with gitpod!"
|
|
|
|
|
echo -e " ⠀⠀⠀⠈⠉⠻⣿⣿⠟⠉⠁⠀⠀⠀"
|
|
|
|
|
echo -e " \u1b[34m⣀⠀⢀⡀⢀⣀\u1b[0m⠹⠇\u1b[34m⣀⡀⢀⡀⠀⣀ \u1b[0mTo sign in to the superuser account,"
|
|
|
|
|
echo -e " \u1b[34m⢻⣇⠘⣧⡈⠻⠶⠶⠟⢁⣾⠃⣸⡟ \u1b[0mplease use these credentials:"
|
|
|
|
|
echo -e " \u1b[34m⠀⠻⣦⡈⠻⠶⣶⣶⠶⠟⢁⣴⠟⠀"
|
2023-10-12 15:55:59 +00:00
|
|
|
|
echo -e " \u1b[34m⠀⠀⠈⠻⠷⣦⣤⣤⣴⠾⠟⠁⠀⠀ gitpod\u1b[0m:\u1b[34mfunkwhale"
|
2022-07-03 08:45:36 +00:00
|
|
|
|
echo ""
|
2022-06-23 17:21:06 +00:00
|
|
|
|
|
|
|
|
|
ports:
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Funkwhale
|
|
|
|
|
port: 8000
|
2022-06-23 17:21:06 +00:00
|
|
|
|
visibility: public
|
|
|
|
|
onOpen: notify
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Funkwhale API
|
|
|
|
|
port: 5000
|
2022-07-17 02:06:25 +00:00
|
|
|
|
visibility: private
|
|
|
|
|
onOpen: ignore
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: PostgreSQL
|
|
|
|
|
port: 5432
|
2022-07-17 02:06:25 +00:00
|
|
|
|
visibility: private
|
|
|
|
|
onOpen: ignore
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Debugpy
|
|
|
|
|
port: 5678
|
2022-07-17 02:06:25 +00:00
|
|
|
|
visibility: private
|
|
|
|
|
onOpen: ignore
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Redis
|
|
|
|
|
port: 6379
|
2022-07-17 02:06:25 +00:00
|
|
|
|
visibility: private
|
|
|
|
|
onOpen: ignore
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Frontend
|
|
|
|
|
port: 8080
|
2022-07-17 02:06:25 +00:00
|
|
|
|
visibility: private
|
|
|
|
|
onOpen: ignore
|
|
|
|
|
|
2023-11-02 08:40:38 +00:00
|
|
|
|
- name: Documentation
|
|
|
|
|
port: 8001
|
2023-11-01 20:22:48 +00:00
|
|
|
|
visibility: public
|
|
|
|
|
onOpen: notify
|
|
|
|
|
|
2022-06-23 17:21:06 +00:00
|
|
|
|
vscode:
|
|
|
|
|
extensions:
|
2022-10-26 22:47:53 +00:00
|
|
|
|
- Vue.volar
|
2022-06-23 17:21:06 +00:00
|
|
|
|
- ms-python.python
|
|
|
|
|
- ms-toolsai.jupyter
|
|
|
|
|
- ms-toolsai.jupyter-keymap
|
|
|
|
|
- ms-toolsai.jupyter-renderers
|
2022-07-17 02:06:25 +00:00
|
|
|
|
- hbenl.vscode-test-explorer
|
|
|
|
|
- hbenl.test-adapter-converter
|
|
|
|
|
- littlefoxteam.vscode-python-test-adapter
|
2022-08-31 22:36:40 +00:00
|
|
|
|
- ZixuanChen.vitest-explorer
|