forked from OctoLinker/OctoLinker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for linking to Docker entrypoint files (OctoLinker#511)
Hey OctoLinker team, thank you for the great extension and reviewing my PR. Looking forward to your feedback. :) Adds support for linking to relative Docker entrypoint files to the Docker plugin using the relative file resolver. Closes issue OctoLinker#431 ### Checklist: - [X] If this PR is a new feature, please provide at least one example link The ENTRYPOINT line in [docker-library/wordpress:php5.6/apache/Dockerfile@6a085d9#L59](https://github.com/docker-library/wordpress/blob/6a085d90853b8baffadbd3f0a41d6814a2513c11/php5.6/apache/Dockerfile#L59) should resolve to [docker-library/wordpress:php5.6/apache/docker-entrypoint.sh@6a085d9](https://github.com/docker-library/wordpress/blob/6a085d90853b8baffadbd3f0a41d6814a2513c11/php5.6/apache/docker-entrypoint.sh) Official repo links (example: ` FROM php:5.6-apache` on line 1 in the same file) should still resolve to hub.docker.com - [x] Make sure all of the significant new logic is covered by tests
- Loading branch information
1 parent
3da6100
commit 37b1356
Showing
7 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// @OctoLinkerResolve(https://hub.docker.com/_/php/) | ||
FROM php:php:5.6-apache | ||
|
||
// @OctoLinkerResolve(<root>/docker/docker-entrypoint.sh) | ||
ENTRYPOINT ["docker-entrypoint.sh"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters