Page MenuHomeDevCentral

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

Authored by dereckson on Mar 19 2016, 03:53.
Referenced Files
Unknown Object (File)
Tue, Jan 21, 01:58
Unknown Object (File)
Sun, Jan 19, 05:31
Unknown Object (File)
Fri, Jan 17, 23:58
Unknown Object (File)
Fri, Jan 17, 04:55
Unknown Object (File)
Fri, Jan 10, 20:57
Unknown Object (File)
Thu, Jan 9, 04:29
Unknown Object (File)
Thu, Jan 9, 01:51
Unknown Object (File)
Tue, Jan 7, 18:41

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.