Page MenuHomeDevCentral

Add DockerHub support
ClosedPublic

Authored by dereckson on Sep 3 2016, 01:57.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 23:59
Unknown Object (File)
Mon, Oct 28, 22:47
Unknown Object (File)
Sat, Oct 26, 10:31
Unknown Object (File)
Wed, Oct 23, 15:17
Unknown Object (File)
Fri, Oct 18, 05:26
Unknown Object (File)
Wed, Oct 16, 15:06
Unknown Object (File)
Mon, Oct 14, 16:30
Unknown Object (File)
Mon, Oct 14, 15:59
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.