Page MenuHomeDevCentral

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

Authored by dereckson on Mar 19 2016, 03:53.
Referenced Files
F3909479: D342.id811.diff
Wed, Dec 18, 20:13
Unknown Object (File)
Tue, Dec 17, 16:20
Unknown Object (File)
Sat, Dec 14, 22:46
Unknown Object (File)
Sat, Dec 14, 22:24
Unknown Object (File)
Fri, Dec 6, 17:23
Unknown Object (File)
Wed, Dec 4, 16:15
Unknown Object (File)
Wed, Dec 4, 16:15
Unknown Object (File)
Wed, Dec 4, 16: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
No Lint Coverage
Unit
No Test Coverage
Branch
fix-novolume
Build Status
Buildable 452
Build 567: arc lint + arc unit

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.