-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should be the last of these for a minute
- Loading branch information
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ RUN DEBIAN_FRONTEND=noninteractive /usr/bin/apt -y -q install apache2 \ | |
libdatetime-timezone-perl \ | ||
libdbd-mysql-perl \ | ||
libdbi-perl \ | ||
libdevel-nytprof-perl \ | ||
libhtml-fromtext-perl \ | ||
libhtml-mason-perl \ | ||
libio-socket-ssl-perl \ | ||
|
@@ -73,10 +74,6 @@ RUN cpanm [email protected] | |
RUN cpanm JSON::WebToken | ||
RUN cpanm Crypt::JWT | ||
|
||
# This should only be activated on staging or development copies but is | ||
# installed anyway just in case. | ||
RUN cpanm Devel::NYTProf::Apache | ||
|
||
# The Class DBI shipped in Ubuntu has a bug and obviously that's never getting | ||
# fixed so I patch it here. | ||
COPY ./lib/Class-DBI.pm.fixed /usr/share/perl5/Class/DBI.pm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Docker compose file that will run a local staging instance given the | ||
# appropriate array of apache configurations. I apologize that it's so many | ||
# configs required locally but that's life running a legacy service sometimes. | ||
# | ||
version: '3' | ||
services: | ||
tabroom: | ||
container_name: mason | ||
image: mason:latest | ||
restart: always | ||
ports: | ||
- 9000:80 | ||
volumes: | ||
- /www/tabroom/web:/www/tabroom/web:rw | ||
- /www/profiles:/www/profiles:rw | ||
- /var/log/apache2:/var/log/apache2:rw | ||
- /etc/tabroom/General.pm:/www/tabroom/web/lib/Tab/General.pm:ro | ||
- /etc/tabroom/staging.tabroom.com.conf:/etc/apache2/sites-enabled/tabroom.com.conf:ro | ||
- /etc/apache2/envvars:/etc/apache2/envvars:ro | ||
- /etc/apache2/apache2.conf:/etc/apache2/apache2.conf:ro | ||
- /etc/apache2/mods-enabled/perl.conf:/etc/apache2/mods-enabled/perl.conf:ro | ||
- /etc/apache2/mods-enabled/mpm_prefork.conf:/etc/apache2/mods-enabled/mpm_prefork.conf:ro | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
- "staging-api.tabroom.com:host-gateway" |