Skip to content

Commit

Permalink
Static proxy with metadata cache (#229)
Browse files Browse the repository at this point in the history
* Serve static proxy metadata and use v2 endpoint for dist lookup (#222)

* Move all proxy logic to Proxy class (#223)

* Implement sync proxy metadata command (#224)

* Use async and stream for downloading metadata and distibutions (#226)

* Create migration to better auto upgrade to 0.5.0 (#227)
  • Loading branch information
akondas authored Jul 21, 2020
1 parent 386942d commit 6c3124f
Show file tree
Hide file tree
Showing 57 changed files with 2,484 additions and 1,092 deletions.
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

0 comments on commit 6c3124f

Please sign in to comment.