Page MenuHomeDevCentral

Copy files/ to novolume/files/ for Docker Hub builder
ClosedPublic

Authored by dereckson on Mar 19 2016, 03:53.
Referenced Files
F2823117: D342.diff
Thu, Apr 18, 01:04
Unknown Object (File)
Mon, Apr 15, 02:22
Unknown Object (File)
Sun, Apr 14, 22:01
Unknown Object (File)
Sun, Apr 14, 14:24
Unknown Object (File)
Sun, Apr 14, 01:43
Unknown Object (File)
Tue, Apr 9, 23:35
Unknown Object (File)
Tue, Apr 9, 09:39
Unknown Object (File)
Sat, Apr 6, 03:39

Details

Summary

When the build operation starts, all the current directory
is send to Docker as a part of the build context.

The Docker Hub doesn't currently allow to configure the
path to Dockerfile, only a folder. So, when it tries to
build the image, the following error occurs:

Error build: Forbidden path: ../files.

This change copies the files/ folder as novolume/files/
and provides a Makefile to allow to update it each commit
modifying files/ using cd novolume && make update.

Fixes T787.

Test Plan

For the Docker build part:
docker build -t nasqueron/nginx-php-fpm:novolume .

For the update part:
cd novolume && make update

Diff Detail

Repository
rDPHPFPM Docker image for Nginx, php-fpm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to Copy files/ to novolume/files for Docker Hub builder.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: Sandlayth.
dereckson added inline comments.
novolume/Makefile
5

-Rp to reuse permissions too

dereckson retitled this revision from Copy files/ to novolume/files for Docker Hub builder to Copy files/ to novolume/files/ for Docker Hub builder.Mar 19 2016, 03:57
dereckson retitled this revision from Copy files/ to novolume/files/ for Docker Hub builder to Copy files/ to novolume/files for Docker Hub builder.

cp -Rcp -Rp to preserve files attributes.

dereckson retitled this revision from Copy files/ to novolume/files for Docker Hub builder to Copy files/ to novolume/files/ for Docker Hub builder.
Sandlayth edited edge metadata.
This revision is now accepted and ready to land.Mar 20 2016, 22:19
This revision was automatically updated to reflect the committed changes.