Page MenuHomeDevCentral

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

Authored by dereckson on Mar 19 2016, 03:53.
Referenced Files
F9966877: D342.id810.diff
Tue, Jun 17, 00:12
F9964130: D342.id810.diff
Mon, Jun 16, 22:53
Unknown Object (File)
Mon, Jun 16, 07:00
Unknown Object (File)
Sat, Jun 14, 13:49
Unknown Object (File)
Fri, Jun 13, 18:41
Unknown Object (File)
Fri, Jun 13, 10:54
Unknown Object (File)
Mon, Jun 9, 06:12
Unknown Object (File)
Mon, Jun 9, 02:15

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.