Page MenuHomeDevCentral

Solve two nginx concurrent vhosts issue
ClosedPublic

Authored by Sandlayth on Nov 6 2015, 22:09.
Referenced Files
F3775004: D34.id.diff
Sun, Nov 24, 16:03
Unknown Object (File)
Fri, Nov 22, 05:39
Unknown Object (File)
Fri, Nov 22, 04:44
Unknown Object (File)
Fri, Nov 22, 04:38
Unknown Object (File)
Fri, Nov 22, 04:17
Unknown Object (File)
Fri, Nov 22, 01:15
Unknown Object (File)
Thu, Nov 21, 22:23
Unknown Object (File)
Mon, Nov 18, 19:47

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.