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)
Sat, Nov 9, 02:23
Unknown Object (File)
Sat, Nov 9, 02:05
Unknown Object (File)
Thu, Oct 31, 08:54
Unknown Object (File)
Thu, Oct 31, 03:43
Unknown Object (File)
Sat, Oct 26, 23:22
Unknown Object (File)
Sun, Oct 20, 23:34
Unknown Object (File)
Sat, Oct 19, 23:54
Unknown Object (File)
Oct 10 2024, 11:21

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.