Skip to content

Commit

Permalink
This should be the last of these for a minute
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Nov 15, 2023
1 parent e26d0b0 commit 0d95529
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions docker-compose.yml
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"

0 comments on commit 0d95529

Please sign in to comment.