Implement the tests

This commit is contained in:
swagg boi 2021-12-10 17:47:47 -05:00
parent b16a722ab3
commit a6b956bcd0
2 changed files with 5 additions and 6 deletions

View file

@ -4,6 +4,7 @@ FROM perl:5.34.0
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
COPY t/ ./t/
COPY templates/ ./templates/
COPY cpanfile .
COPY .mmCreds.xml .
@ -19,6 +20,9 @@ RUN apt-get -y install fortune-mod ruby
RUN cpanm --installdeps .
RUN gem install cgi
# Test it
RUN prove -l -v
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
ENV SERVER_ADMIN="swaggboi@slackware.uk"

View file

@ -8,12 +8,7 @@ The successor to my homepage. Hold on to your butts.
docker build -t www-swagg .
### Run it locally
docker run -p 3000:3000 www-swagg:latest
Pull up [http://localhost:3000](http://localhost:3000) and poke around
**TODO:** Should create automated tests for this
Tests are performed during the build process
## Tagging/Pushing