Page MenuHomeDevCentral

Solve two nginx concurrent vhosts issue
ClosedPublic

Authored by Sandlayth on Nov 6 2015, 22:09.
Referenced Files
F9501621: D34.id70.diff
Thu, Jun 5, 23:25
F9496655: D34.id72.diff
Thu, Jun 5, 20:29
F9494019: D34.id69.diff
Thu, Jun 5, 19:10
F9487114: D34.id.diff
Thu, Jun 5, 15:33
F9484543: D34.id73.diff
Thu, Jun 5, 13:59
F9470347: D34.id70.diff
Thu, Jun 5, 06:04
Unknown Object (File)
Thu, Jun 5, 04:12
Unknown Object (File)
Wed, Jun 4, 05:18

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 Not Applicable
Unit
Tests Not Applicable

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.