Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static proxy with metadata cache #229

Merged
merged 5 commits into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ GA_TRACKING=
###< google analytics ###

###> storage ###
STORAGE_SOURCE=storage.local
PROXY_DIST_DIR=%kernel.project_dir%/var/proxy
PACKAGES_DIST_DIR=%kernel.project_dir%/var/repo
SECURITY_ADVISORIES_DB_DIR=%kernel.project_dir%/var/security-advisories
Expand Down
1 change: 1 addition & 0 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ GA_TRACKING=
###< google analytics ###

###> storage ###
STORAGE_SOURCE=storage.local
PROXY_DIST_DIR=%kernel.project_dir%/var/proxy
PACKAGES_DIST_DIR=%kernel.project_dir%/var/repo
SECURITY_ADVISORIES_DB_DIR=%kernel.project_dir%/var/security-advisories
Expand Down
7 changes: 7 additions & 0 deletions ansible/roles/cron/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
minute="*/5"
job="{{ app_root }}/bin/console repman:proxy:sync-releases >>{{ app_root }}/var/log/cron.log 2>&1"

- name: Add sync proxy metadata command to cron
cron:
name="Sync proxy metadata with origins"
user="{{ system_user }}"
minute="*/6"
job="{{ app_root }}/bin/console repman:proxy:sync-metadata >>{{ app_root }}/var/log/cron.log 2>&1"

- name: Add security update-db command to cron
cron:
name="Update security advisories database"
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
"doctrine/orm": "^2.7",
"knplabs/github-api": "^2.12",
"knpuniversity/oauth2-client-bundle": "^2.0",
"league/flysystem-bundle": "^1.5",
"league/oauth2-github": "^2.0",
"m4tthumphrey/php-gitlab-api": "^9.17",
"munusphp/munus": "^0.2.1",
"omines/oauth2-gitlab": "^3.2",
"ramsey/uuid-doctrine": "^1.5",
"react/http": "^1.0",
"sensio/framework-extra-bundle": "^5.5",
"sentry/sentry-symfony": "^3.4",
"stevenmaguire/oauth2-bitbucket": "^3.0",
Expand Down Expand Up @@ -70,6 +72,7 @@
"ekino/phpstan-banned-code": "^0.3.1",
"friendsofphp/php-cs-fixer": "^2.16",
"fzaninotto/faker": "^1.9",
"league/flysystem-memory": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.18",
"phpstan/phpstan-deprecation-rules": "^0.12.2",
Expand Down
Loading