Implement the tests
This commit is contained in:
parent
b16a722ab3
commit
a6b956bcd0
|
@ -4,6 +4,7 @@ FROM perl:5.34.0
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
COPY cgi-bin/ ./cgi-bin/
|
COPY cgi-bin/ ./cgi-bin/
|
||||||
COPY public/ ./public/
|
COPY public/ ./public/
|
||||||
|
COPY t/ ./t/
|
||||||
COPY templates/ ./templates/
|
COPY templates/ ./templates/
|
||||||
COPY cpanfile .
|
COPY cpanfile .
|
||||||
COPY .mmCreds.xml .
|
COPY .mmCreds.xml .
|
||||||
|
@ -19,6 +20,9 @@ RUN apt-get -y install fortune-mod ruby
|
||||||
RUN cpanm --installdeps .
|
RUN cpanm --installdeps .
|
||||||
RUN gem install cgi
|
RUN gem install cgi
|
||||||
|
|
||||||
|
# Test it
|
||||||
|
RUN prove -l -v
|
||||||
|
|
||||||
# Finish setting up the environment
|
# Finish setting up the environment
|
||||||
ENV MOJO_REVERSE_PROXY=1
|
ENV MOJO_REVERSE_PROXY=1
|
||||||
ENV SERVER_ADMIN="swaggboi@slackware.uk"
|
ENV SERVER_ADMIN="swaggboi@slackware.uk"
|
||||||
|
|
|
@ -8,12 +8,7 @@ The successor to my homepage. Hold on to your butts.
|
||||||
|
|
||||||
docker build -t www-swagg .
|
docker build -t www-swagg .
|
||||||
|
|
||||||
### Run it locally
|
Tests are performed during the build process
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
## Tagging/Pushing
|
## Tagging/Pushing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue