Page MenuHomeDevCentral

Solve two nginx concurrent vhosts issue
ClosedPublic

Authored by Sandlayth on Nov 6 2015, 22:09.
Referenced Files
Unknown Object (File)
Tue, Dec 17, 03:01
Unknown Object (File)
Tue, Dec 17, 00:34
Unknown Object (File)
Fri, Dec 13, 23:51
Unknown Object (File)
Fri, Dec 13, 04:53
Unknown Object (File)
Tue, Dec 10, 17:45
Unknown Object (File)
Mon, Dec 9, 16:58
Unknown Object (File)
Fri, Dec 6, 06:13
Unknown Object (File)
Wed, Dec 4, 22:00

Details

Summary

Previously, this image added a new site vhost for Phabricator, and
removed the default vhost provided by nasqueron/nginx-php-fpm.

Instead, we overwrite the default with our own configuration.

This allows to avoid the two files to be present in the same image,
as Docker 1.3 to 1.8 doesn't seem to honour a rm command on an upper
layer than the actual file.

Fixes T546.

Test Plan
docker build --tag=nasqueron/phabricator .
docker run --rm nasqueron/phabricator cat /etc/nginx/sites-enabled/default

Diff Detail

Repository
rDPHAB Docker image for Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Sandlayth retitled this revision from to Remove /etc/nginx/sites-enabled/default.
Sandlayth updated this object.
Sandlayth edited the test plan for this revision. (Show Details)
Sandlayth added a reviewer: dereckson.
Sandlayth set the repository for this revision to rDPHAB Docker image for Phabricator.
Sandlayth planned changes to this revision.EditedNov 7 2015, 09:09
[ops@dwellers docker-phabricator]$ docker run -d nasqueron\phabricator ls /etc/nginx/sites-enabled/default
[ops@dwellers docker-phabricator]$ docker logs loving_meitner
/etc/nginx/sites-enabled/default

We have tried another approach, replacing the default vhost.

dereckson edited the test plan for this revision. (Show Details)
dereckson retitled this revision from Remove /etc/nginx/sites-enabled/default to Solve two nginx concurrent vhosts issue .
dereckson updated this object.
dereckson updated this object.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Nov 7 2015, 23:55
dereckson requested changes to this revision.Nov 8 2015, 00:31
dereckson edited edge metadata.

Rebase needed.

This revision now requires changes to proceed.Nov 8 2015, 00:31
Sandlayth edited edge metadata.

Rebased.

dereckson edited edge metadata.
This revision is now accepted and ready to land.Nov 8 2015, 00:35
This revision was automatically updated to reflect the committed changes.