1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-02-21 19:48:37 +02:00

Fix docker dependency

Dockerfile seems to be missing dependency Pg::SQL::PrettyPrinter. Adding it to the install seems to make it work as expected.
This commit is contained in:
Arjuna Del Toso 2022-09-14 14:52:52 -04:00
parent 8cb75daed5
commit 1189599182

View File

@ -24,6 +24,17 @@ RUN apt-get update && \
RUN curl -L cpanmin.us | perl - -n Mojolicious
RUN cpan install Pg::Explain
WORKDIR /tmp
RUN curl https://gitlab.com/depesz/pg-sql-prettyprinter/-/archive/main/pg-sql-prettyprinter-main.tar.bz2 -o pg-sql-prettyprinter-main.tar.bz2 && \
tar xjvf pg-sql-prettyprinter-main.tar.bz2 && \
cd pg-sql-prettyprinter-main && \
perl Build.PL && \
./Build && \
./Build test && \
./Build install
WORKDIR /explain
COPY docker/explain.json explain.pl ./
ENTRYPOINT /explain/explain.pl daemon