Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • adaures/castopod
  • mkljczk/castopod-host
  • spaetz/castopod-host
  • PatrykMis/castopod
  • jonas/castopod
  • ajeremias/castopod
  • misuzu/castopod
  • KrzysztofDomanczyk/castopod
  • Behel/castopod
  • nebulon/castopod
  • ewen/castopod
  • NeoluxConsulting/castopod
  • nateritter/castopod-og
  • prcutler/castopod
14 results
Show changes
Commits on Source (1090)
Showing
with 1196 additions and 33 deletions
{
"projectName": "castopod",
"projectOwner": "adaures",
"repoType": "gitlab",
"repoHost": "https://code.castopod.org",
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "yassinedoghri",
"name": "Yassine Doghri",
"avatar_url": "https://avatars.githubusercontent.com/u/11021441?v=4",
"profile": "https://yassinedoghri.com",
"contributions": [
"code",
"bug",
"doc",
"review",
"maintenance",
"content",
"design",
"a11y",
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"question",
"mentoring",
"infra",
"ideas",
"projectManagement",
{
"type": "blog",
"url": "https://blog.castopod.org/author/yassinedoghri/"
}
]
},
{
"login": "benjamin",
"name": "Benjamin Bellamy",
"avatar_url": "https://code.castopod.org/uploads/-/system/user/avatar/2/avatar.png",
"profile": "https://code.castopod.org/benjamin",
"contributions": [
"code",
"bug",
"review",
"content",
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"question",
"infra",
"ideas",
{
"type": "blog",
"url": "https://blog.castopod.org/author/benjamin-bellamy/"
},
"projectManagement",
"talk"
]
},
{
"login": "ola",
"name": "Ola Hneini",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://github.com/ola-hn",
"contributions": [
"code",
"review",
"doc",
"maintenance",
"question",
"ideas"
]
},
{
"login": "rdelaage",
"name": "Romain de Laage",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://mamot.fr/@rdelaage",
"contributions": [
"code",
"infra",
"doc",
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"ideas"
]
},
{
"login": "Lyonel",
"name": "Lyonel Bernard",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://twitter.com/lyonelbernard",
"contributions": ["bug", "question", "audio", "ideas"]
},
{
"login": "ctlw83",
"name": "Christopher Lagonick-Weitzel",
"avatar_url": "https://secure.gravatar.com/avatar/7c2a721b52d0763673a600e8f01bd745?s=80&d=identicon",
"profile": "https://www.crypticchameleon.com/",
"contributions": ["bug", "question", "audio", "ideas"]
},
{
"login": "ernestoacostame",
"name": "Ernesto Acosta",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://ernestoacosta.me/",
"contributions": [
"bug",
"audio",
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"question",
"ideas"
]
},
{
"login": "3wen",
"name": "Ewen",
"avatar_url": "https://mastodon.fedi.bzh/system/accounts/avatars/000/000/002/original/6f387690a504ae46.jpg",
"profile": "https://mastodon.fedi.bzh/@ewen",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"ideas",
"code"
]
},
{
"login": "Behel",
"name": "Bastien Luneteau",
"avatar_url": "https://secure.gravatar.com/avatar/ad63ee8ef8e3db8253d21e5012d2724f?s=80&d=identicon",
"profile": "https://code.castopod.org/Behel",
"contributions": ["code", "bug"]
},
{
"login": "cecillie",
"name": "Cécile Ricordeau",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://www.cecillie.fr/",
"contributions": ["design"]
},
{
"login": "PatrykMis",
"name": "Patryk Miś",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/PatrykMis",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "mspanc",
"name": "Marcin Lewandowski",
"avatar_url": "https://secure.gravatar.com/avatar/eed8337939641eac5ad0b570bd6acf96?s=80&d=identicon",
"profile": "https://code.castopod.org/mspanc",
"contributions": ["bug", "ideas"]
},
{
"login": "SJanik",
"name": "Sebastian Janik",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/SJanik",
"contributions": ["code"]
},
{
"login": "patryk",
"name": "Patryk Karczmarczyk",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/patryk",
"contributions": ["code"]
},
{
"login": "ddenis",
"name": "denis d",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/ddenis",
"contributions": ["bug", "ideas"]
},
{
"login": "douglaskastle",
"name": "Douglas Kastle",
"avatar_url": "https://secure.gravatar.com/avatar/b7e652ba4b6bcd440afa069e7f7bc9e6?s=80&d=identicon",
"profile": "https://code.castopod.org/douglaskastle",
"contributions": ["bug", "ideas"]
},
{
"login": "cExplorer",
"name": "cExplorer",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/cExplorer",
"contributions": [
"bug",
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "imacrea",
"name": "ImaCrea",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/imacrea",
"contributions": ["bug", "ideas"]
},
{
"login": "jonas",
"name": "Jonas S",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/jonas",
"contributions": ["code"]
},
{
"login": "yannL",
"name": "LEFEBVRE Yann",
"avatar_url": "https://secure.gravatar.com/avatar/9c46600ce566ec6d526370d8e104b1c8?s=80&d=identicon",
"profile": "https://code.castopod.org/yannL",
"contributions": ["bug"]
},
{
"login": "spaetz",
"name": "Sebastian Späth",
"avatar_url": "https://secure.gravatar.com/avatar/278e1af65e82993efd0ba7bbbacf6435?s=80&d=identicon",
"profile": "https://code.castopod.org/spaetz",
"contributions": ["bug", "ideas"]
},
{
"login": "rocky",
"name": "rocky III",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/rocky",
"contributions": ["bug"]
},
{
"login": "Regenpfeifer",
"name": "Hermann Josef Eckl",
"avatar_url": "https://code.castopod.org/uploads/-/system/user/avatar/103/avatar.png",
"profile": "https://code.castopod.org/Regenpfeifer",
"contributions": ["bug"]
},
{
"login": "cyrilledel",
"name": "Delhaye Cyrille",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://code.castopod.org/cyrilledel",
"contributions": ["bug", "ideas"]
},
{
"login": "otetranome",
"name": "João Leandro",
"avatar_url": "https://code.castopod.org/uploads/-/system/user/avatar/113/avatar.png",
"profile": "https://twitter.com/otetranome",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
},
"ideas"
]
},
{
"login": "achouvardas",
"name": "Angelos Chouvardas",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://achouvardas.eu/",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "eivind",
"name": "Eivind",
"avatar_url": "https://mastodon.fjerland.no/system/accounts/avatars/107/769/768/295/192/222/original/e5c985fea6487dcb.jpg",
"profile": "https://mastodon.fjerland.no/@eivind",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "forght",
"name": "forght",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15073833/large/82d1e2e443a6df7edc43a7405dfeeb75_default.png",
"profile": "https://crowdin.com/profile/forght",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "glottis0q",
"name": "glottis0q",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15209934/large/8b17ef6a7399f0b82a8198f87c224195.png",
"profile": "https://crowdin.com/profile/glottis0q",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "BoFFire",
"name": "ButterflyOfFire",
"avatar_url": "https://static.mstdn.fr/static/accounts/avatars/000/065/901/original/5908e93ad5447f15.png",
"profile": "https://mstdn.fr/@ButterflyOfFire",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "lil5",
"name": "Lucian I. Last",
"avatar_url": "https://avatars.githubusercontent.com/u/17646836?v=4",
"profile": "https://github.com/lil5",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "LuuzViir",
"name": "LuuzViir",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/13166188/large/d03ab0abc7ce354b210d836955cd3805_default.png",
"profile": "https://crowdin.com/profile/luuzviir",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "cthtc",
"name": "CTHTC",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15211502/large/ed0651060cb8474a9519b5168bd377c1_default.png",
"profile": "https://crowdin.com/profile/cthtc",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "retrograde",
"name": "Russian Retro",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15021651/large/b10c4057f85bf4de49c7fdf01354ecde.jpeg",
"profile": "https://crowdin.com/profile/retrograde",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "mareklach",
"name": "Marek L'ach",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/13572324/large/3eeba8d569c247ace33862bf4ef4748f.jpeg",
"profile": "https://crowdin.com/profile/mareklach",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "GunChleoc",
"name": "GunChleoc",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/13043878/large/3223f7b606296a8b1c92c5de39c459a2_default.png",
"profile": "https://crowdin.com/profile/gunchleoc",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "GabiSnow",
"name": "GabiSnow",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15214858/large/5b083bdf9c9e9de67cc6ee72a6c8db18_default.png",
"profile": "https://crowdin.com/profile/gabisnow",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "bendaha",
"name": "bendaha",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15331656/large/cd92450d2c20202299fb3a0075903e20_default.png",
"profile": "https://crowdin.com/profile/bendaha",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "samuelroland",
"name": "Samuel Roland",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/14980053/large/3e154a37d03d6e98ae402ed3f930f4f5.png",
"profile": "https://crowdin.com/profile/samuelroland",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "dimregnier",
"name": "Dimitri Regnier",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://dimitriregnier.net/",
"contributions": ["ideas"]
},
{
"login": "irithys",
"name": "irithys",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15405614/large/3086461c47cce0a0c031925e5f943412.png",
"profile": "https://im.irithys.com/@thy",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "caos30",
"name": "Sergi",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://twitter.com/caos30",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "basen1982",
"name": "Andreas Olsson",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://crowdin.com/profile/basen1982",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "leonfrom",
"name": "leonfrom",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://crowdin.com/profile/leonfrom",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "agentcobra57",
"name": "agentcobra",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://crowdin.com/profile/agentcobra57",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "alephoto85",
"name": "Alessandro",
"avatar_url": "https://crowdin-static.downloads.crowdin.com/avatar/15094649/large/530391f54157af52ae33058ec15b0f99.jpg",
"profile": "https://crowdin.com/profile/alephoto85",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "liimee",
"name": "liimee",
"avatar_url": "https://castopod.org/assets/images/castopod-avatar.jpg",
"profile": "https://crowdin.com/profile/liimee",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "ahmedsabouni",
"name": "Ahmed Sabouni",
"avatar_url": "https://avatars.githubusercontent.com/u/74497842?v=4",
"profile": "https://github.com/ahmedsabouni",
"contributions": [
{
"type": "translation",
"url": "https://translate.castopod.org"
}
]
},
{
"login": "KrzysztofDomanczyk",
"name": "KrzysztofDomanczyk",
"avatar_url": "https://avatars.githubusercontent.com/u/75178474?v=4",
"profile": "https://github.com/KrzysztofDomanczyk",
"contributions": ["code"]
},
{
"login": "Dwev",
"name": "Guy Martin",
"avatar_url": "https://avatars.githubusercontent.com/u/46626050?v=4",
"profile": "https://github.com/Dwev",
"contributions": ["bug", "code"]
},
{
"login": "prcutler",
"name": "Paul Cutler",
"avatar_url": "https://avatars.githubusercontent.com/u/67276?v=4",
"profile": "https://github.com/prcutler",
"contributions": ["doc", "question", "ideas"]
},
{
"login": "nateritter",
"name": "Nate Ritter",
"avatar_url": "https://avatars.githubusercontent.com/u/198798?v=4",
"profile": "https://github.com/nateritter",
"contributions": ["code"]
}
],
"commitConvention": "none"
}
# Browsers that we support
>0.2%,
not dead,
not op_mini all
FROM php:latest ####################################################
# Castopod development Docker file
####################################################
# ⚠️ NOT optimized for production
# should be used only for development purposes
#---------------------------------------------------
FROM php:8.4-fpm
RUN apt-get update && apt-get install -y \ LABEL maintainer="Yassine Doghri <yassine@doghri.fr>"
libicu-dev \
&& docker-php-ext-install intl
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - # Install composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN apt-get update && \ # Install server requirements
apt-get install -y nodejs RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get update \
RUN apt-get update && \ && apt-get install --yes --no-install-recommends nodejs \
apt-get upgrade -y && \ # gnupg to sign commits with gpg
apt-get install -y git vim gnupg \
openssh-client \
# cron for scheduled tasks
cron \
# unzip used by composer
unzip \
# required libraries to install php extensions using
# https://github.com/mlocati/docker-php-extension-installer (included in php's docker image)
libicu-dev \
libpng-dev \
libwebp-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
zlib1g-dev \
libzip-dev \
# ffmpeg for video encoding
ffmpeg \
# intl for Internationalization
&& docker-php-ext-install intl \
&& docker-php-ext-install zip \
# gd for image processing
&& docker-php-ext-configure gd --with-webp --with-jpeg --with-freetype \
&& docker-php-ext-install gd \
&& docker-php-ext-install exif \
&& docker-php-ext-enable exif \
# redis extension for cache
&& pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis \
# mysqli for database access
&& docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli
* * * * * /usr/local/bin/php /workspaces/castopod/spark tasks:run >> /dev/null 2>&1
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/docker-existing-dockerfile // https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/docker-existing-dockerfile
{ {
"name": "Existing Dockerfile", "name": "castopod.local",
"dockerFile": "./Dockerfile", "dockerComposeFile": ["./docker-compose.yml"],
"settings": { "service": "app",
"terminal.integrated.shell.linux": null "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"postCreateCommand": "composer install && pnpm install && pnpm run build:static && php spark migrate --all && php spark db:seed DevSeeder",
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && crontab .devcontainer/crontab && cron && php spark serve --host 0.0.0.0",
"postAttachCommand": "crontab .devcontainer/crontab && service cron reload",
"shutdownAction": "stopCompose",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/guiyomh/features/vim:0": {},
"ghcr.io/NicoVIII/devcontainer-features/pnpm:2": {}
}, },
"extensions": [ "customizations": {
"mikestead.dotenv", "vscode": {
"bmewburn.vscode-intelephense-client", "settings": {
"streetsidesoftware.code-spell-checker", "editor.formatOnSave": true,
"naumovs.color-highlight", "editor.defaultFormatter": "esbenp.prettier-vscode",
"heybourn.headwind", "[php]": {
"anish-m.ci-snippets2", "editor.defaultFormatter": "bmewburn.vscode-intelephense-client",
"wayou.vscode-todo-highlight" "editor.formatOnSave": false
] },
"css.validate": false,
"color-highlight.markerType": "dot-before",
"files.associations": {
"*.xml.dist": "xml",
"spark": "php",
"env": "dotenv",
".rsync-filter": "diff"
},
"json.schemas": [
{
"fileMatch": [
"plugins/**/manifest.json",
"tests/modules/Plugins/mocks/manifests/*.json",
"tests/modules/Plugins/mocks/plugins/**/manifest.json"
],
"url": "/workspaces/castopod/modules/Plugins/Manifest/manifest.schema.json"
}
]
},
"extensions": [
"astro-build.astro-vscode",
"bmewburn.vscode-intelephense-client",
"bradlc.vscode-tailwindcss",
"breezelin.phpstan",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"heybourn.headwind",
"jamesbirtles.svelte-vscode",
"kasik96.latte",
"mikestead.dotenv",
"naumovs.color-highlight",
"pflannery.vscode-versionlens",
"runem.lit-plugin",
"streetsidesoftware.code-spell-checker",
"stylelint.vscode-stylelint",
"unifiedjs.vscode-mdx",
"wayou.vscode-todo-highlight",
"yzhang.markdown-all-in-one",
"42Crunch.vscode-openapi"
]
}
}
} }
version: "3" version: "3"
networks:
castopod:
services: services:
app: app:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: "castopod_app"
command: ["php", "spark", "serve", "--host", "0.0.0.0"]
ports: ports:
- 8080:8080 - 8080:8080
volumes: volumes:
- .:/castopod - ../..:/workspaces:cached
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment:
CI_ENVIRONMENT: development
vite_environment: development
app_forceGlobalSecureRequests: 0 #false
app_baseURL: http://localhost:8080/
media_baseURL: http://localhost:8080/
admin_gateway: cp-admin
auth_gateway: cp-auth
analytics_salt: dev_analytics_salt
database_default_hostname: mariadb
database_default_database: castopod
database_default_username: castopod
database_default_password: castopod
database_default_DBPrefix: cp_
restapi_enabled: 1 #true
email_fromEmail: hello@castopod.local
email_SMTPCrypto: ""
email_SMTPHost: mailpit
email_SMTPUser: castopod
email_SMTPPass: castopod
email_SMTPPort: 1025
depends_on: depends_on:
- redis
- mariadb - mariadb
networks:
- castopod redis:
image: redis:alpine
volumes:
- redis:/data
mariadb: mariadb:
image: mariadb:latest image: mariadb:10.2
container_name: castopod_mariadb
ports:
- 3306:3306
volumes: volumes:
- ./initdb:/docker-entrypoint-initdb.d
- mariadb:/var/lib/mysql - mariadb:/var/lib/mysql
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: castopod MYSQL_DATABASE: castopod
MYSQL_USER: podlibre MYSQL_USER: castopod
MYSQL_PASSWORD: castopod MYSQL_PASSWORD: castopod
networks:
- castopod
phpmyadmin: phpmyadmin:
image: phpmyadmin/phpmyadmin:latest image: phpmyadmin/phpmyadmin:latest
container_name: castopod_phpmyadmin
environment: environment:
PMA_HOST: mariadb PMA_HOST: mariadb
PMA_PORT: 3306 PMA_PORT: 3306
UPLOAD_LIMIT: 300M
ports: ports:
- 8888:80 - 8888:80
volumes: volumes:
- phpmyadmin:/sessions - phpmyadmin:/sessions
depends_on: depends_on:
- mariadb - mariadb
networks:
- castopod
composer: mailpit:
image: composer:latest image: axllent/mailpit
container_name: castopod_composer restart: always
volumes: volumes:
- .:/var/www/html - mailpit:/data
working_dir: /var/www/html ports:
networks: - 8025:8025
- castopod - 1025:1025
environment:
node: MP_MAX_MESSAGES: 5000
image: node:lts MP_DATA_FILE: /data/mailpit.db
container_name: castopod_node MP_SMTP_AUTH_ACCEPT_ANY: 1
volumes: MP_SMTP_AUTH_ALLOW_INSECURE: 1
- .:/usr/src/app
working_dir: /usr/src/app
networks:
- castopod
volumes: volumes:
redis:
mariadb: mariadb:
phpmyadmin: phpmyadmin:
mailpit:
CREATE DATABASE IF NOT EXISTS `test`;
GRANT ALL ON `test`.* TO 'castopod'@'%';
file_uploads = On
memory_limit = 512M
upload_max_filesize = 500M
post_max_size = 512M
max_execution_time = 300
; top-most EditorConfig file
root = true
; Unix-style newlines
[*]
end_of_line = lf
[*.php]
indent_style = spaces
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
\ No newline at end of file
#--------------------------------------------------------------------
# Example Environment Configuration file
#
# This file can be used as a starting point for
# your Castopod instance settings.
#
# For manual configuration:
# - copy this file's contents to a file named `.env`
# - replace all the default settings with your values
# - go to `/cp-install` to complete installation
#--------------------------------------------------------------------
#--------------------------------------------------------------------
# Instance configuration
#--------------------------------------------------------------------
app.baseURL="https://YOUR_DOMAIN_NAME/"
media.baseURL="https://YOUR_MEDIA_DOMAIN_NAME/"
admin.gateway="cp-admin"
auth.gateway="cp-auth"
analytics.salt="RANDOM_STRING_OF_64_CHARACTERS"
#--------------------------------------------------------------------
# Database configuration
#--------------------------------------------------------------------
database.default.hostname="localhost"
database.default.database="castopod"
database.default.username="root"
database.default.password="****"
database.default.DBPrefix="cp_"
#--------------------------------------------------------------------
# Email configuration
#--------------------------------------------------------------------
# email.fromEmail="your_email_address"
# email.SMTPHost="your_smtp_host"
# email.SMTPUser="your_smtp_user"
# email.SMTPPass="your_smtp_password"
#--------------------------------------------------------------------
# Cache configuration (advanced)
#
# Keep as is if you don't know what this means
#--------------------------------------------------------------------
cache.handler="file"
# Redis configuration
#--------------------------------------------------------------------
# cache.handler="redis"
# cache.redis.host="127.0.0.1"
# cache.redis.password=null
# cache.redis.port=6379
# cache.redis.database=0
#--------------------------------------------------------------------
# S3 configuration
#--------------------------------------------------------------------
# media.fileManager="s3"
# media.s3.endpoint="your_s3_host"
# media.s3.key="your_s3_key"
# media.s3.secret="your_s3_secret"
# media.s3.region="your_s3_region"
#--------------------------------------------------------------------
# REST API configuration
#--------------------------------------------------------------------
# restapi.enabled=true
# restapi.basicAuthUsername=castopod
# restapi.basicAuthPassword=password
# restapi.basicAuth=true
open_collective: castopod
...@@ -30,6 +30,9 @@ $RECYCLE.BIN/ ...@@ -30,6 +30,9 @@ $RECYCLE.BIN/
# Linux # Linux
*~ *~
# vim
*.swp
# KDE directory preferences # KDE directory preferences
.directory .directory
...@@ -57,10 +60,14 @@ writable/logs/* ...@@ -57,10 +60,14 @@ writable/logs/*
writable/session/* writable/session/*
!writable/session/index.html !writable/session/index.html
writable/temp/*
!writable/temp/index.html
writable/uploads/* writable/uploads/*
!writable/uploads/index.html !writable/uploads/index.html
writable/debugbar/* writable/debugbar/*
!writable/debugbar/.gitkeep
php_errors.log php_errors.log
...@@ -79,6 +86,7 @@ tests/coverage* ...@@ -79,6 +86,7 @@ tests/coverage*
# Don't save phpunit under version control. # Don't save phpunit under version control.
phpunit phpunit
.phpunit.cache
#------------------------- #-------------------------
# Composer # Composer
...@@ -120,20 +128,52 @@ nb-configuration.xml ...@@ -120,20 +128,52 @@ nb-configuration.xml
# Visual Studio Code # Visual Studio Code
.vscode/ .vscode/
.history/
tmp/
/results/ /results/
/phpunit*.xml /phpunit*.xml
/.phpunit.*.cache
# Media files
public/media/*
# npm # js package manager
yarn.lock yarn.lock
node_modules node_modules
.pnpm-store
# JS
.cache
# public folder
public/*
!public/media
!public/.htaccess
!public/favicon.ico
!public/icon*
!public/castopod-banner*
!public/castopod-avatar*
!public/index.php
!public/robots.txt
!public/.well-known
!public/.well-known/GDPR.yml
public/assets/*
!public/assets/index.html
# potcss generated file # public media folder
public/index.css !public/media/podcasts
!public/media/persons
!public/media/site
public/media/podcasts/*
!public/media/podcasts/index.html
public/media/persons/*
!public/media/persons/index.html
public/media/site/*
!public/media/site/index.html
# Generated files
modules/Admin/Language/*/PersonsTaxonomy.php
#------------------------- #-------------------------
# Docker volumes # Docker volumes
...@@ -142,3 +182,13 @@ public/index.css ...@@ -142,3 +182,13 @@ public/index.css
mariadb mariadb
phpmyadmin phpmyadmin
sessions sessions
data
# Castopod bundle & packages
castopod/
castopod-*.zip
castopod-*.tar.gz
# Plugins
plugins/*
!plugins/.gitkeep
image: code.castopod.org:5050/adaures/castopod:ci-php8.4
stages:
- prepare
- quality
- bundle
- release
- deploy
- build
php-dependencies:
stage: prepare
script:
# Install all php dependencies
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
cache:
key:
files:
- composer.lock
paths:
- .composer-cache
artifacts:
expire_in: 30 mins
paths:
- vendor/
js-dependencies:
stage: prepare
script:
# Install all js dependencies
- pnpm install
cache:
key:
files:
- pnpm-lock.yaml
paths:
- .pnpm-store
artifacts:
expire_in: 30 mins
paths:
- node_modules/
lint-commit-msg:
stage: quality
script:
- chmod +x ./scripts/lint-commit-msg.sh
# lint commit message
- ./scripts/lint-commit-msg.sh
dependencies:
- js-dependencies
only:
- develop
- main
- beta
- alpha
- next
lint-php:
stage: quality
script:
# check php code style
- vendor/bin/ecs check --ansi
# phpstan - increase memory limit to 1GB to prevent script failure
- php -d memory_limit=1G vendor/bin/phpstan analyse --ansi
# run rector to check for php errors
- vendor/bin/rector process --dry-run --ansi
dependencies:
- php-dependencies
lint-js:
stage: quality
script:
- pnpm run format
- pnpm run typecheck
- pnpm run lint
- pnpm run lint:css
dependencies:
- js-dependencies
tests:
stage: quality
services:
- mariadb:10.11
variables:
MYSQL_ROOT_PASSWORD: "R00Tp4ssW0RD"
MYSQL_DATABASE: "test"
MYSQL_USER: "castopod"
MYSQL_PASSWORD: "castopod"
script:
- echo "SHOW DATABASES;" | mariadb --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mariadb "$MYSQL_DATABASE" --skip_ssl
# run phpunit without code coverage
# TODO: add code coverage
- vendor/bin/phpunit --no-coverage
dependencies:
- php-dependencies
bundle:
stage: bundle
before_script:
# prepare dependencies before bundling
- chmod +x ./scripts/bundle-prepare.sh
- ./scripts/bundle-prepare.sh
script:
# make scripts/bundle.sh executable
- chmod +x ./scripts/bundle.sh
# bundle castopod with commit ref as version
- ./scripts/bundle.sh ${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHORT_SHA}
dependencies:
- php-dependencies
- js-dependencies
artifacts:
name: "castopod-${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHORT_SHA}"
paths:
- castopod
only:
variables:
- $CI_PROJECT_NAMESPACE == "adaures"
except:
- main
- beta
- alpha
- next
release:
stage: release
before_script:
# IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists)
- git tag | xargs git tag -d
# prepare dependencies before release, both bundle and package scripts will be run by semantic-release
- chmod +x ./scripts/bundle-prepare.sh
- ./scripts/bundle-prepare.sh
script:
# make release scripts executable
- chmod +x ./scripts/bundle.sh
- chmod +x ./scripts/package.sh
# run semantic-release script (configured in `.releaserc.json` file)
- pnpm run release
dependencies:
- php-dependencies
- js-dependencies
artifacts:
paths:
- castopod
- CP_VERSION.env
only:
- main
- beta
- alpha
- next
website:
stage: deploy
trigger: adaures/castopod.org
only:
- main
- beta
- alpha
documentation:
stage: deploy
trigger:
include: docs/.gitlab-ci.yml
strategy: depend
docker:
stage: build
trigger:
include: docker/production/.gitlab-ci.yml
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
only:
refs:
- develop
- main
- beta
- alpha
- next
variables:
- $CI_PROJECT_NAMESPACE == "adaures"
### Describe the bug
[Summarize the bug encountered concisely]
### Steps to reproduce
1. [First step]
2. [Second step]
3. [and so on...]
### Expected behavior
[What you expected to happen]
### Actual behavior
[What actually happened]
### Relevant logs and/or screenshots
Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.
### Context
- Castopod: [which version (or branch, if applicable) the bug is in]
- OS: [e.g. Ubuntu server]
- Browser: [e.g. chrome, safari]
- Web server: [eg. Apache]
- [any other relevant context...]
### Possible fixes
[If you can, link to the line of code that might be responsible for the problem]
/label ~Bug
### Before submitting an issue
1. **Use the issue search** &mdash; check if the issue has already been
reported.
2. **Check if the issue has been fixed** &mdash; try to reproduce it using the
latest release.
3. **Isolate the problem** &mdash; ideally create a
[reduced test case](https://css-tricks.com/reduced-test-cases/) and a live
example.
4. **Select an issue template** &mdash; choose a template from `bug` or
`feature-request` and fill out the info you deem necessary. The more context
we get, the easier it is to implement the feature or fix the bug you report.
Check out the [CONTRIBUTING manual](../../CONTRIBUTING.md) for more info.
### Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is. Ex. I'm always
frustrated when [...]
### Describe the solution you'd like
A clear and concise description of what you want to happen.
### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've
considered.
### Additional context
Add any other context or screenshots about the feature request here.
/label ~"Feature request"
_
pnpm exec commitlint --verbose --edit "$1"
# CaptainHook 5.10.0
INTERACTIVE="--no-interaction"
vendor/bin/captainhook $INTERACTIVE --configuration=captainhook.json --bootstrap=vendor/autoload.php hook:pre-commit "$@" <&0
pnpm run typecheck
pnpm exec lint-staged
# CaptainHook 5.10.0
INTERACTIVE="--no-interaction"
vendor/bin/captainhook $INTERACTIVE --configuration=captainhook.json --bootstrap=vendor/autoload.php hook:pre-push "$@" <&0