Page MenuHomeDevCentral

Add DockerHub support
ClosedPublic

Authored by dereckson on Sep 3 2016, 01:57.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 16, 04:15
Unknown Object (File)
Sun, Jun 16, 04:13
Unknown Object (File)
Sat, Jun 15, 08:58
Unknown Object (File)
Fri, Jun 14, 07:38
Unknown Object (File)
Tue, Jun 11, 02:18
Unknown Object (File)
Tue, Jun 11, 02:06
Unknown Object (File)
Mon, Jun 10, 09:50
Unknown Object (File)
Sat, Jun 8, 19:24
Subscribers

Details

Summary

This change adds a service provider and a DockerHub facade to
be able to trigger a build for an image hosted on Docker Hub.

This will allow the notifications center to trigger new builds
when some event occurs, for example when app code is updated.

Ref T959.

Test Plan

Unit tests.

Tested in real conditions with:

$ php artisan tinker
Psy Shell v0.7.2 (PHP 5.6.16-1+deb.sury.org~trusty+1 — cli) by Justin Hileman
>>> $factory = App::make('dockerhub');
=> Keruald\DockerHub\Build\TriggerBuildFactory {#668}
>>> $factory->build('nasqueron/aphlict');
=> null
>>> $factory->build('nasqueron/aphlictx');
InvalidArgumentException with message 'No token found for image nasqueron/aphlictx.'
>>> DockerHub::build('nasqueron/auth-grove');
=> null

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to Add DockerHub support.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson added inline comments.
storage/app/.gitignore
3

\n

tests/data/DockerHubTokens.json
4

\n

This revision is now accepted and ready to land.Sep 3 2016, 02:01
dereckson edited edge metadata.
dereckson marked 2 inline comments as done.

Ready to merge.

This revision was automatically updated to reflect the committed changes.